Skip to content

Commit

Permalink
Prevents infester immortality
Browse files Browse the repository at this point in the history
Higher difficulty levels won't make infester swarms have crazy amounts of health. Also easy mode won't instant kill them any more
  • Loading branch information
OuterMostMonk authored Feb 19, 2023
1 parent c67fc98 commit 0b8ece6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions code/modules/halo/flood/types/infestor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,22 @@
..()
if(swarm_size > 1)
to_chat(user, "<span class='warning'>There are [swarm_size] in the swarm.</span>")

/mob/living/simple_animal/hostile/flood/infestor/apply_difficulty_setting()
. = ..()
switch(GLOB.difficulty_level)
if(DIFFICULTY_EASY)
//We dont want them to instantly die
health = 1
maxHealth = 1
if(DIFFICULTY_NORMAL)
//no change
if(DIFFICULTY_HEROIC)
//Dont want them too tanky
health = 1
maxHealth = 1

if(DIFFICULTY_LEGENDARY)
//Dont want them too tanky
health = 1
maxHealth = 1

0 comments on commit 0b8ece6

Please sign in to comment.