Demon Rage Mode and Sanity System - Afronomical/Producing-Games-24 GitHub Wiki
Sanity Meter/Rage Level
The Sanity meter is an invisible stat of the overall sanity of all patients and the player. The player is affected more by demonic powers the lower the level of sanity. The player begins the game with 100 sanity and is affected hourly and through events. This is a losing battle the player partakes in as they will be trying to keep overall sanity as high as possible but events and the grind of the game will continue to wear and break down the patients and the player's sanity leading to increased demon activity.
Demon Rage mode
Demon rage mode is when the demon's shadow or imp searches for the player. When demon rage mode begins an audio queue triggers a guttural scream and UI screen shake. The demon is spawned out of the player's sight and starts to path towards the player. The speed of the demon is based on the Sanity level. When a demon is running or moving towards the player the screen shakes within a certain distance. Demon spawn points are set based on the current level design based on the current player position.
Sanity level’s effect on Rage Mode
Higher sanity causes the demon's speed to increase and increases the demon's ability to search hiding spots for the player.
Events that effect Sanity
Sanity reduction | Sanity Changes | Extra info |
---|---|---|
New Hour sanity reduction | -20 | The hours slowly wear away sanity |
Sanity reduction over time | -2 per 15 minutes of in-game hour time | |
Completing an hourly task | +2 | Increasing overall sanity and morale |
Resetting defamed cross-es | +2 | Restores the faith in the power of Christ |
Defamed crosses not fixed at the end of the hour | -5 per cross | Allows for more demonic energy to effect the church |
Completing all hourly tasks | +4 | Increases overall sanity and morale |
NPC out of bed at the end of the hour | -10 | NPCs out of bed |
Return the NPC to bed | +5 | Soothes NPCs worries |
Leaving NPC mid-escort | -10 | Causes panic |
Singing gospel NPC Event | +20 | Increases overall sanity |
Praying NPC event | +10 | Increases overall sanity |