summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-12 08:44:28 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-12 08:46:02 +0100
commitbe3a6e4cab9e0458ac2bb16c9521269a14fa7e3f (patch)
tree005ddc41aaf26ef9ef4559f39dec1074686c0c2a
parente809d2fe548a0dad3c005fd3c7805446cefd138d (diff)
Import Killerbunnies patch: Add a "you do not you all your fate" text to Fates menu if there are fates you haven't discovered yet.
-rw-r--r--changes.txt2
-rw-r--r--src/xtra1.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/changes.txt b/changes.txt
index 26e6e060..2c6cdc4c 100644
--- a/changes.txt
+++ b/changes.txt
@@ -6,6 +6,8 @@ T.o.M.E 2.3.7 (ah)
- Fix Lua errors when hitting <ESC> while choosing spell.
- Killerbunnies: Automatizer: Add patch which adds new <inventory/>
and <equipment/> rules.
+- Killerbunnies: Add "you do not know all your fate" to Fate menu
+ if you haven't been discovered all your fates.
T.o.M.E 2.3.6 (ah)
diff --git a/src/xtra1.c b/src/xtra1.c
index 37fa8cfe..d1996b18 100644
--- a/src/xtra1.c
+++ b/src/xtra1.c
@@ -4829,6 +4829,7 @@ void dump_fates(FILE *outfile)
{
int i;
char buf[120];
+ bool pending = FALSE;
if (!outfile) return;
@@ -4839,6 +4840,11 @@ void dump_fates(FILE *outfile)
fate_desc(buf, i);
fprintf(outfile, "%s\n", buf);
}
+ if ((fates[i].fate) && !(fates[i].know)) pending = TRUE;
+ }
+ if (pending)
+ {
+ fprintf(outfile, "You do not know all of your fate.\n");
}
}