Prompt and taunt you after 3rd and final death
Fixed a bug where you'd not be asked about whether to be resurrected a final time. Now you are.
This commit is contained in:
parent
49d9ef1bee
commit
e696fed6db
4 changed files with 77 additions and 24 deletions
4
main.c
4
main.c
|
@ -487,8 +487,8 @@ static void croak(void)
|
||||||
* death and exit. */
|
* death and exit. */
|
||||||
rspeak(DEATH_CLOSING);
|
rspeak(DEATH_CLOSING);
|
||||||
terminate(endgame);
|
terminate(endgame);
|
||||||
} else if (game.numdie == NDEATHS ||
|
} else if ( !yes(query, yes_response, arbitrary_messages[OK_MAN])
|
||||||
!yes(query, yes_response, arbitrary_messages[OK_MAN]))
|
|| game.numdie == NDEATHS)
|
||||||
terminate(endgame);
|
terminate(endgame);
|
||||||
else {
|
else {
|
||||||
game.place[WATER] = game.place[OIL] = LOC_NOWHERE;
|
game.place[WATER] = game.place[OIL] = LOC_NOWHERE;
|
||||||
|
|
|
@ -39,19 +39,19 @@
|
||||||
<td width="10%" class="headerCovTableHead">% Coverage</td>
|
<td width="10%" class="headerCovTableHead">% Coverage</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="headerItem">Test:</td>
|
<td class="headerItem">Test:</a></td>
|
||||||
<td class="headerValue">adventure.yaml</td>
|
<td class="headerValue">adventure.yaml</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Locations:</td>
|
<td class="headerItem"><a href="#locations">Locations:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="headerItem">Date:</td>
|
<td class="headerItem">Date:</a></td>
|
||||||
<td class="headerValue">2017-07-07 21:47:56</td>
|
<td class="headerValue">2017-07-07 21:47:56</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Arbitrary Messages:</td>
|
<td class="headerItem"><a href="#arbitrary_messages">Arbitrary Messages:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Objects:</td>
|
<td class="headerItem"><a href="#objects">Objects:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Hints:</td>
|
<td class="headerItem"><a href="#hints">Hints:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Classes:</td>
|
<td class="headerItem"><a href="#classes">Classes:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Turn threshold:</td>
|
<td class="headerItem"><a href="#turn_thresholds">Turn threshold:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Obituaries:</td>
|
<td class="headerItem"><a href="#obituaries">Obituaries:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Actions:</td>
|
<td class="headerItem"><a href="#actions">Actions:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class="headerItem">Specials:</td>
|
<td class="headerItem"><a href="#specials">Specials:</a></td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}</td>
|
<td class="headerCovTableEntry">{}</td>
|
||||||
<td class="headerCovTableEntry">{}%</td>
|
<td class="headerCovTableEntry">{}%</td>
|
||||||
|
@ -128,7 +128,7 @@
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="locations" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Location</td>
|
<td class="tableHead">Location</td>
|
||||||
<td class="tableHead">long</td>
|
<td class="tableHead">long</td>
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="arbitrary_messages" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Arbitrary Message</td>
|
<td class="tableHead">Arbitrary Message</td>
|
||||||
<td class="tableHead">Covered?</td>
|
<td class="tableHead">Covered?</td>
|
||||||
|
@ -147,7 +147,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="objects" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Objects</td>
|
<td class="tableHead">Objects</td>
|
||||||
<td class="tableHead">Covered?</td>
|
<td class="tableHead">Covered?</td>
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="hints" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Hint Name</td>
|
<td class="tableHead">Hint Name</td>
|
||||||
<td class="tableHead">Question</td>
|
<td class="tableHead">Question</td>
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="classes" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Class threshold</td>
|
<td class="tableHead">Class threshold</td>
|
||||||
<td class="tableHead">Message</td>
|
<td class="tableHead">Message</td>
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="turn_thresholds" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Turn threshold</td>
|
<td class="tableHead">Turn threshold</td>
|
||||||
<td class="tableHead">Message</td>
|
<td class="tableHead">Message</td>
|
||||||
|
@ -184,7 +184,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="obituaries" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Obituary</td>
|
<td class="tableHead">Obituary</td>
|
||||||
<td class="tableHead">Query</td>
|
<td class="tableHead">Query</td>
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="actions" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Action ID</td>
|
<td class="tableHead">Action ID</td>
|
||||||
<td class="tableHead">Message</td>
|
<td class="tableHead">Message</td>
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<table width="60%" cellpadding=1 cellspacing=1 border=0>
|
<table id="specials" width="60%" cellpadding=1 cellspacing=1 border=0>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableHead">Special ID</td>
|
<td class="tableHead">Special ID</td>
|
||||||
<td class="tableHead">Message</td>
|
<td class="tableHead">Message</td>
|
||||||
|
|
|
@ -57,9 +57,55 @@ There is food here.
|
||||||
|
|
||||||
There is a bottle of water here.
|
There is a bottle of water here.
|
||||||
|
|
||||||
|
> xyzzy
|
||||||
|
|
||||||
You scored 22 out of a possible 430, using 3 turns.
|
>>Foof!<<
|
||||||
|
|
||||||
|
It is now pitch dark. If you proceed you will likely fall into a pit.
|
||||||
|
|
||||||
|
> n
|
||||||
|
|
||||||
|
There is no way to go that direction.
|
||||||
|
|
||||||
|
You fell into a pit and broke every bone in your body!
|
||||||
|
|
||||||
|
You clumsy oaf, you've done it again! I don''t know how long I can
|
||||||
|
keep this up. Do you want me to try reincarnating you again?
|
||||||
|
|
||||||
|
> y
|
||||||
|
|
||||||
|
Okay, now where did I put my orange smoke?.... >POOF!<
|
||||||
|
Everything disappears in a dense cloud of orange smoke.
|
||||||
|
|
||||||
|
You're inside building.
|
||||||
|
|
||||||
|
There are some keys on the ground here.
|
||||||
|
|
||||||
|
There is a shiny brass lamp nearby.
|
||||||
|
|
||||||
|
There is food here.
|
||||||
|
|
||||||
|
There is a bottle of water here.
|
||||||
|
|
||||||
|
> xyzzy
|
||||||
|
|
||||||
|
>>Foof!<<
|
||||||
|
|
||||||
|
It is now pitch dark. If you proceed you will likely fall into a pit.
|
||||||
|
|
||||||
|
> w
|
||||||
|
|
||||||
|
You fell into a pit and broke every bone in your body!
|
||||||
|
|
||||||
|
Now you''ve really done it! I'm out of orange smoke! You don''t expect
|
||||||
|
me to do a decent reincarnation without any orange smoke, do you?
|
||||||
|
|
||||||
|
> y
|
||||||
|
|
||||||
|
Okay, if you're so smart, do it yourself! I'm leaving!
|
||||||
|
|
||||||
|
You scored 6 out of a possible 430, using 7 turns.
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
You are obviously a rank amateur. Better luck next time.
|
||||||
|
|
||||||
To achieve the next higher rating, you need 24 more points.
|
To achieve the next higher rating, you need 40 more points.
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
## Death by pitfall
|
## Death by pitfall
|
||||||
|
# Die 3 times so we can cover all the opituary messages
|
||||||
n
|
n
|
||||||
seed 780351908
|
seed 780351908
|
||||||
enter building
|
enter building
|
||||||
xyzzy
|
xyzzy
|
||||||
s
|
s
|
||||||
y
|
y
|
||||||
|
xyzzy
|
||||||
|
n
|
||||||
|
y
|
||||||
|
xyzzy
|
||||||
|
w
|
||||||
|
y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue