boost_sickness_of_soot_recovery_rate = {
	if = {
		limit = { NOT = { has_variable = soot_recovery_boost } }
		set_temp_variable = { soot_recovery_boost = 0.5 }
	}
	custom_effect_tooltip = boost_sickness_of_soot_recovery_rate_tt
	add_to_variable = { soot_recovery_rate = soot_recovery_boost }
	clear_variable = soot_recovery_boost
	calculate_soot_weight_delta = yes
	recalculate_soot_remaining_weeks = yes
}

boost_sickness_of_soot_recovery_rate_10 = {
	if = {
		limit = { NOT = { has_variable = soot_recovery_boost } }
		set_temp_variable = { soot_recovery_boost = 0.1 }
	}
	custom_effect_tooltip = boost_sickness_of_soot_recovery_rate_tt
	add_to_variable = { soot_recovery_rate = soot_recovery_boost }
	clear_variable = soot_recovery_boost
	calculate_soot_weight_delta = yes
	recalculate_soot_remaining_weeks = yes
}

boost_sickness_of_soot_recovery_rate_25 = {
	if = {
		limit = { NOT = { has_variable = soot_recovery_boost } }
		set_temp_variable = { soot_recovery_boost = 0.25 }
	}
	custom_effect_tooltip = boost_sickness_of_soot_recovery_rate_tt
	add_to_variable = { soot_recovery_rate = soot_recovery_boost }
	clear_variable = soot_recovery_boost
	calculate_soot_weight_delta = yes
	recalculate_soot_remaining_weeks = yes
}

calculate_soot_weight_delta = {
	set_variable = { soot_weight_delta = 1 }
	multiply_variable = { soot_weight_delta = soot_recovery_rate }
	subtract_from_variable = { soot_weight = soot_weight_delta }
}

recalculate_soot_remaining_weeks = {
	set_variable = { soot_remaining_weeks = soot_weight }
	divide_variable = { soot_remaining_weeks = soot_weight_delta? }
}
# vim: set ft=pdx ts=2 sw=2 tw=79 :
