mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
removed some unneeded icon update calls (haha totally unneeded yeah)
replaced complete regenerate_icons with just body_update in case of dropping limb
This commit is contained in:
@@ -415,10 +415,6 @@ This function completely restores a damaged organ to perfect condition.
|
|||||||
var/n_is = damage_state_text()
|
var/n_is = damage_state_text()
|
||||||
if (n_is != damage_state)
|
if (n_is != damage_state)
|
||||||
damage_state = n_is
|
damage_state = n_is
|
||||||
if(status & ORGAN_DESTROYED)
|
|
||||||
owner.update_body(1)
|
|
||||||
else
|
|
||||||
owner.UpdateDamageIcon(1)
|
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@@ -550,7 +546,7 @@ This function completely restores a damaged organ to perfect condition.
|
|||||||
var/lol = pick(cardinal)
|
var/lol = pick(cardinal)
|
||||||
step(organ,lol)
|
step(organ,lol)
|
||||||
|
|
||||||
owner.regenerate_icons()
|
owner.update_body(1)
|
||||||
|
|
||||||
|
|
||||||
/****************************************************
|
/****************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user