Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers authored May 24, 2024
1 parent cdea9a2 commit b46d704
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/datums/components/status_effect_component.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//exists only to handle immunities for now

/datum/component/status_effect
var/has_immunity = FALSE
var/grace_period = 20

/datum/component/status_effect/proc/cleanse()
has_immunity = TRUE

/datum/component/status_effect/process(delta_time)
if(has_immunity)
grace_period -= 1 * delta_time
if(grace_period <= 0)
RemoveComponent()

0 comments on commit b46d704

Please sign in to comment.