mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
Fixes elite action buttons breaking entirely (#24860)
* fixes elite action buttons breaking entirely * fixes icons, maptext is still odd
This commit is contained in:
@@ -125,13 +125,15 @@ While using this makes the system rely on OnFire, it still gives options for tim
|
||||
STOP_PROCESSING(SSfastprocess, src)
|
||||
qdel(src)
|
||||
return
|
||||
UpdateButton()
|
||||
UpdateButtons()
|
||||
|
||||
/datum/action/innate/elite_attack/UpdateButton(atom/movable/screen/movable/action_button/button, status_only = FALSE, force = FALSE)
|
||||
. = ..()
|
||||
if(status_only)
|
||||
return
|
||||
var/mob/living/simple_animal/hostile/asteroid/elite/elite_owner = owner
|
||||
var/timeleft = max(elite_owner.ranged_cooldown - world.time, 0)
|
||||
|
||||
if(timeleft == 0)
|
||||
button.maptext = ""
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user