Skip to content

Commit

Permalink
madness revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Oct 22, 2024
1 parent a304b45 commit ce34c29
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion _FUversioning.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
------------------
* Madness no longer decays naturally. While the mechanic did what was desired, it was time for a change. The instrafreud is now the core reliable way to reduce this resource. Mental Protection and other effects still affect loss of madness using old values.
* For now, Madness Gain items are remaining unchanged so we can analyze long-term effects on Madness progression with this change.

* The first time you use the Instafreud, you are informed of its function.
* internal code changes: moved several species checks to instead be stat checks. added stats to relevant races.
* corrected various typos on descriptions
* the Armory can now sort by rarity

^cyan;6.4.6^reset;
------------------
Expand Down
3 changes: 2 additions & 1 deletion quests/madness/madnessdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ function update(dt)

self.timerDegrade = math.max(self.timerDegrade - dt,0.0) - (self.protheonCount * 4)

if (status.stat("freudBonus") > 0 ) then -- player is inside an Instafreud
if (status.stat("freudBonus") > 0 ) then -- player is inside an Instafreud or has consumed an item that temporarily acts like one
self.degradeTotal = self.madnessCount / 300 + (self.protheonCount) + status.stat("freudBonus") + (status.stat("mentalProtection")/20)
displayBar()
--sb.logInfo("Instafreud is active. Reducing madness.")
player.radioMessage("fu_useFreud")
Expand Down
3 changes: 2 additions & 1 deletion stats/effects/fu_effects/madness/madnessloss.statuseffect
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name" : "madnessloss",
"effectConfig": {
"stats": [{
"stats": [
{
"stat": "mentalProtection",
"amount": 0.2
}
Expand Down
8 changes: 5 additions & 3 deletions stats/effects/fu_effects/madness/madnessloss4.statuseffect
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name" : "madnessloss4",
"effectConfig": {
"stats": [{
"stats": [
{
"stat": "mentalProtection",
"amount": 0.8
},{
},
{
"stat": "freudBonus",
"amount": 4
}
Expand All @@ -17,6 +19,6 @@
],

"animationConfig" : "madnessgain.animation",
"label" : "Psychiatric Help - 80% Reduced risk of Madness effects.",
"label" : "Psychiatric Help - 80% Reduced risk of Madness effects. Passively reduce Madness.",
"icon" : "/interface/statuses/frozenfire.png"
}

0 comments on commit ce34c29

Please sign in to comment.