mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
refactor action buttons (#29416)
* refactor action buttons * fix cult spell charge overlay * lewc review * update for a/mhelp buttons and xenobio organs * update for minebot * properly create button each time * directly add/remove unavail overlay for reasons * lewc review
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
if(recharge_time > world.time)
|
||||
return FALSE
|
||||
current_charges++
|
||||
spell_parent.action.UpdateButtons()
|
||||
spell_parent.action.build_all_button_icons()
|
||||
if(current_charges < max_charges) // we have more recharges to go
|
||||
recharge_time = world.time + recharge_duration
|
||||
return FALSE
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
if(!spell_parent.action)
|
||||
stack_trace("[spell_parent.type] ended up with a null action")
|
||||
return PROCESS_KILL
|
||||
spell_parent.action.UpdateButtons()
|
||||
spell_parent.action.build_all_button_icons()
|
||||
if(should_end_cooldown())
|
||||
return PROCESS_KILL
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
else
|
||||
recharge_time = get_recharge_time()
|
||||
if(spell_parent.action)
|
||||
spell_parent.action.UpdateButtons()
|
||||
spell_parent.action.build_all_button_icons()
|
||||
START_PROCESSING(SSfastprocess, src)
|
||||
|
||||
/datum/spell_cooldown/proc/revert_cast()
|
||||
|
||||
Reference in New Issue
Block a user