Skip to content

Commit

Permalink
Re-adds 'Devout Follower', adds 'Colorblind'
Browse files Browse the repository at this point in the history
  • Loading branch information
coficoficofi committed Aug 6, 2024
1 parent 107d031 commit dd846c0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/datums/character_flaw/_character_flaw.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

GLOBAL_LIST_INIT(character_flaws, list(
"Alcoholic"=/datum/charflaw/addiction/alcoholic,
"Devout Follower"=/datum/charflaw/addiction/godfearing,
"Colorblind"=/datum/charflaw/colorblind,
"Smoker"=/datum/charflaw/addiction/smoker,
"Junkie"=/datum/charflaw/addiction/junkie,
"Greedy"=/datum/charflaw/greedy,
Expand Down Expand Up @@ -210,6 +212,13 @@ GLOBAL_LIST_INIT(character_flaws, list(
head?.add_wound(/datum/wound/facial/eyes/left/permanent)
H.update_fov_angles()

/datum/charflaw/colorblind
name = "Colorblind"
desc = "I was cursed with flawed eyesight from birth, and can't discern things others can."

/datum/charflaw/colorblind/on_mob_creation(mob/user)
..()
user.add_client_colour(/datum/client_colour/monochrome)
/datum/charflaw/greedy
name = "Greedy"
desc = "I can't get enough of mammons, I need more and more! I've also become good at knowing how much things are worth"
Expand Down
7 changes: 7 additions & 0 deletions code/datums/character_flaw/addiction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,10 @@
time = 40 MINUTES
needsate_text = "Time for a flavorful smoke."

/// GOD-FEARING

/datum/charflaw/addiction/godfearing
name = "Devout Follower"
desc = "I need to pray to my Patron, their blessings are stronger."
time = 40 MINUTES
needsate_text = "Time to pray to my Patron."
2 changes: 2 additions & 0 deletions code/game/objects/structures/fluff.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,8 @@
L.IgniteMob()
return FALSE
if(length(message2recognize) > 15)
if(L.has_flaw(/datum/charflaw/addiction/godfearing))
L.sate_addiction()
if(L.mob_timers[MT_PSYPRAY])
if(world.time < L.mob_timers[MT_PSYPRAY] + 1 MINUTES)
L.mob_timers[MT_PSYPRAY] = world.time
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
var/message2recognize = sanitize_hear_message(message)
var/mob/living/carbon/human/M = L
if(length(message2recognize) > 15)
if(L.has_flaw(/datum/charflaw/addiction/godfearing))
L.sate_addiction()
if(L.mob_timers[MT_PSYPRAY])
if(world.time < L.mob_timers[MT_PSYPRAY] + 1 MINUTES)
L.mob_timers[MT_PSYPRAY] = world.time
Expand Down
4 changes: 4 additions & 0 deletions code/modules/paperwork/rogue.dm
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@
return
if(signed)
return
if(M.has_flaw(/datum/charflaw/addiction/godfearing))
M.add_stress(/datum/stressevent/confessedgood)
else
M.add_stress(/datum/stressevent/confessed)
M.add_stress(/datum/stressevent/confessed)
signed = M.real_name
info = "THE GUILTY PARTY ADMITS THEIR SIN AND THE WEAKENING OF PSYDON'S HOLY FLOCK. THEY WILL REPENT AND SUBMIT TO ANY PUNISHMENT THE CLERGY DEEMS APPROPRIATE, OR BE RELEASED IMMEDIATELY. LET THIS RECORD OF THEIR SIN WEIGH ON THE ANGEL GABRIEL'S JUDGEMENT AT THE MANY-SPIKED GATES OF HEAVEN.<br/><br/>SIGNED,<br/><font color='red'>[signed]</font>"

0 comments on commit dd846c0

Please sign in to comment.