POLARIS: 3000% human/update_icons() improvement

Using overlays in lists and a mutable_appearance
This commit is contained in:
Arokha Sieyes
2018-01-15 21:39:47 -05:00
parent 60c07e348b
commit 10aabd98da
39 changed files with 216 additions and 149 deletions
+3 -3
View File
@@ -57,7 +57,7 @@
"<span class='notice'>You have attached [target]'s [E.name] to the [E.amputation_point].</span>")
user.drop_from_inventory(E)
E.replaced(target)
target.update_body()
target.update_icons_body(FALSE)
target.updatehealth()
target.UpdateDamageIcon()
@@ -99,7 +99,7 @@
if(E.children)
for(var/obj/item/organ/external/C in E.children)
C.status &= ~ORGAN_DESTROYED
target.update_body()
target.update_icons_body(FALSE)
target.updatehealth()
target.UpdateDamageIcon()
@@ -149,7 +149,7 @@
if(L.sabotaged)
new_limb.sabotaged = 1
target.update_body()
target.update_icons_body(FALSE)
target.updatehealth()
target.UpdateDamageIcon()
+1 -1
View File
@@ -110,7 +110,7 @@
var/trans = container.reagents.trans_to_mob(target, container.amount_per_transfer_from_this, CHEM_BLOOD) //technically it's contact, but the reagents are being applied to internal tissue
if (trans > 0)
affected.status &= ~ORGAN_DEAD
affected.owner.update_body(1)
affected.owner.update_icons_body()
user.visible_message("<font color='blue'>[user] applies [trans] units of the solution to affected tissue in [target]'s [affected.name].</font>", \
"<font color='blue'>You apply [trans] units of the solution to affected tissue in [target]'s [affected.name] with \the [tool].</font>")