From 190d508ddd7e2e38390a981658870ff1707ba8ac Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Fri, 27 Dec 2024 23:05:20 +0100 Subject: [PATCH] Nerfs the pulse demon (#27536) * Why is this not working * Oh that's why * Komrad request --- .../miniantags/pulsedemon/pulsedemon.dm | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm index babc34bc4619..83e7c32d8b69 100644 --- a/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm +++ b/code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm @@ -14,7 +14,7 @@ gender = NEUTER speak_chance = 20 - damage_coeff = list(BRUTE = 0, BURN = 0, TOX = 0, CLONE = 0, STAMINA = 0, OXY = 0) // Pulse demons take damage from nothing + damage_coeff = list(BRUTE = 0, BURN = 0.5, TOX = 0, CLONE = 0, STAMINA = 0, OXY = 0) // Pulse demons take damage from nothing except some from lasers emote_hear = list("vibrates", "sizzles") speak_emote = list("modulates") @@ -781,9 +781,11 @@ return FALSE /mob/living/simple_animal/demon/pulse_demon/bullet_act(obj/item/projectile/proj) - if(istype(proj, /obj/item/projectile/ion)) + if(proj.damage_type == BURN) + regen_lock = max(regen_lock, 1) return ..() - visible_message("[proj] goes right through [src]!") + else + visible_message("[proj] goes right through [src]!") /mob/living/simple_animal/demon/pulse_demon/electrocute_act(shock_damage, source, siemens_coeff, flags) return @@ -826,6 +828,18 @@ return FALSE return TRUE +/mob/living/simple_animal/demon/pulse_demon/adjustHealth(amount, updating_health) + if(amount > 0) // This damages the pulse demon + return ..() + + if(!ismachinery(loc)) + if(health >= (maxHealth / 2)) + amount = 0 + else + amount = clamp(amount, -((maxHealth / 2) - health), 0) + amount = round(amount, 1) + return ..() + /obj/item/organ/internal/heart/demon/pulse name = "perpetual pacemaker" desc = "It still beats furiously, thousands of bright lights shine within it."