Skip to content

Commit

Permalink
Merge pull request #2658 from GremlingSS/LinterFix
Browse files Browse the repository at this point in the history
MORE linter fixes!!
  • Loading branch information
Tk420634 committed Jul 19, 2023
2 parents 8ae004a + b281937 commit 525e66c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions code/modules/mob/living/carbon/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@

//CRIT
if(health <= HEALTH_THRESHOLD_FULLCRIT || !lungs || lungs.failed)
if(reagents.has_reagent(/datum/reagent/medicine/epinephrine) && lungs)
return
if(reagents) // I know this is scuffed, but it stops unit testing from getting upset :')
if(reagents.has_reagent(/datum/reagent/medicine/epinephrine) && lungs)
return
adjustOxyLoss(0.5)

failed_last_breath = 1
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/simple_animal/simple_animal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ GLOBAL_LIST_EMPTY(playmob_cooldowns)
if(deathmessage || !del_on_death)
INVOKE_ASYNC(src, .proc/emote, "deathgasp")
if(del_on_death)
..()
..(gibbed)
//Prevent infinite loops if the mob Destroy() is overridden in such
//a manner as to cause a call to death() again
del_on_death = FALSE
Expand All @@ -705,7 +705,7 @@ GLOBAL_LIST_EMPTY(playmob_cooldowns)
icon_state = icon_dead
density = FALSE
lying = 1
..()
..(gibbed)

/mob/living/simple_animal/drop_all_held_items(skip_worn = FALSE)
if(internal_storage && !skip_worn)
Expand Down

0 comments on commit 525e66c

Please sign in to comment.