From 9a0fc62127721b7be521c5be4a7b62f1550b0ec8 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 20 Sep 2024 22:19:59 -0700 Subject: [PATCH] pauper legacy Give a different introduction (the "legacy" text) when starting play as a pauper. --- dat/quest.lua | 24 +++++++++++++++++++++++- src/allmain.c | 4 ++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/dat/quest.lua b/dat/quest.lua index b1f9ab785..c3bad692d 100644 --- a/dat/quest.lua +++ b/dat/quest.lua @@ -1,4 +1,4 @@ --- NetHack quest.lua $NHDT-Date: 1652196288 2022/05/10 15:24:48 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.7 $ +-- NetHack quest.lua $NHDT-Date: 1726894904 2024/09/21 05:01:44 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.10 $ -- Copyright (c) 2021 by Pasi Kallinen -- NetHack may be freely redistributed. See license for details. -- TODO: @@ -153,6 +153,28 @@ to recover the Amulet for your deity, or die in the attempt. Your hour of destiny has come. For the sake of us all: Go bravely with %d!]], }, +-- starting with 'pauper' option set, last paragraph differs from normal legacy + pauper_legacy = { + synopsis = "[%dC has chosen you to recover the Amulet of Yendor for %dI.]", + output = "menu", + text = [[It is written in the Book of %d: + + After the Creation, the cruel god Moloch rebelled + against the authority of Marduk the Creator. + Moloch stole from Marduk the most powerful of all + the artifacts of the gods, the Amulet of Yendor, + and he hid it in the dark cavities of Gehennom, the + Under World, where he now lurks, and bides his time. + +Your %G %d seeks to possess the Amulet, and with it +to gain deserved ascendance over the other gods. + +You, an untrained %r, have been unable to adequately +prepare to be the instrument of %d. Nevertheless, you +are destined to recover the Amulet for your deity, or die +in the attempt. Your hour of destiny has come. For the +sake of us all: Go bravely with %d!]], + }, quest_complete_no_bell = { text = [["The silver bell which was hoarded by %n will be essential in locating the Amulet of Yendor."]], diff --git a/src/allmain.c b/src/allmain.c index aa6070fa7..4d281fe7f 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 allmain.c $NHDT-Date: 1723833610 2024/08/16 18:40:10 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.258 $ */ +/* NetHack 3.7 allmain.c $NHDT-Date: 1726894914 2024/09/21 05:01:54 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.261 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -777,7 +777,7 @@ newgame(void) if (flags.legacy) { flush_screen(1); - com_pager("legacy"); + com_pager(u.uroleplay.pauper ? "pauper_legacy" : "legacy"); } urealtime.realtime = 0L;