mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-04 13:20:15 +00:00
Merge pull request #3857 from Neerti/9/17/2017_slime_update
Slime Update
This commit is contained in:
@@ -29,17 +29,22 @@
|
||||
stacks = MODIFIER_STACK_EXTEND
|
||||
|
||||
/datum/modifier/technomancer/mend_synthetic/tick()
|
||||
if(!holder.isSynthetic()) // Don't heal biologicals!
|
||||
expire()
|
||||
return
|
||||
if(!holder.getBruteLoss() && !holder.getFireLoss()) // No point existing if the spell can't heal.
|
||||
// if(!holder.isSynthetic()) // Don't heal biologicals!
|
||||
// expire()
|
||||
// return
|
||||
if(!holder.getActualBruteLoss() && !holder.getActualFireLoss()) // No point existing if the spell can't heal.
|
||||
expire()
|
||||
return
|
||||
if(ishuman(holder))
|
||||
var/mob/living/carbon/human/H = holder
|
||||
for(var/obj/item/organ/external/E in H.organs)
|
||||
var/obj/item/organ/external/O = E
|
||||
O.heal_damage(4 * spell_power, 4 * spell_power, 0, 1)
|
||||
if(O.robotic >= ORGAN_ROBOT)
|
||||
O.heal_damage(4 * spell_power, 4 * spell_power, 0, 1)
|
||||
else
|
||||
holder.adjustBruteLoss(-4 * spell_power) // Should heal roughly 20 burn/brute over 10 seconds, as tick() is run every 2 seconds.
|
||||
holder.adjustFireLoss(-4 * spell_power) // Ditto.
|
||||
|
||||
holder.adjust_instability(1)
|
||||
if(origin)
|
||||
var/mob/living/L = origin.resolve()
|
||||
|
||||
Reference in New Issue
Block a user