Skip to content

Commit

Permalink
Fix the Delightful Effect symptom
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Feb 6, 2025
1 parent 73ec32b commit 2b5b143
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
description = "Oooh, jazzy!"
mood_change = 2
timeout = 1 MINUTE

/datum/mood_event/delightful_symptom
description = "Everything feels so nice and wonderful!"
mood_change = 50
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
severity = 0

/datum/symptom/delightful/activate(mob/living/carbon/mob)
to_chat(mob, "<span class = 'notice'>You feel delightful!</span>")
if (mob.reagents?.get_reagent_amount(/datum/reagent/drug/happiness) < 5)
mob.reagents.add_reagent(/datum/reagent/drug/happiness, 10)
if(!mob.mob_mood?.has_mood_of_category(REF(src)))
to_chat(mob, span_hypnophrase("You feel delightful!"))
mob.add_mood_event(REF(src), /datum/mood_event/delightful_symptom)

/datum/symptom/delightful/deactivate(mob/living/carbon/mob, datum/disease/acute/disease)
mob?.clear_mood_event(REF(src))

0 comments on commit 2b5b143

Please sign in to comment.