bones breaking system

This commit is contained in:
quotefox
2019-11-25 07:11:44 +00:00
parent c8169d289f
commit 20d85b8d35
10 changed files with 33 additions and 2 deletions
@@ -112,6 +112,7 @@
return
adjustStaminaLoss(diff, updating, forced)
/** adjustOrganLoss
* inputs: slot (organ slot, like ORGAN_SLOT_HEART), amount (damage to be done), and maximum (currently an arbitrarily large number, can be set so as to limit damage)
* outputs:
@@ -702,7 +702,7 @@
else if(burndamage > 0)
status += LB.light_burn_msg
if(broken == 1)
status = "broken"
status = "fractured"
if(status == "")
status = "OK"
var/no_damage
@@ -83,6 +83,7 @@
/obj/item/bodypart/blob_act()
take_damage(max_damage)
/obj/item/bodypart/Destroy()
if(owner)
owner.bodyparts -= src
@@ -358,6 +358,7 @@
L.burn_dam = 0
L.brutestate = 0
L.burnstate = 0
L.broken = 0
L.attach_limb(src, 1)
return 1