Merge pull request #2758 from VOREStation/aro-updateicons

3000% human/update_icons() speed improvement
This commit is contained in:
Arokha Sieyes
2018-01-16 02:44:30 -05:00
committed by GitHub
39 changed files with 216 additions and 149 deletions
+2 -2
View File
@@ -50,7 +50,7 @@
user.visible_message("<span class='notice'>[user] does their lips with \the [src].</span>", \
"<span class='notice'>You take a moment to apply \the [src]. Perfect!</span>")
H.lip_style = colour
H.update_body()
H.update_icons_body()
else
user.visible_message("<span class='warning'>[user] begins to do [H]'s lips with \the [src].</span>", \
"<span class='notice'>You begin to apply \the [src].</span>")
@@ -58,7 +58,7 @@
user.visible_message("<span class='notice'>[user] does [H]'s lips with \the [src].</span>", \
"<span class='notice'>You apply \the [src].</span>")
H.lip_style = colour
H.update_body()
H.update_icons_body()
else
user << "<span class='notice'>Where are the lips on that?</span>"
@@ -90,7 +90,7 @@
else
if (M.ear_damage >= 5)
M << "<span class='danger'>Your ears start to ring!</span>"
M.update_icons()
M.update_icons() //Forces matrix transform to proc if they are now laying, I guess?
/obj/item/weapon/grenade/flashbang/Destroy()
walk(src, 0) // Because we might have called walk_away, we must stop the walk loop or BYOND keeps an internal reference to us forever.