mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
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:
@@ -33,7 +33,7 @@
|
||||
if(metal)
|
||||
var/obj/structure/foamedmetal/M = new /obj/structure/foamedmetal(src.loc)
|
||||
M.metal = metal
|
||||
M.updateicon()
|
||||
M.update_icon()
|
||||
flick("[icon_state]-disolve", src)
|
||||
QDEL_IN(src, 5)
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
set_opacity(0)
|
||||
return ..()
|
||||
|
||||
/obj/structure/foamedmetal/proc/updateicon()
|
||||
/obj/structure/foamedmetal/update_icon()
|
||||
if(metal == 1)
|
||||
icon_state = "metalfoam"
|
||||
else
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
var/mob/living/L = target
|
||||
L.cloaked = 1
|
||||
L.mouse_opacity = 0
|
||||
L.update_icons()
|
||||
L.update_icon()
|
||||
|
||||
|
||||
/datum/modifier/cloaking_device/deactivate()
|
||||
@@ -180,7 +180,7 @@
|
||||
var/mob/living/L = target
|
||||
L.cloaked = 0
|
||||
L.mouse_opacity = 1
|
||||
L.update_icons()
|
||||
L.update_icon()
|
||||
|
||||
|
||||
/datum/modifier/cloaking_device/check_validity()
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
else
|
||||
if (M.ear_damage >= 5)
|
||||
to_chat(M, "<span class='danger'>Your ears start to ring!</span>")
|
||||
M.update_icons()
|
||||
M.update_icon()
|
||||
|
||||
/obj/item/grenade/flashbang/clusterbang//Created by Polymorph, fixed by Sieve
|
||||
name = "clusterbang"
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
|
||||
if(!inserted || !S.amount)
|
||||
usr.remove_from_mob(S)
|
||||
usr.update_icons() //update our overlays
|
||||
usr.update_icon() //update our overlays
|
||||
if (usr.client && usr.s_active != src)
|
||||
usr.client.screen -= S
|
||||
S.dropped(usr)
|
||||
|
||||
@@ -399,7 +399,7 @@
|
||||
|
||||
/obj/item/storage/proc/handle_storage_deferred(mob/user)
|
||||
add_fingerprint(user)
|
||||
user.update_icons()
|
||||
user.update_icon()
|
||||
orient2hud(user)
|
||||
if (user.s_active)
|
||||
user.s_active.show_to(user)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -325,7 +325,7 @@
|
||||
M.clean_blood()
|
||||
|
||||
if (update_icons_required)
|
||||
M.update_icons()
|
||||
M.update_icon()
|
||||
else
|
||||
O.clean_blood()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user