Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Schizophrenia #34267

Merged
merged 34 commits into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d18bc02
Fix schizophrenia
zachary-kaelan Sep 27, 2019
ef20495
Buff schizophrenia point gain
zachary-kaelan Sep 27, 2019
54eb5eb
Add delusion snippets and grandiosity
zachary-kaelan Sep 27, 2019
b513a17
Update src/player.cpp
zachary-kaelan Sep 27, 2019
3843bca
Create snippets file and add schizo_self_talk category
zachary-kaelan Sep 27, 2019
cd25684
Convert broken limb and talk to self to use snippets
zachary-kaelan Sep 27, 2019
a7590a0
Add broken_limb snippet category to health_msgs
zachary-kaelan Sep 27, 2019
644f142
Add schizo_weapon_talk snippet categories
zachary-kaelan Sep 27, 2019
0be5de2
Convert weapon hallucinations to use snippets
zachary-kaelan Sep 27, 2019
f2cc049
Add schizo_delusion snippet categories
zachary-kaelan Sep 27, 2019
b3be028
Convert delusions to use snippets and rebalance morale
zachary-kaelan Sep 27, 2019
630ac2c
Make thorazine actually useful and realistic, and remove formication …
zachary-kaelan Sep 27, 2019
51dd886
Revert "Make thorazine actually useful and realistic, and remove form…
zachary-kaelan Sep 27, 2019
da94713
Make thorazine actually useful and realistic
zachary-kaelan Sep 27, 2019
007e717
Add schizo_formication snippet category
zachary-kaelan Sep 27, 2019
50f8e70
Convert formication to use snippets, and make numbers less harsh
zachary-kaelan Sep 27, 2019
21e649d
Add schizo_self_shout snippet category
zachary-kaelan Sep 27, 2019
68306d1
Convert self shout to work with snippets
zachary-kaelan Sep 27, 2019
27d08bc
Make valium prevent schizophrenia shakes
zachary-kaelan Sep 27, 2019
c3cc8b9
Add schizo_weapon_drop snippet category
zachary-kaelan Sep 27, 2019
f890419
Convert weapon drop to work with snippets, and move up done_effect fo…
zachary-kaelan Sep 27, 2019
52dced1
Remove broken_limb snippet category from health_msgs
zachary-kaelan Sep 27, 2019
f318ec0
Add broken_limb snippet category
zachary-kaelan Sep 27, 2019
2973503
Add shout translation support
zachary-kaelan Sep 27, 2019
be8202b
Remove extra comma
zachary-kaelan Sep 27, 2019
464311d
Fix delusion snips and formatting
zachary-kaelan Sep 28, 2019
f1e765c
Add starting thorazine for schizophrenic trait
zachary-kaelan Sep 28, 2019
3cf0d8e
Merge branch 'patch-1' of https://github.com/zachary-kaelan/Cataclysm…
zachary-kaelan Sep 28, 2019
59ae00d
Linted schizophrenia.json
zachary-kaelan Sep 28, 2019
b345e07
Lint effects.json
zachary-kaelan Sep 28, 2019
ac458da
RNG styling issue
zachary-kaelan Oct 1, 2019
293524a
Astyle format
zachary-kaelan Oct 1, 2019
5c29828
Astyle merge
zachary-kaelan Oct 1, 2019
a35dcf0
Astyle, again
zachary-kaelan Oct 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@
"type": "mutation",
"id": "SCHIZOPHRENIC",
"name": "Schizophrenic",
"points": -2,
"points": -3,
"description": "You will periodically suffer from delusions, ranging from minor effects to full visual hallucinations. Some of these effects may be controlled through the use of Thorazine.",
"starting_trait": true,
"valid": false,
Expand Down
27 changes: 22 additions & 5 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5137,13 +5137,30 @@ void player::suffer()
}
if( does_talk ) {
add_msg( _( "%1$s says: \"%2$s\"" ), i_name_w, i_talk_w );
done_effect = true;
}
done_effect = true;
}
// Bad feeling
if( !done_effect && one_turn_in( 4_hours ) ) {
add_msg( m_warning, _( "You get a bad feeling." ) );
add_morale( MORALE_FEELING_BAD, -50, -150 );
// Delusions
if( !done_effect && one_turn_in( 8_hours ) ) {
if (rng(1, 20) > 5) { // 75% chance
static const std::vector<std::string> paranoid{ _("You feel like the world is out to get you."),
zachary-kaelan marked this conversation as resolved.
Show resolved Hide resolved
_("You feel a mounting sense of impending doom."),
_("You gain the sudden realization that you must have been responsible for the cataclysm."),
_("You get the odd feeling that your thoughts are not your own."),
_("You feel as if everyone in the world must be playing a sick prank on you."),
_("You are being watched... by THEM.") };
add_msg(m_warning, random_entry_ref(paranoid));
add_morale(MORALE_FEELING_BAD, -50, -150);
} else { // 25% chance
std::vector<std::string> grandiose{ _("You gain the sudden realization that you are the creator of the universe."),
_("You increase all your skills to level 10."),
_("You gain the sudden realization that you must have been responsible for the cataclysm."),
_("You feel that this must be a global reality show, in which you are the star."),
_("You now know that you are a secret agent, kept alive to continue serving the government."),
_("You feel in full control of the situation.") };
add_msg(m_good, random_entry_ref(grandiose));
add_morale(MORALE_FEELING_GOOD, 50, 150);
}
done_effect = true;
}
// Formication
Expand Down