From 6e496ed452c055fc1d5b68c3305a575f7c28100c Mon Sep 17 00:00:00 2001 From: Rakeela Windrider Date: Sat, 6 Sep 2025 02:58:25 +0000 Subject: [PATCH] Mood System V0.02 I patched an off-by-one error in the code that initialized the tiredness variable. --- story.ni | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/story.ni b/story.ni index 712a42c..0588c1c 100644 --- a/story.ni +++ b/story.ni @@ -157,7 +157,7 @@ TurnsCount is a number that varies. TurnsCount is usually 0. Every turn: now TimekeepingVar is remainder after dividing TurnsCount by 4; -A person has a number called TirednessVar. TirednessVar is usually 0. +A person has a number called TirednessVar. TirednessVar is usually 1. This is the turnpass rule: Now TurnsCount is TurnsCount + 1; @@ -2093,15 +2093,15 @@ To say Dream: If a random chance of 1 in 9 succeeds: choose row 3 in the Table of Dreams; say "You have a nightmare about [a random item from subject entry]."; - now the securityNum of the player is the securityNum of the player -1; + now the securityNum of the player is the securityNum of the player - 1; Otherwise if a random chance of 3 in 9 succeeds: choose row 2 in the Table of Dreams; say "You have a confusing dream about [a random item from subject entry]."; - now the entertainNum of the player is the entertainNum of the player -1; + now the entertainNum of the player is the entertainNum of the player - 1; Otherwise: choose row 1 in the Table of Dreams; say "You have a pleasant dream about [a random item from subject entry]."; - now the securityNum of the player is the securityNum of the player +1; + now the securityNum of the player is the securityNum of the player + 1; Table of Dreams valence subject