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 12:28:36 +03:00
committed by GitHub
parent 9a6168e10a
commit 3f2a515a8b
64 changed files with 677 additions and 701 deletions
@@ -390,7 +390,7 @@
else
to_chat(usr, "<span class='warning'>This mob type can't use this verb.</span>")
/obj/structure/closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
/obj/structure/closet/update_icon()//Putting the welded stuff in update_icon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
cut_overlays()
if(!opened)
icon_state = icon_closed
@@ -235,7 +235,7 @@
else
to_chat(usr, "<span class='warning'>This mob type can't use this verb.</span>")
/obj/structure/closet/secure_closet/update_icon()//Putting the welded stuff in updateicon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
/obj/structure/closet/secure_closet/update_icon()//Putting the welded stuff in update_icon() so it's easy to overwrite for special cases (Fridges, cabinets, and whatnot)
cut_overlays()
if(!opened)
if(locked)
+1 -1
View File
@@ -325,7 +325,7 @@
M.clean_blood()
if (update_icons_required)
M.update_icons()
M.update_icon()
else
O.clean_blood()