Cleanup of all the update_clothing() calls.

Mostly I replaced them with rebuild_appearance() or update_body_appearance() where suitable.

I also reorganized the new update_clothing() code a bit.
This commit is contained in:
cib
2012-05-27 18:41:27 +02:00
parent 479563cb28
commit 0799cddb4b
46 changed files with 144 additions and 182 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ var/const
layer = 20
target.wear_mask = src
target.update_clothing()
target.rebuild_appearance()
GoIdle() //so it doesn't jump the people that tear it off
-1
View File
@@ -8,7 +8,6 @@
/obj/item/weapon/bedsheet/attack_self(mob/user as mob)
user.drop_item()
src.layer = 5
user.update_clothing()
add_fingerprint(user)
return
+1 -1
View File
@@ -184,7 +184,7 @@
if ((!( istype(M, /mob) ) || get_dist(src, user) > 1 || M.loc != src.loc || user.restrained() || usr.stat || M.buckled || istype(usr, /mob/living/silicon/pai)))
return
M.pixel_y = 6
M.update_clothing()
M.update_lying()
density = 1
icon_state = "up"
..()
-11
View File
@@ -111,16 +111,6 @@ TABLE AND RACK OBJECT INTERATIONS
new /obj/item/weapon/table_parts( src.loc )
src.density = 0
del(src)
/* if (user.mutations2 & mSmallsize)
step(user, get_dir(user, src))
if (user.loc == src.loc)
user.layer = TURF_LAYER
user.update_clothing()
for(var/mob/M in viewers(user, null))
M.show_message("[user] hides under the table!", 1)
//Foreach goto(69)
*/
//Googol never tested this shit.
return
@@ -189,7 +179,6 @@ TABLE AND RACK OBJECT INTERATIONS
"\red You hear the nauseating crunch of bone and gristle on solid metal.")
H.UpdateDamageIcon()
H.updatehealth()
H.update_clothing()
playsound(src.loc, 'tablehit1.ogg', 50, 1, -3)
return
G.affecting.loc = src.loc