Skip to content

Commit

Permalink
i never want the horrors to repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
RikuTheKiller committed Apr 26, 2024
1 parent 0434d55 commit a416529
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
use_rate = 0.5

var/research_speed
var/current_research_bonus
var/current_mode
COOLDOWN_DECLARE(next_warning_time)

Expand Down Expand Up @@ -109,15 +110,16 @@

host_mob.add_body_temperature_change(NANITE_RESEARCH_CHANGE, research_speed * 15)
use_rate = initial(use_rate) * research_speed
SSresearch.science_tech.nanite_bonus += use_rate
current_research_bonus = use_rate
SSresearch.science_tech.nanite_bonus += current_research_bonus

if (COOLDOWN_FINISHED(src, next_warning_time))
to_chat(host_mob, message)
COOLDOWN_START(src, next_warning_time, 10 SECONDS)

/datum/nanite_program/research/disable_passive_effect()
. = ..()
SSresearch.science_tech.nanite_bonus -= use_rate
SSresearch.science_tech.nanite_bonus -= current_research_bonus
host_mob.remove_body_temperature_change(NANITE_RESEARCH_CHANGE)

/datum/nanite_program/research/set_extra_setting(setting, value)
Expand Down

0 comments on commit a416529

Please sign in to comment.