Fixes the false armblade removal timer. Refactors addtimer (#21714)

* Clever girl...

* Make the addtimer unique param safe

* Refactor addtimer calls

* Moved the location of the define so the other SSs can use it
This commit is contained in:
Cyberboss
2016-11-25 04:05:58 -05:00
committed by oranges
parent 2466ce4e7b
commit e37f807941
44 changed files with 86 additions and 75 deletions
@@ -214,10 +214,10 @@
if(!ratvar_awakens)
R.clockwork_desc = "A powerful spear of Ratvarian making. It's more effective against enemy cultists and silicons, though it won't last for long."
owner << "<span class='warning'>Your spear begins to break down in this plane of existence. You can't use it for long!</span>"
addtimer(R, "break_spear", base_cooldown, FALSE)
addtimer(R, "break_spear", base_cooldown, TIMER_NORMAL)
cooldown = base_cooldown + world.time
owner.update_action_buttons_icon()
addtimer(src, "update_actions", base_cooldown, FALSE)
addtimer(src, "update_actions", base_cooldown, TIMER_NORMAL)
return TRUE
/datum/action/innate/function_call/proc/update_actions()