Skip to content

Commit

Permalink
Nerfs the pulse demon (#27536)
Browse files Browse the repository at this point in the history
* Why is this not working

* Oh that's why

* Komrad request
  • Loading branch information
DGamerL authored Dec 27, 2024
1 parent 322685f commit 190d508
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions code/game/gamemodes/miniantags/pulsedemon/pulsedemon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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("<span class='warning'>[proj] goes right through [src]!</span>")
else
visible_message("<span class='warning'>[proj] goes right through [src]!</span>")

/mob/living/simple_animal/demon/pulse_demon/electrocute_act(shock_damage, source, siemens_coeff, flags)
return
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit 190d508

Please sign in to comment.