just force them to update always, it's pretty much what tg does

This commit is contained in:
SandPoot
2024-01-09 00:30:06 -03:00
parent 003eec1850
commit 8d283066b6
3 changed files with 10 additions and 8 deletions
+3 -5
View File
@@ -157,7 +157,7 @@
/datum/action/proc/OnUpdatedIcon()
SIGNAL_HANDLER
UpdateButtons()
UpdateButtons(force = TRUE)
//Give our action button to the player
/datum/action/proc/GiveAction(mob/viewer)
@@ -267,12 +267,10 @@
/datum/action/item_action/toggle_light
name = "Toggle Light"
/datum/action/item_action/toggle_light/Trigger(trigger_flags)
/datum/action/item_action/toggle_light/pda/Trigger(trigger_flags)
if(istype(target, /obj/item/pda))
var/obj/item/pda/P = target
P.toggle_light(owner)
return
..()
return P.toggle_light(owner)
/datum/action/item_action/toggle_hood
name = "Toggle Hood"