Instances of "god" in moodlet descriptions are replaced with the Chaplain's diety for the Chaplain (and their followers) (#96530)

## About The Pull Request

Moodlet descriptions that mention god (as in "Oh god") are modifier for
the Chaplain (and their followers), replacing "god" with their deity.

## Why It's Good For The Game

So you get "Oh Space Jesus that's gross" instead of "Oh god that's
gross". For maximum immersion.

## Changelog

🆑 Melbert
spellcheck: Instances of "god" in moodlet descriptions are replaced with
the Chaplain's deity for the Chaplain (and their followers)
/🆑

---------

Co-authored-by: Tim <timothymtorres@gmail.com>
This commit is contained in:
MrMelbert
2026-06-21 17:18:38 +02:00
committed by GitHub
co-authored by Tim
parent d83b0b51c3
commit 7c124de2bc
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -97,6 +97,9 @@
mood_change *= 0.75
add_effects(arglist(mood_args))
if(who.mind?.holy_role && GLOB.deity)
var/static/regex/god_regex = regex(@"\bgods?\b", "ig")
description = god_regex.Replace(description, "[GLOB.deity]$2")
mood_change = floor(mood_change)
@@ -303,6 +303,10 @@
timeout = 3 MINUTES
event_flags = MOOD_EVENT_SPIRITUAL
/datum/mood_event/sacrifice_good/add_effects(...)
if(owner.mind?.holy_role && GLOB.deity)
description = "[GLOB.deity] is pleased with this offering!"
/datum/mood_event/artok
description = "It's nice to see people are making art around here."
mood_change = 2