mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fixed bug with healing when organ gets burn damage equal to brute damage.
Fixed bug with cyborgs death logging to database. They got logged every cycle producing thousands of fake deaths it statistics. Attention, statistics of deaths now requires to delete erroneous records, we need some sql-experienced programmer to do that correctly. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1348 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
// else
|
||||
// src.overlays -= "emag"
|
||||
|
||||
if(health < 0)
|
||||
if(health < 0 && src.stat != 2) //die only once
|
||||
death()
|
||||
|
||||
if (src.stat != 2) //Alive.
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
/datum/organ/external/proc/heal_damage(brute, burn)
|
||||
src.brute_dam = max(0, src.brute_dam - brute)
|
||||
src.burn_dam = max(0, src.brute_dam - burn)
|
||||
src.burn_dam = max(0, src.burn_dam - burn)
|
||||
return update_icon()
|
||||
|
||||
/datum/organ/external/proc/get_damage() //returns total damage
|
||||
|
||||
Reference in New Issue
Block a user