mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
POLARIS: 3000% human/update_icons() improvement
Using overlays in lists and a mutable_appearance
This commit is contained in:
@@ -93,11 +93,11 @@ var/const/CE_STABLE_THRESHOLD = 0.5
|
||||
if(blood_volume >= BLOOD_VOLUME_SAFE)
|
||||
if(pale)
|
||||
pale = 0
|
||||
update_body()
|
||||
update_icons_body()
|
||||
else if(blood_volume >= BLOOD_VOLUME_OKAY)
|
||||
if(!pale)
|
||||
pale = 1
|
||||
update_body()
|
||||
update_icons_body()
|
||||
var/word = pick("dizzy","woosey","faint")
|
||||
src << "<font color='red'>You feel [word]</font>"
|
||||
if(prob(1))
|
||||
@@ -108,7 +108,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5
|
||||
else if(blood_volume >= BLOOD_VOLUME_BAD)
|
||||
if(!pale)
|
||||
pale = 1
|
||||
update_body()
|
||||
update_icons_body()
|
||||
eye_blurry = max(eye_blurry,6)
|
||||
if(getOxyLoss() < 50 * threshold_coef)
|
||||
adjustOxyLoss(10 * dmg_coef)
|
||||
@@ -126,7 +126,7 @@ var/const/CE_STABLE_THRESHOLD = 0.5
|
||||
else //Not enough blood to survive (usually)
|
||||
if(!pale)
|
||||
pale = 1
|
||||
update_body()
|
||||
update_icons_body()
|
||||
eye_blurry = max(eye_blurry,6)
|
||||
Paralyse(3)
|
||||
adjustToxLoss(3 * dmg_coef)
|
||||
|
||||
@@ -675,7 +675,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
if (!(status & ORGAN_DEAD))
|
||||
status |= ORGAN_DEAD
|
||||
owner << "<span class='notice'>You can't feel your [name] anymore...</span>"
|
||||
owner.update_body(1)
|
||||
owner.update_icons_body()
|
||||
for (var/obj/item/organ/external/child in children)
|
||||
child.germ_level += 110 //Burst of infection from a parent organ becoming necrotic
|
||||
|
||||
@@ -1112,11 +1112,11 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
if(src.robotic >= ORGAN_ROBOT)
|
||||
return
|
||||
src.status |= ORGAN_MUTATED
|
||||
if(owner) owner.update_body()
|
||||
if(owner) owner.update_icons_body()
|
||||
|
||||
/obj/item/organ/external/proc/unmutate()
|
||||
src.status &= ~ORGAN_MUTATED
|
||||
if(owner) owner.update_body()
|
||||
if(owner) owner.update_icons_body()
|
||||
|
||||
/obj/item/organ/external/proc/get_damage() //returns total damage
|
||||
return (brute_dam+burn_dam) //could use max_damage?
|
||||
@@ -1203,7 +1203,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
qdel(spark_system)
|
||||
qdel(src)
|
||||
|
||||
victim.update_body()
|
||||
victim.update_icons_body()
|
||||
|
||||
/obj/item/organ/external/proc/disfigure(var/type = "brute")
|
||||
if (disfigured)
|
||||
|
||||
Reference in New Issue
Block a user