Skip to content

Commit

Permalink
that needs mor improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoonij authored Sep 23, 2024
1 parent eb0b606 commit 086ca02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/datums/status_effects/debuffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1230,16 +1230,15 @@

/datum/status_effect/tox_vomit
id = "vomitting_from_toxins"
tick_interval = 2 SECONDS
alert_type = null
var/puke_counter = 0

/datum/status_effect/tox_vomit/tick(seconds_between_ticks)
if(!iscarbon(owner) || !VOMIT_THRESHOLD_REACHED(owner))
if(!iscarbon(owner) || !VOMIT_THRESHOLD_REACHED(owner) || HAS_TRAIT(owner, TRAIT_GODMODE))
qdel(src)
return

if(owner.stat == DEAD || HAS_TRAIT(owner, TRAIT_GODMODE))
if(owner.stat == DEAD)
return

puke_counter++
Expand Down

0 comments on commit 086ca02

Please sign in to comment.