TG: cloneloss is now only referenced via procs. r2871

This commit is contained in:
Ren Erthilo
2012-03-26 23:11:56 +01:00
parent 4a1b196668
commit add06af9fd
4 changed files with 6 additions and 6 deletions

View File

@@ -1352,7 +1352,7 @@ datum
on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom ///This can even heal dead people.
M.cloneloss = 0
M.setCloneLoss(0)
M.setOxyLoss(0)
M.radiation = 0
M.heal_organ_damage(5,5)

View File

@@ -46,7 +46,7 @@
proc/UpdateDamage()
health = 60 - (getOxyLoss() + getToxLoss() + getFireLoss() + getBruteLoss() + cloneloss)
health = 60 - (getOxyLoss() + getToxLoss() + getFireLoss() + getBruteLoss() + getCloneLoss())
return

View File

@@ -151,8 +151,8 @@
else
usr << "\red <B>[src.name] looks severely injured!</B>"
if (src.cloneloss)
if (src.cloneloss < 30)
if (src.getCloneLoss())
if (src.getCloneLoss() < 30)
usr << "\red [src.name] looks slightly... unfinished?"
else
usr << "\red <B>[src.name] looks very... unfinished?</B>"

View File

@@ -21,7 +21,7 @@
if(OXY)
adjustOxyLoss(damage/(blocked+1))
if(CLONE)
cloneloss += (damage/(blocked+1))
adjustCloneLoss(damage/(blocked+1))
UpdateDamageIcon()
updatehealth()
return 1
@@ -76,4 +76,4 @@
/mob/living/proc/react_to_attack(mob/M)
return
return