- implementing Mloc's suggestions.

- fixing the changelog
This commit is contained in:
jack-fractal
2013-10-11 13:29:33 -04:00
parent 32c3f27675
commit 6ecab0bc36
3 changed files with 1010 additions and 1058 deletions

View File

@@ -371,60 +371,8 @@
// charge the changeling chemical cost for stasis
changeling.chem_charges -= 20
// shut down various types of badness
C.setToxLoss(0)
C.setOxyLoss(0)
C.setCloneLoss(0)
C.setBrainLoss(0)
C.SetParalysis(0)
C.SetStunned(0)
C.SetWeakened(0)
// shut down ongoing problems
C.radiation = 0
C.nutrition = 400
C.bodytemperature = 310
C.sdisabilities = 0
C.disabilities = 0
C.blinded = 0
// fix blindness and deafness
C.eye_blind = 0
C.eye_blurry = 0
C.ear_deaf = 0
C.ear_damage = 0
// head actual damage numbers
C.heal_overall_damage(1000, 1000)
// get rid of the reagents
C.reagents.clear_reagents()
// cure diseases
for(var/datum/disease/D in viruses)
D.cure(0)
// fix all the organs
C.restore_all_organs()
// restore blood
if(ishuman(C))
var/mob/living/carbon/human/human_mob = C
human_mob.restore_blood()
// remove the character from the list of the dead
if(C.stat == 2)
dead_mob_list -= src
living_mob_list += src
// make us conscious again
C.stat = CONSCIOUS
// remove the time of death
C.tod = null
// fix all the icons
C.regenerate_icons()
// restore us to health
C.rejuvenate()
// remove our fake death flag
C.status_flags &= ~(FAKEDEATH)

View File

@@ -249,7 +249,18 @@
/mob/living/proc/restore_all_organs()
return
/mob/living/proc/revive()
rejuvenate()
buckled = initial(src.buckled)
if(iscarbon(src))
var/mob/living/carbon/C = src
C.handcuffed = initial(C.handcuffed)
/mob/living/proc/rejuvenate()
// shut down various types of badness
setToxLoss(0)
setOxyLoss(0)
setCloneLoss(0)
@@ -257,37 +268,43 @@
SetParalysis(0)
SetStunned(0)
SetWeakened(0)
// shut down ongoing problems
radiation = 0
nutrition = 400
bodytemperature = 310
bodytemperature = T20C
sdisabilities = 0
disabilities = 0
// fix blindness and deafness
blinded = 0
eye_blind = 0
eye_blurry = 0
eye_stat = 0
ear_deaf = 0
ear_damage = 0
heal_overall_damage(1000, 1000)
buckled = initial(src.buckled)
if(iscarbon(src))
var/mob/living/carbon/C = src
C.handcuffed = initial(C.handcuffed)
heal_overall_damage(getBruteLoss(), getFireLoss())
// restore all of the human's blood
// restore all of a human's blood
if(ishuman(src))
var/mob/living/carbon/human/human_mob = src
human_mob.restore_blood()
for(var/datum/disease/D in viruses)
D.cure(0)
// fix all of our organs
restore_all_organs()
// remove the character from the list of the dead
if(stat == 2)
dead_mob_list -= src
living_mob_list += src
tod = null
// restore us to conciousness
stat = CONSCIOUS
// make the icons look correct
regenerate_icons()
..()
return
/mob/living/proc/UpdateDamageIcon()

View File

@@ -56,19 +56,6 @@ should be listed in the changelog upon commit though. Thanks. -->
<!-- DO NOT REMOVE, MOVE, OR COPY THIS COMMENT! THIS MUST BE THE LAST NON-EMPTY LINE BEFORE THE LOGS #ADDTOCHANGELOGMARKER# -->
<div class='commit sansserif'>
<h2 class='date'>11 October 2013</h2>
<h3 class='author'>jack_fractal updated:</h3>
<ul class='changes bgimages16'>
<li class='bugfix'>adding a 'rejuvinate' function to organs that fixes all types of damage</li>
<li class='bugfix'>adding a 'restore_all_organs' function to living creatures</li>
<li class='bugfix'>adding a 'restore_blood_loss' function to humans</li>
<li class='bugfix'>fixing changeling stasis power to heal organ and blood damage</li>
<li class='bugfix'>fixing adming rejuvinate verb to fix organ and blood damage</li>
</ul>
</div>
<div class="commit sansserif">
<h2 class="date">September 24th, 2013</h2>
<h3 class="author">Snapshot updated:</h3>