Changes all cases of update_icons(), updateicon(), UpdateIcon() etc. to update_icon(). (#9432)

update_icons(), UpdateIcon() and updateicon() are now changed to be update_icon().

Many interactions expect a target to have an update_icon(), so they should all be the same.

Also fixed some stuff that was using relative pathing, along the way.
This commit is contained in:
mikomyazaki
2020-07-26 10:28:36 +01:00
committed by GitHub
parent 9a6168e10a
commit 3f2a515a8b
64 changed files with 677 additions and 701 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
. = ..()
if(.)
action.button_icon_state = "puke"
if(action.button) action.button.UpdateIcon()
if(action.button) action.button.update_icon()
/obj/item/organ/internal/stomach/attack_self(mob/user)
. = ..()
+1 -1
View File
@@ -26,7 +26,7 @@
if(activable)
action.button_icon_state = action_button_icon
if(action.button)
action.button.UpdateIcon()
action.button.update_icon()
/obj/item/organ/internal/augment/attack_self(var/mob/user)
. = ..()
+4 -4
View File
@@ -255,7 +255,7 @@
if(.)
action.button_icon_state = "digitool"
if(action.button)
action.button.UpdateIcon()
action.button.update_icon()
/obj/item/organ/external/hand/right/autakh/tool/attack_self(var/mob/user)
. = ..()
@@ -316,7 +316,7 @@
if(.)
action.button_icon_state = "drill"
if(action.button)
action.button.UpdateIcon()
action.button.update_icon()
/obj/item/pickaxe/drill/integrated
name = "integrated mining drill"
@@ -339,7 +339,7 @@
if(.)
action.button_icon_state = "health"
if(action.button)
action.button.UpdateIcon()
action.button.update_icon()
/obj/item/organ/external/hand/right/autakh/medical/attack_self(var/mob/user)
. = ..()
@@ -380,7 +380,7 @@
if(.)
action.button_icon_state = "baton"
if(action.button)
action.button.UpdateIcon()
action.button.update_icon()
/obj/item/organ/external/hand/right/autakh/security/attack_self(var/mob/user)
. = ..()