Merge pull request #15476 from DeltaFire15/core-alt-pr

Buffs regen core healing for robots on lavaland, nerfs regen cores when not on lavaland
This commit is contained in:
silicons
2022-03-13 14:26:06 -07:00
committed by GitHub
+6 -2
View File
@@ -578,8 +578,12 @@
/datum/status_effect/regenerative_core/on_apply()
. = ..()
ADD_TRAIT(owner, TRAIT_IGNOREDAMAGESLOWDOWN, "regenerative_core")
if(HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM)) //Robots can heal from cores, but only get 1/5th of the healing. They can use this to get past the damage threshhold however, and then regularely heal from there.
var/turf/T = get_turf(owner)
if(T && is_mining_level(T.z))
if(HAS_TRAIT(owner, TRAIT_ROBOTIC_ORGANISM)) //Robots can heal from cores, though they ""only"" heal 20 brute + burn damage each instead of 25
heal_amount *= 0.8
else
duration = 10 SECONDS
heal_amount *= 0.2
owner.adjustBruteLoss(-heal_amount, only_organic = FALSE)
if(!AmBloodsucker(owner)) //use your coffin you lazy bastard