Make TOURIST unconditional.

This commit is contained in:
Sean Hunt
2015-02-27 19:33:12 -05:00
parent 5ee71d2757
commit 260f7ea860
43 changed files with 27 additions and 351 deletions
-2
View File
@@ -215,13 +215,11 @@ A("The Tsurugi of Muramasa", TSURUGI,
PHYS(0,8), NO_DFNS, NO_CARY, PHYS(0,8), NO_DFNS, NO_CARY,
0, A_LAWFUL, PM_SAMURAI, NON_PM, 4500L ), 0, A_LAWFUL, PM_SAMURAI, NON_PM, 4500L ),
#ifdef TOURIST
A("The Platinum Yendorian Express Card", CREDIT_CARD, A("The Platinum Yendorian Express Card", CREDIT_CARD,
(SPFX_NOGEN|SPFX_RESTR|SPFX_INTEL|SPFX_DEFN), (SPFX_NOGEN|SPFX_RESTR|SPFX_INTEL|SPFX_DEFN),
(SPFX_ESP|SPFX_HSPDAM), 0, (SPFX_ESP|SPFX_HSPDAM), 0,
NO_ATTK, NO_DFNS, CARY(AD_MAGM), NO_ATTK, NO_DFNS, CARY(AD_MAGM),
CHARGE_OBJ, A_NEUTRAL, PM_TOURIST, NON_PM, 7000L ), CHARGE_OBJ, A_NEUTRAL, PM_TOURIST, NON_PM, 7000L ),
#endif
A("The Orb of Fate", CRYSTAL_BALL, A("The Orb of Fate", CRYSTAL_BALL,
(SPFX_NOGEN|SPFX_RESTR|SPFX_INTEL|SPFX_LUCK), (SPFX_NOGEN|SPFX_RESTR|SPFX_INTEL|SPFX_LUCK),
-1
View File
@@ -423,7 +423,6 @@ typedef unsigned char uchar;
#define REINCARNATION /* Special Rogue-like levels */ #define REINCARNATION /* Special Rogue-like levels */
/* monsters & objects */ /* monsters & objects */
#define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */ #define SEDUCE /* Succubi/incubi seduction, by KAA, suggested by IM */
#define TOURIST /* Tourist players with cameras and Hawaiian shirts */
/* I/O */ /* I/O */
#define REDO /* support for redoing last command - DGK */ #define REDO /* support for redoing last command - DGK */
#if !defined(MAC) #if !defined(MAC)
-2
View File
@@ -234,9 +234,7 @@ E uchar monsyms[MAXMCLASSES]; /* current class symbols */
#include "obj.h" #include "obj.h"
E NEARDATA struct obj *invent, E NEARDATA struct obj *invent,
*uarm, *uarmc, *uarmh, *uarms, *uarmg, *uarmf, *uarm, *uarmc, *uarmh, *uarms, *uarmg, *uarmf,
#ifdef TOURIST
*uarmu, /* under-wear, so to speak */ *uarmu, /* under-wear, so to speak */
#endif
*uskin, *uamul, *uleft, *uright, *ublindf, *uskin, *uamul, *uleft, *uright, *ublindf,
*uwep, *uswapwep, *uquiver; *uwep, *uswapwep, *uquiver;
-2
View File
@@ -429,9 +429,7 @@ E int NDECL(Gloves_off);
E int NDECL(Boots_off); E int NDECL(Boots_off);
E int NDECL(Cloak_off); E int NDECL(Cloak_off);
E int NDECL(Shield_off); E int NDECL(Shield_off);
#ifdef TOURIST
E int NDECL(Shirt_off); E int NDECL(Shirt_off);
#endif
E void NDECL(Amulet_off); E void NDECL(Amulet_off);
E void FDECL(Ring_on, (struct obj *)); E void FDECL(Ring_on, (struct obj *));
E void FDECL(Ring_off, (struct obj *)); E void FDECL(Ring_off, (struct obj *));
-6
View File
@@ -96,12 +96,8 @@ struct prop {
# define W_ARMS 0x00000008L /* Shield */ # define W_ARMS 0x00000008L /* Shield */
# define W_ARMG 0x00000010L /* Gloves/gauntlets */ # define W_ARMG 0x00000010L /* Gloves/gauntlets */
# define W_ARMF 0x00000020L /* Footwear */ # define W_ARMF 0x00000020L /* Footwear */
#ifdef TOURIST
# define W_ARMU 0x00000040L /* Undershirt */ # define W_ARMU 0x00000040L /* Undershirt */
# define W_ARMOR (W_ARM | W_ARMC | W_ARMH | W_ARMS | W_ARMG | W_ARMF | W_ARMU) # define W_ARMOR (W_ARM | W_ARMC | W_ARMH | W_ARMS | W_ARMG | W_ARMF | W_ARMU)
#else
# define W_ARMOR (W_ARM | W_ARMC | W_ARMH | W_ARMS | W_ARMG | W_ARMF)
#endif
/* Weapons and artifacts */ /* Weapons and artifacts */
# define W_WEP 0x00000100L /* Wielded weapon */ # define W_WEP 0x00000100L /* Wielded weapon */
# define W_QUIVER 0x00000200L /* Quiver for (f)iring ammo */ # define W_QUIVER 0x00000200L /* Quiver for (f)iring ammo */
@@ -149,8 +145,6 @@ struct prop {
#define WORN_BOOTS W_ARMF #define WORN_BOOTS W_ARMF
#define WORN_AMUL W_AMUL #define WORN_AMUL W_AMUL
#define WORN_BLINDF W_TOOL #define WORN_BLINDF W_TOOL
#ifdef TOURIST
#define WORN_SHIRT W_ARMU #define WORN_SHIRT W_ARMU
#endif
#endif /* PROP_H */ #endif /* PROP_H */
-8
View File
@@ -7,9 +7,7 @@
extern boolean notonhead; /* for long worms */ extern boolean notonhead; /* for long worms */
#ifdef TOURIST
STATIC_DCL int FDECL(use_camera, (struct obj *)); STATIC_DCL int FDECL(use_camera, (struct obj *));
#endif
STATIC_DCL int FDECL(use_towel, (struct obj *)); STATIC_DCL int FDECL(use_towel, (struct obj *));
STATIC_DCL boolean FDECL(its_dead, (int,int,int *)); STATIC_DCL boolean FDECL(its_dead, (int,int,int *));
STATIC_DCL int FDECL(use_stethoscope, (struct obj *)); STATIC_DCL int FDECL(use_stethoscope, (struct obj *));
@@ -44,7 +42,6 @@ void FDECL( amii_speaker, ( struct obj *, char *, int ) );
static const char no_elbow_room[] = "don't have enough elbow-room to maneuver."; static const char no_elbow_room[] = "don't have enough elbow-room to maneuver.";
#ifdef TOURIST
STATIC_OVL int STATIC_OVL int
use_camera(obj) use_camera(obj)
struct obj *obj; struct obj *obj;
@@ -82,7 +79,6 @@ use_camera(obj)
} }
return 1; return 1;
} }
#endif
STATIC_OVL int STATIC_OVL int
use_towel(obj) use_towel(obj)
@@ -3154,9 +3150,7 @@ doapply()
use_grease(obj); use_grease(obj);
break; break;
case LOCK_PICK: case LOCK_PICK:
#ifdef TOURIST
case CREDIT_CARD: case CREDIT_CARD:
#endif
case SKELETON_KEY: case SKELETON_KEY:
res = (pick_lock(obj) != 0); res = (pick_lock(obj) != 0);
break; break;
@@ -3223,11 +3217,9 @@ doapply()
case POT_OIL: case POT_OIL:
light_cocktail(obj); light_cocktail(obj);
break; break;
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
res = use_camera(obj); res = use_camera(obj);
break; break;
#endif
case TOWEL: case TOWEL:
res = use_towel(obj); res = use_towel(obj);
break; break;
+1 -5
View File
@@ -1687,11 +1687,7 @@ long *abil;
long wornbits; long wornbits;
long wornmask = (W_ARM | W_ARMC | W_ARMH | W_ARMS | W_ARMG | W_ARMF | long wornmask = (W_ARM | W_ARMC | W_ARMH | W_ARMS | W_ARMG | W_ARMF |
W_WEP | W_QUIVER | W_SWAPWEP | W_ART | W_ARTI | W_AMUL | W_WEP | W_QUIVER | W_SWAPWEP | W_ART | W_ARTI | W_AMUL |
W_RINGL | W_RINGR | W_TOOL | W_BALL | W_CHAIN | W_SADDLE W_RINGL | W_RINGR | W_TOOL | W_BALL | W_CHAIN | W_SADDLE | W_ARMU);
#ifdef TOURIST
| W_ARMU
#endif
);
dtyp = abil_to_adtyp(abil); dtyp = abil_to_adtyp(abil);
spfx = abil_to_spfx(abil); spfx = abil_to_spfx(abil);
-4
View File
@@ -639,9 +639,7 @@ long frommask;
case PM_RANGER: abil = ran_abil; break; case PM_RANGER: abil = ran_abil; break;
case PM_ROGUE: abil = rog_abil; break; case PM_ROGUE: abil = rog_abil; break;
case PM_SAMURAI: abil = sam_abil; break; case PM_SAMURAI: abil = sam_abil; break;
#ifdef TOURIST
case PM_TOURIST: abil = tou_abil; break; case PM_TOURIST: abil = tou_abil; break;
#endif
case PM_VALKYRIE: abil = val_abil; break; case PM_VALKYRIE: abil = val_abil; break;
case PM_WIZARD: abil = wiz_abil; break; case PM_WIZARD: abil = wiz_abil; break;
default: break; default: break;
@@ -769,9 +767,7 @@ int oldlevel, newlevel;
case PM_RANGER: abil = ran_abil; break; case PM_RANGER: abil = ran_abil; break;
case PM_ROGUE: abil = rog_abil; break; case PM_ROGUE: abil = rog_abil; break;
case PM_SAMURAI: abil = sam_abil; break; case PM_SAMURAI: abil = sam_abil; break;
#ifdef TOURIST
case PM_TOURIST: abil = tou_abil; break; case PM_TOURIST: abil = tou_abil; break;
#endif
case PM_VALKYRIE: abil = val_abil; break; case PM_VALKYRIE: abil = val_abil; break;
case PM_WIZARD: abil = wiz_abil; break; case PM_WIZARD: abil = wiz_abil; break;
default: abil = 0; break; default: abil = 0; break;
-2
View File
@@ -150,9 +150,7 @@ NEARDATA struct obj *invent = (struct obj *)0,
*uwep = (struct obj *)0, *uarm = (struct obj *)0, *uwep = (struct obj *)0, *uarm = (struct obj *)0,
*uswapwep = (struct obj *)0, *uswapwep = (struct obj *)0,
*uquiver = (struct obj *)0, /* quiver */ *uquiver = (struct obj *)0, /* quiver */
#ifdef TOURIST
*uarmu = (struct obj *)0, /* under-wear, so to speak */ *uarmu = (struct obj *)0, /* under-wear, so to speak */
#endif
*uskin = (struct obj *)0, /* dragon armor, if a dragon */ *uskin = (struct obj *)0, /* dragon armor, if a dragon */
*uarmc = (struct obj *)0, *uarmh = (struct obj *)0, *uarmc = (struct obj *)0, *uarmh = (struct obj *)0,
*uarms = (struct obj *)0, *uarmg = (struct obj *)0, *uarms = (struct obj *)0, *uarmg = (struct obj *)0,
+9 -64
View File
@@ -9,9 +9,7 @@ static NEARDATA const char see_yourself[] = "see yourself";
static NEARDATA const char unknown_type[] = "Unknown type of %s (%d)"; static NEARDATA const char unknown_type[] = "Unknown type of %s (%d)";
static NEARDATA const char c_armor[] = "armor", static NEARDATA const char c_armor[] = "armor",
c_suit[] = "suit", c_suit[] = "suit",
#ifdef TOURIST
c_shirt[] = "shirt", c_shirt[] = "shirt",
#endif
c_cloak[] = "cloak", c_cloak[] = "cloak",
c_gloves[] = "gloves", c_gloves[] = "gloves",
c_boots[] = "boots", c_boots[] = "boots",
@@ -24,11 +22,8 @@ static NEARDATA const char c_armor[] = "armor",
static NEARDATA const long takeoff_order[] = { WORN_BLINDF, W_WEP, static NEARDATA const long takeoff_order[] = { WORN_BLINDF, W_WEP,
WORN_SHIELD, WORN_GLOVES, LEFT_RING, RIGHT_RING, WORN_CLOAK, WORN_SHIELD, WORN_GLOVES, LEFT_RING, RIGHT_RING, WORN_CLOAK,
WORN_HELMET, WORN_AMUL, WORN_ARMOR, WORN_HELMET, WORN_AMUL, WORN_ARMOR, WORN_SHIRT, WORN_BOOTS, W_SWAPWEP,
#ifdef TOURIST W_QUIVER, 0L };
WORN_SHIRT,
#endif
WORN_BOOTS, W_SWAPWEP, W_QUIVER, 0L };
STATIC_DCL void FDECL(on_msg, (struct obj *)); STATIC_DCL void FDECL(on_msg, (struct obj *));
STATIC_DCL void FDECL(toggle_stealth, (struct obj *,long,BOOLEAN_P)); STATIC_DCL void FDECL(toggle_stealth, (struct obj *,long,BOOLEAN_P));
@@ -40,9 +35,7 @@ STATIC_PTR int NDECL(Helmet_on);
STATIC_PTR int NDECL(Gloves_on); STATIC_PTR int NDECL(Gloves_on);
STATIC_DCL void FDECL(wielding_corpse, (struct obj *,BOOLEAN_P)); STATIC_DCL void FDECL(wielding_corpse, (struct obj *,BOOLEAN_P));
STATIC_PTR int NDECL(Shield_on); STATIC_PTR int NDECL(Shield_on);
#ifdef TOURIST
STATIC_PTR int NDECL(Shirt_on); STATIC_PTR int NDECL(Shirt_on);
#endif
STATIC_DCL void NDECL(Amulet_on); STATIC_DCL void NDECL(Amulet_on);
STATIC_DCL void FDECL(learnring, (struct obj *,BOOLEAN_P)); STATIC_DCL void FDECL(learnring, (struct obj *,BOOLEAN_P));
STATIC_DCL void FDECL(Ring_off_or_gone, (struct obj *, BOOLEAN_P)); STATIC_DCL void FDECL(Ring_off_or_gone, (struct obj *, BOOLEAN_P));
@@ -601,7 +594,6 @@ Shield_off(VOID_ARGS)
return 0; return 0;
} }
#ifdef TOURIST
STATIC_PTR int STATIC_PTR int
Shirt_on(VOID_ARGS) Shirt_on(VOID_ARGS)
{ {
@@ -631,7 +623,6 @@ Shirt_off(VOID_ARGS)
setworn((struct obj *)0, W_ARMU); setworn((struct obj *)0, W_ARMU);
return 0; return 0;
} }
#endif /*TOURIST*/
/* This must be done in worn.c, because one of the possible intrinsics conferred /* This must be done in worn.c, because one of the possible intrinsics conferred
* is fire resistance, and we have to immediately set HFire_resistance in worn.c * is fire resistance, and we have to immediately set HFire_resistance in worn.c
@@ -1137,9 +1128,7 @@ struct obj *obj; /* if null, do all worn items; otherwise just obj itself */
if (!obj ? uleft != 0 : (obj == uleft)) (void) Ring_on(uleft); if (!obj ? uleft != 0 : (obj == uleft)) (void) Ring_on(uleft);
if (!obj ? uamul != 0 : (obj == uamul)) (void) Amulet_on(); if (!obj ? uamul != 0 : (obj == uamul)) (void) Amulet_on();
#ifdef TOURIST
if (!obj ? uarmu != 0 : (obj == uarmu)) (void) Shirt_on(); if (!obj ? uarmu != 0 : (obj == uarmu)) (void) Shirt_on();
#endif
if (!obj ? uarm != 0 : (obj == uarm)) (void) Armor_on(); if (!obj ? uarm != 0 : (obj == uarm)) (void) Armor_on();
if (!obj ? uarmc != 0 : (obj == uarmc)) (void) Cloak_on(); if (!obj ? uarmc != 0 : (obj == uarmc)) (void) Cloak_on();
if (!obj ? uarmf != 0 : (obj == uarmf)) (void) Boots_on(); if (!obj ? uarmf != 0 : (obj == uarmf)) (void) Boots_on();
@@ -1163,11 +1152,9 @@ register struct obj *otmp;
if (otmp == uarm) if (otmp == uarm)
result = (afternmv == Armor_on || afternmv == Armor_off || result = (afternmv == Armor_on || afternmv == Armor_off ||
what == WORN_ARMOR); what == WORN_ARMOR);
#ifdef TOURIST
else if (otmp == uarmu) else if (otmp == uarmu)
result = (afternmv == Shirt_on || afternmv == Shirt_off || result = (afternmv == Shirt_on || afternmv == Shirt_off ||
what == WORN_SHIRT); what == WORN_SHIRT);
#endif
else if (otmp == uarmc) else if (otmp == uarmc)
result = (afternmv == Cloak_on || afternmv == Cloak_off || result = (afternmv == Cloak_on || afternmv == Cloak_off ||
what == WORN_CLOAK); what == WORN_CLOAK);
@@ -1199,10 +1186,8 @@ struct obj *otmp;
/* 'T' (also 'W') sets afternmv, 'A' sets context.takeoff.what */ /* 'T' (also 'W') sets afternmv, 'A' sets context.takeoff.what */
if (otmp == uarm) if (otmp == uarm)
result = (afternmv == Armor_off || what == WORN_ARMOR); result = (afternmv == Armor_off || what == WORN_ARMOR);
#ifdef TOURIST
else if (otmp == uarmu) else if (otmp == uarmu)
result = (afternmv == Shirt_off || what == WORN_SHIRT); result = (afternmv == Shirt_off || what == WORN_SHIRT);
#endif
else if (otmp == uarmc) else if (otmp == uarmc)
result = (afternmv == Cloak_off || what == WORN_CLOAK); result = (afternmv == Cloak_off || what == WORN_CLOAK);
else if (otmp == uarmf) else if (otmp == uarmf)
@@ -1297,11 +1282,9 @@ dotakeoff()
} else if (uarm) { } else if (uarm) {
armorpieces++; armorpieces++;
otmp = uarm; otmp = uarm;
#ifdef TOURIST
} else if (uarmu) { } else if (uarmu) {
armorpieces++; armorpieces++;
otmp = uarmu; otmp = uarmu;
#endif
} }
if (!armorpieces) { if (!armorpieces) {
/* assert( GRAY_DRAGON_SCALES > YELLOW_DRAGON_SCALE_MAIL ); */ /* assert( GRAY_DRAGON_SCALES > YELLOW_DRAGON_SCALE_MAIL ); */
@@ -1325,21 +1308,16 @@ dotakeoff()
/* note: the `uskin' case shouldn't be able to happen here; dragons /* note: the `uskin' case shouldn't be able to happen here; dragons
can't wear any armor so will end up with `armorpieces == 0' above */ can't wear any armor so will end up with `armorpieces == 0' above */
if (otmp == uskin || ((otmp == uarm) && uarmc) if (otmp == uskin || ((otmp == uarm) && uarmc)
#ifdef TOURIST || ((otmp == uarmu) && (uarmc || uarm))) {
|| ((otmp == uarmu) && (uarmc || uarm))
#endif
) {
char why[BUFSZ], what[BUFSZ]; char why[BUFSZ], what[BUFSZ];
why[0] = what[0] = '\0'; why[0] = what[0] = '\0';
if (otmp != uskin) { if (otmp != uskin) {
if (uarmc) Strcat(what, cloak_simple_name(uarmc)); if (uarmc) Strcat(what, cloak_simple_name(uarmc));
#ifdef TOURIST
if ((otmp == uarmu) && uarm) { if ((otmp == uarmu) && uarm) {
if (uarmc) Strcat(what, " and "); if (uarmc) Strcat(what, " and ");
Strcat(what, suit_simple_name(uarm)); Strcat(what, suit_simple_name(uarm));
} }
#endif
Sprintf(why, " without taking off your %s first", what); Sprintf(why, " without taking off your %s first", what);
} }
You_cant("take that off%s.", why); You_cant("take that off%s.", why);
@@ -1369,12 +1347,10 @@ doremring()
MOREACC(ublindf); MOREACC(ublindf);
if(!Accessories) { if(!Accessories) {
pline("Not wearing any accessories.%s", (iflags.cmdassist && pline("Not wearing any accessories.%s",
(uarm || uarmc || (iflags.cmdassist
#ifdef TOURIST && (uarm || uarmc || uarmu || uarms || uarmh || uarmg
uarmu || || uarmf)) ?
#endif
uarms || uarmh || uarmg || uarmf)) ?
" Use 'T' command to take off armor." : ""); " Use 'T' command to take off armor." : "");
return(0); return(0);
} }
@@ -1516,9 +1492,7 @@ boolean noisy;
const char *which; const char *which;
which = is_cloak(otmp) ? c_cloak : which = is_cloak(otmp) ? c_cloak :
#ifdef TOURIST
is_shirt(otmp) ? c_shirt : is_shirt(otmp) ? c_shirt :
#endif
is_suit(otmp) ? c_suit : 0; is_suit(otmp) ? c_suit : 0;
if (which && cantweararm(youmonst.data) && if (which && cantweararm(youmonst.data) &&
/* same exception for cloaks as used in m_dowear() */ /* same exception for cloaks as used in m_dowear() */
@@ -1531,12 +1505,7 @@ boolean noisy;
return 0; return 0;
} }
if (welded(uwep) && bimanual(uwep) && if (welded(uwep) && bimanual(uwep) && (is_suit(otmp) || is_shirt(otmp))) {
(is_suit(otmp)
#ifdef TOURIST
|| is_shirt(otmp)
#endif
)) {
if (noisy) if (noisy)
You("cannot do that while holding your %s.", You("cannot do that while holding your %s.",
is_sword(uwep) ? c_sword : c_weapon); is_sword(uwep) ? c_sword : c_weapon);
@@ -1613,7 +1582,6 @@ boolean noisy;
err++; err++;
} else } else
*mask = W_ARMG; *mask = W_ARMG;
#ifdef TOURIST
} else if (is_shirt(otmp)) { } else if (is_shirt(otmp)) {
if (uarm || uarmc || uarmu) { if (uarm || uarmc || uarmu) {
if (uarmu) { if (uarmu) {
@@ -1625,7 +1593,6 @@ boolean noisy;
err++; err++;
} else } else
*mask = W_ARMU; *mask = W_ARMU;
#endif
} else if (is_cloak(otmp)) { } else if (is_cloak(otmp)) {
if (uarmc) { if (uarmc) {
if (noisy) already_wearing(an(cloak_simple_name(uarmc))); if (noisy) already_wearing(an(cloak_simple_name(uarmc)));
@@ -1711,9 +1678,7 @@ dowear()
} else { } else {
if(is_cloak(otmp)) (void) Cloak_on(); if(is_cloak(otmp)) (void) Cloak_on();
if (is_shield(otmp)) (void) Shield_on(); if (is_shield(otmp)) (void) Shield_on();
#ifdef TOURIST
if (is_shirt(otmp)) (void) Shirt_on(); if (is_shirt(otmp)) (void) Shirt_on();
#endif
on_msg(otmp); on_msg(otmp);
} }
context.takeoff.mask = context.takeoff.what = 0L; context.takeoff.mask = context.takeoff.what = 0L;
@@ -1858,9 +1823,7 @@ find_ac()
if(uarmf) uac -= ARM_BONUS(uarmf); if(uarmf) uac -= ARM_BONUS(uarmf);
if(uarms) uac -= ARM_BONUS(uarms); if(uarms) uac -= ARM_BONUS(uarms);
if(uarmg) uac -= ARM_BONUS(uarmg); if(uarmg) uac -= ARM_BONUS(uarmg);
#ifdef TOURIST
if(uarmu) uac -= ARM_BONUS(uarmu); if(uarmu) uac -= ARM_BONUS(uarmu);
#endif
if(uleft && uleft->otyp == RIN_PROTECTION) uac -= uleft->spe; if(uleft && uleft->otyp == RIN_PROTECTION) uac -= uleft->spe;
if(uright && uright->otyp == RIN_PROTECTION) uac -= uright->spe; if(uright && uright->otyp == RIN_PROTECTION) uac -= uright->spe;
if (HProtection & INTRINSIC) uac -= u.ublessed; if (HProtection & INTRINSIC) uac -= u.ublessed;
@@ -1966,10 +1929,8 @@ struct monst *victim;
otmph = (victim == &youmonst) ? uarmc : which_armor(victim, W_ARMC); otmph = (victim == &youmonst) ? uarmc : which_armor(victim, W_ARMC);
if (!otmph) if (!otmph)
otmph = (victim == &youmonst) ? uarm : which_armor(victim, W_ARM); otmph = (victim == &youmonst) ? uarm : which_armor(victim, W_ARM);
#ifdef TOURIST
if (!otmph) if (!otmph)
otmph = (victim == &youmonst) ? uarmu : which_armor(victim, W_ARMU); otmph = (victim == &youmonst) ? uarmu : which_armor(victim, W_ARMU);
#endif
otmp = (victim == &youmonst) ? uarmh : which_armor(victim, W_ARMH); otmp = (victim == &youmonst) ? uarmh : which_armor(victim, W_ARMH);
if(otmp && (!otmph || !rn2(4))) otmph = otmp; if(otmp && (!otmph || !rn2(4))) otmph = otmp;
@@ -2086,20 +2047,14 @@ register struct obj *otmp;
} }
} }
/* special suit and shirt checks */ /* special suit and shirt checks */
if (otmp == uarm if (otmp == uarm || otmp == uarmu) {
#ifdef TOURIST
|| otmp == uarmu
#endif
) {
why = 0; /* the item which prevents disrobing */ why = 0; /* the item which prevents disrobing */
if (uarmc && uarmc->cursed) { if (uarmc && uarmc->cursed) {
Sprintf(buf, "remove your %s", cloak_simple_name(uarmc)); Sprintf(buf, "remove your %s", cloak_simple_name(uarmc));
why = uarmc; why = uarmc;
#ifdef TOURIST
} else if (otmp == uarmu && uarm && uarm->cursed) { } else if (otmp == uarmu && uarm && uarm->cursed) {
Sprintf(buf, "remove your %s", c_suit); Sprintf(buf, "remove your %s", c_suit);
why = uarm; why = uarm;
#endif
} else if (welded(uwep) && bimanual(uwep)) { } else if (welded(uwep) && bimanual(uwep)) {
Sprintf(buf, "release your %s", Sprintf(buf, "release your %s",
is_sword(uwep) ? c_sword : is_sword(uwep) ? c_sword :
@@ -2126,9 +2081,7 @@ register struct obj *otmp;
else if(otmp == uarmg) context.takeoff.mask |= WORN_GLOVES; else if(otmp == uarmg) context.takeoff.mask |= WORN_GLOVES;
else if(otmp == uarmh) context.takeoff.mask |= WORN_HELMET; else if(otmp == uarmh) context.takeoff.mask |= WORN_HELMET;
else if(otmp == uarms) context.takeoff.mask |= WORN_SHIELD; else if(otmp == uarms) context.takeoff.mask |= WORN_SHIELD;
#ifdef TOURIST
else if(otmp == uarmu) context.takeoff.mask |= WORN_SHIRT; else if(otmp == uarmu) context.takeoff.mask |= WORN_SHIRT;
#endif
else if(otmp == uleft) context.takeoff.mask |= LEFT_RING; else if(otmp == uleft) context.takeoff.mask |= LEFT_RING;
else if(otmp == uright) context.takeoff.mask |= RIGHT_RING; else if(otmp == uright) context.takeoff.mask |= RIGHT_RING;
else if(otmp == uamul) context.takeoff.mask |= WORN_AMUL; else if(otmp == uamul) context.takeoff.mask |= WORN_AMUL;
@@ -2179,11 +2132,9 @@ do_takeoff()
} else if (doff->what == WORN_SHIELD) { } else if (doff->what == WORN_SHIELD) {
otmp = uarms; otmp = uarms;
if (!cursed(otmp)) (void) Shield_off(); if (!cursed(otmp)) (void) Shield_off();
#ifdef TOURIST
} else if (doff->what == WORN_SHIRT) { } else if (doff->what == WORN_SHIRT) {
otmp = uarmu; otmp = uarmu;
if (!cursed(otmp)) (void) Shirt_off(); if (!cursed(otmp)) (void) Shirt_off();
#endif
} else if (doff->what == WORN_AMUL) { } else if (doff->what == WORN_AMUL) {
otmp = uamul; otmp = uamul;
if (!cursed(otmp)) Amulet_off(); if (!cursed(otmp)) Amulet_off();
@@ -2257,13 +2208,11 @@ take_off(VOID_ARGS)
otmp = uarmh; otmp = uarmh;
} else if (doff->what == WORN_SHIELD) { } else if (doff->what == WORN_SHIELD) {
otmp = uarms; otmp = uarms;
#ifdef TOURIST
} else if (doff->what == WORN_SHIRT) { } else if (doff->what == WORN_SHIRT) {
otmp = uarmu; otmp = uarmu;
/* add the time to take off and put back on armor and/or cloak */ /* add the time to take off and put back on armor and/or cloak */
if (uarm) doff->delay += 2 * objects[uarm->otyp].oc_delay; if (uarm) doff->delay += 2 * objects[uarm->otyp].oc_delay;
if (uarmc) doff->delay += 2 * objects[uarmc->otyp].oc_delay + 1; if (uarmc) doff->delay += 2 * objects[uarmc->otyp].oc_delay + 1;
#endif
} else if (doff->what == WORN_AMUL) { } else if (doff->what == WORN_AMUL) {
doff->delay = 1; doff->delay = 1;
} else if (doff->what == LEFT_RING) { } else if (doff->what == LEFT_RING) {
@@ -2399,13 +2348,11 @@ register struct obj *atmp;
surface(u.ux,u.uy)); surface(u.ux,u.uy));
(void) Armor_gone(); (void) Armor_gone();
useup(otmp); useup(otmp);
#ifdef TOURIST
} else if (DESTROY_ARM(uarmu)) { } else if (DESTROY_ARM(uarmu)) {
if (donning(otmp)) cancel_don(); if (donning(otmp)) cancel_don();
Your("shirt crumbles into tiny threads and falls apart!"); Your("shirt crumbles into tiny threads and falls apart!");
(void) Shirt_off(); (void) Shirt_off();
useup(otmp); useup(otmp);
#endif
} else if (DESTROY_ARM(uarmh)) { } else if (DESTROY_ARM(uarmh)) {
if (donning(otmp)) cancel_don(); if (donning(otmp)) cancel_don();
Your("%s turns to dust and is blown away!", Your("%s turns to dust and is blown away!",
@@ -2484,7 +2431,6 @@ boolean only_if_known_cursed; /* ignore covering unless known to be cursed */
} }
return TRUE; return TRUE;
} }
#ifdef TOURIST
/* check for shirt covered by suit and/or cloak */ /* check for shirt covered by suit and/or cloak */
if (obj == uarmu && ((uarm && BLOCKSACCESS(uarm)) || if (obj == uarmu && ((uarm && BLOCKSACCESS(uarm)) ||
(uarmc && BLOCKSACCESS(uarmc)))) { (uarmc && BLOCKSACCESS(uarmc)))) {
@@ -2505,7 +2451,6 @@ boolean only_if_known_cursed; /* ignore covering unless known to be cursed */
} }
return TRUE; return TRUE;
} }
#endif
/* check for ring covered by gloves */ /* check for ring covered by gloves */
if ((obj == uleft || obj == uright) && uarmg && BLOCKSACCESS(uarmg)) { if ((obj == uleft || obj == uright) && uarmg && BLOCKSACCESS(uarmg)) {
if (verb) { if (verb) {
-8
View File
@@ -26,10 +26,6 @@ struct monst *mon;
struct obj *obj, *wep, struct obj *obj, *wep,
dummy, *pickaxe, *unihorn, *key; dummy, *pickaxe, *unihorn, *key;
#ifndef TOURIST
#define CREDIT_CARD STRANGE_OBJECT /* avoids messy conditionalization */
#endif
#ifndef GOLDOBJ #ifndef GOLDOBJ
if (mon->mgold) return &zeroobj; /* pet has something to drop */ if (mon->mgold) return &zeroobj; /* pet has something to drop */
#endif #endif
@@ -111,10 +107,6 @@ struct monst *mon;
if (!obj->owornmask && obj != wep) return obj; if (!obj->owornmask && obj != wep) return obj;
} }
#ifndef TOURIST
#undef CREDIT_CARD
#endif
return (struct obj *)0; /* don't drop anything */ return (struct obj *)0; /* don't drop anything */
} }
+1 -4
View File
@@ -1456,10 +1456,7 @@ boolean shop_floor_obj;
const char *result; const char *result;
if (objects[otmp->otyp].oc_material == GLASS if (objects[otmp->otyp].oc_material == GLASS
#ifdef TOURIST || otmp->otyp == EXPENSIVE_CAMERA) {
|| otmp->otyp == EXPENSIVE_CAMERA
#endif
) {
if (otmp->otyp == MIRROR) if (otmp->otyp == MIRROR)
change_luck(-2); change_luck(-2);
result = "crash"; result = "crash";
-4
View File
@@ -1775,9 +1775,7 @@ struct obj *obj;
obj->oclass != GEM_CLASS) obj->oclass != GEM_CLASS)
return 1; return 1;
switch (obj->oclass == POTION_CLASS ? POT_WATER : obj->otyp) { switch (obj->oclass == POTION_CLASS ? POT_WATER : obj->otyp) {
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
#endif
case POT_WATER: /* really, all potions */ case POT_WATER: /* really, all potions */
case EGG: case EGG:
case CREAM_PIE: case CREAM_PIE:
@@ -1806,9 +1804,7 @@ boolean in_view;
case LENSES: case LENSES:
case MIRROR: case MIRROR:
case CRYSTAL_BALL: case CRYSTAL_BALL:
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
#endif
to_pieces = " into a thousand pieces"; to_pieces = " into a thousand pieces";
/*FALLTHRU*/ /*FALLTHRU*/
case POT_WATER: /* really, all potions */ case POT_WATER: /* really, all potions */
+3 -16
View File
@@ -1000,12 +1000,8 @@ register const char *let,*word;
} else { } else {
/* "ugly check" for reading fortune cookies, part 2 */ /* "ugly check" for reading fortune cookies, part 2 */
if ((!strcmp(word, "read") && if ((!strcmp(word, "read")
(otmp->otyp == FORTUNE_COOKIE && (otmp->otyp == FORTUNE_COOKIE || otmp->otyp == T_SHIRT)))
#ifdef TOURIST
|| otmp->otyp == T_SHIRT
#endif
)))
allowall = TRUE; allowall = TRUE;
} }
} }
@@ -1241,10 +1237,7 @@ boolean
wearing_armor() wearing_armor()
{ {
return((boolean)(uarm || uarmc || uarmf || uarmg || uarmh || uarms return((boolean)(uarm || uarmc || uarmf || uarmg || uarmh || uarms
#ifdef TOURIST || uarmu));
|| uarmu
#endif
));
} }
boolean boolean
@@ -2745,16 +2738,10 @@ doprarm()
if (!wearing_armor()) { if (!wearing_armor()) {
noarmor(TRUE); noarmor(TRUE);
} else { } else {
#ifdef TOURIST
char lets[8]; char lets[8];
#else
char lets[7];
#endif
register int ct = 0; register int ct = 0;
#ifdef TOURIST
if(uarmu) lets[ct++] = obj_to_let(uarmu); if(uarmu) lets[ct++] = obj_to_let(uarmu);
#endif
if(uarm) lets[ct++] = obj_to_let(uarm); if(uarm) lets[ct++] = obj_to_let(uarm);
if(uarmc) lets[ct++] = obj_to_let(uarmc); if(uarmc) lets[ct++] = obj_to_let(uarmc);
if(uarmh) lets[ct++] = obj_to_let(uarmh); if(uarmh) lets[ct++] = obj_to_let(uarmh);
+2 -21
View File
@@ -61,10 +61,8 @@ lock_action()
/* otherwise we're trying to unlock it */ /* otherwise we're trying to unlock it */
else if (xlock.picktyp == LOCK_PICK) else if (xlock.picktyp == LOCK_PICK)
return actions[3]; /* "picking the lock" */ return actions[3]; /* "picking the lock" */
#ifdef TOURIST
else if (xlock.picktyp == CREDIT_CARD) else if (xlock.picktyp == CREDIT_CARD)
return actions[3]; /* same as lock_pick */ return actions[3]; /* same as lock_pick */
#endif
else if (xlock.door) else if (xlock.door)
return actions[0]; /* "unlocking the door" */ return actions[0]; /* "unlocking the door" */
else else
@@ -253,9 +251,7 @@ pick_lock(pick)
if (nohands(youmonst.data)) { if (nohands(youmonst.data)) {
const char *what = (picktyp == LOCK_PICK) ? "pick" : "key"; const char *what = (picktyp == LOCK_PICK) ? "pick" : "key";
#ifdef TOURIST
if (picktyp == CREDIT_CARD) what = "card"; if (picktyp == CREDIT_CARD) what = "card";
#endif
pline(no_longer, "hold the", what); pline(no_longer, "hold the", what);
reset_pick(); reset_pick();
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
@@ -276,18 +272,13 @@ pick_lock(pick)
return PICKLOCK_DID_NOTHING; return PICKLOCK_DID_NOTHING;
} else if (u.uswallow) { } else if (u.uswallow) {
You_cant("%sunlock %s.", You_cant("%sunlock %s.",
#ifdef TOURIST
(picktyp == CREDIT_CARD) ? "" : (picktyp == CREDIT_CARD) ? "" :
#endif
"lock or ", mon_nam(u.ustuck)); "lock or ", mon_nam(u.ustuck));
return PICKLOCK_DID_NOTHING; return PICKLOCK_DID_NOTHING;
} }
if((picktyp != LOCK_PICK && if((picktyp != LOCK_PICK && picktyp != CREDIT_CARD
#ifdef TOURIST && picktyp != SKELETON_KEY)) {
picktyp != CREDIT_CARD &&
#endif
picktyp != SKELETON_KEY)) {
impossible("picking lock with object %d?", picktyp); impossible("picking lock with object %d?", picktyp);
return PICKLOCK_DID_NOTHING; return PICKLOCK_DID_NOTHING;
} }
@@ -344,20 +335,16 @@ pick_lock(pick)
You_cant("fix its broken lock with %s.", doname(pick)); You_cant("fix its broken lock with %s.", doname(pick));
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
} }
#ifdef TOURIST
else if (picktyp == CREDIT_CARD && !otmp->olocked) { else if (picktyp == CREDIT_CARD && !otmp->olocked) {
/* credit cards are only good for unlocking */ /* credit cards are only good for unlocking */
You_cant("do that with %s.", You_cant("do that with %s.",
an(simple_typename(picktyp))); an(simple_typename(picktyp)));
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
} }
#endif
switch(picktyp) { switch(picktyp) {
#ifdef TOURIST
case CREDIT_CARD: case CREDIT_CARD:
ch = ACURR(A_DEX) + 20*Role_if(PM_ROGUE); ch = ACURR(A_DEX) + 20*Role_if(PM_ROGUE);
break; break;
#endif
case LOCK_PICK: case LOCK_PICK:
ch = 4*ACURR(A_DEX) + 25*Role_if(PM_ROGUE); ch = 4*ACURR(A_DEX) + 25*Role_if(PM_ROGUE);
break; break;
@@ -391,12 +378,10 @@ pick_lock(pick)
if (mtmp && canseemon(mtmp) && if (mtmp && canseemon(mtmp) &&
mtmp->m_ap_type != M_AP_FURNITURE && mtmp->m_ap_type != M_AP_FURNITURE &&
mtmp->m_ap_type != M_AP_OBJECT) { mtmp->m_ap_type != M_AP_OBJECT) {
#ifdef TOURIST
if (picktyp == CREDIT_CARD && if (picktyp == CREDIT_CARD &&
(mtmp->isshk || mtmp->data == &mons[PM_ORACLE])) (mtmp->isshk || mtmp->data == &mons[PM_ORACLE]))
verbalize("No checks, no credit, no problem."); verbalize("No checks, no credit, no problem.");
else else
#endif
pline("I don't think %s would appreciate that.", mon_nam(mtmp)); pline("I don't think %s would appreciate that.", mon_nam(mtmp));
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
} else if (mtmp && mtmp->m_ap_type == M_AP_FURNITURE && } else if (mtmp && mtmp->m_ap_type == M_AP_FURNITURE &&
@@ -430,13 +415,11 @@ pick_lock(pick)
pline("This door is broken."); pline("This door is broken.");
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
default: default:
#ifdef TOURIST
/* credit cards are only good for unlocking */ /* credit cards are only good for unlocking */
if(picktyp == CREDIT_CARD && !(door->doormask & D_LOCKED)) { if(picktyp == CREDIT_CARD && !(door->doormask & D_LOCKED)) {
You_cant("lock a door with a credit card."); You_cant("lock a door with a credit card.");
return PICKLOCK_LEARNED_SOMETHING; return PICKLOCK_LEARNED_SOMETHING;
} }
#endif
Sprintf(qbuf,"%s it?", Sprintf(qbuf,"%s it?",
(door->doormask & D_LOCKED) ? "Unlock" : "Lock"); (door->doormask & D_LOCKED) ? "Unlock" : "Lock");
@@ -445,11 +428,9 @@ pick_lock(pick)
if(c == 'n') return(0); if(c == 'n') return(0);
switch(picktyp) { switch(picktyp) {
#ifdef TOURIST
case CREDIT_CARD: case CREDIT_CARD:
ch = 2*ACURR(A_DEX) + 20*Role_if(PM_ROGUE); ch = 2*ACURR(A_DEX) + 20*Role_if(PM_ROGUE);
break; break;
#endif
case LOCK_PICK: case LOCK_PICK:
ch = 3*ACURR(A_DEX) + 30*Role_if(PM_ROGUE); ch = 3*ACURR(A_DEX) + 30*Role_if(PM_ROGUE);
break; break;
+3 -17
View File
@@ -759,10 +759,8 @@ int attk;
*/ */
if (uarm) if (uarm)
(void)rust_dmg(uarm, xname(uarm), hurt, TRUE, &youmonst); (void)rust_dmg(uarm, xname(uarm), hurt, TRUE, &youmonst);
#ifdef TOURIST
else if (uarmu) else if (uarmu)
(void)rust_dmg(uarmu, xname(uarmu), hurt, TRUE, &youmonst); (void)rust_dmg(uarmu, xname(uarmu), hurt, TRUE, &youmonst);
#endif
break; break;
case 2: case 2:
if (!uarms || !rust_dmg(uarms, xname(uarms), hurt, FALSE, &youmonst)) if (!uarms || !rust_dmg(uarms, xname(uarms), hurt, FALSE, &youmonst))
@@ -803,9 +801,7 @@ struct attack *mattk;
{ {
struct obj *obj = (uarmc ? uarmc : uarm); struct obj *obj = (uarmc ? uarmc : uarm);
#ifdef TOURIST
if (!obj) obj = uarmu; if (!obj) obj = uarmu;
#endif
if (mattk->adtyp == AD_DRIN) obj = uarmh; if (mattk->adtyp == AD_DRIN) obj = uarmh;
/* if your cloak/armor is greased, monster slips off; this /* if your cloak/armor is greased, monster slips off; this
@@ -1375,11 +1371,8 @@ dopois:
hitmsg(mtmp, mattk); hitmsg(mtmp, mattk);
break; break;
} }
if(!uwep if(!uwep && !uarmu && !uarm && !uarmh && !uarms && !uarmg && !uarmc
#ifdef TOURIST && !uarmf) {
&& !uarmu
#endif
&& !uarm && !uarmh && !uarms && !uarmg && !uarmc && !uarmf) {
boolean goaway = FALSE; boolean goaway = FALSE;
pline("%s hits! (I hope you don't mind.)", Monnam(mtmp)); pline("%s hits! (I hope you don't mind.)", Monnam(mtmp));
if (Upolyd) { if (Upolyd) {
@@ -2331,10 +2324,7 @@ register struct monst *mon;
} }
if (!uarmc && !uarmf && !uarmg && !uarms && !uarmh if (!uarmc && !uarmf && !uarmg && !uarms && !uarmh
#ifdef TOURIST && !uarmu)
&& !uarmu
#endif
)
pline("%s murmurs sweet nothings into your ear.", pline("%s murmurs sweet nothings into your ear.",
Blind ? (fem ? "She" : "He") : Monnam(mon)); Blind ? (fem ? "She" : "He") : Monnam(mon));
else else
@@ -2348,10 +2338,8 @@ register struct monst *mon;
mayberem(uarmg, "gloves"); mayberem(uarmg, "gloves");
mayberem(uarms, "shield"); mayberem(uarms, "shield");
mayberem(uarmh, helm_simple_name(uarmh)); mayberem(uarmh, helm_simple_name(uarmh));
#ifdef TOURIST
if(!uarmc && !uarm) if(!uarmc && !uarm)
mayberem(uarmu, "shirt"); mayberem(uarmu, "shirt");
#endif
if (uarm || uarmc) { if (uarm || uarmc) {
verbalize("You're such a %s; I wish...", verbalize("You're such a %s; I wish...",
@@ -2515,9 +2503,7 @@ const char *str;
(obj == uarmc || obj == uarms) ? "it's in the way" : (obj == uarmc || obj == uarms) ? "it's in the way" :
(obj == uarmf) ? "let me rub your feet" : (obj == uarmf) ? "let me rub your feet" :
(obj == uarmg) ? "they're too clumsy" : (obj == uarmg) ? "they're too clumsy" :
#ifdef TOURIST
(obj == uarmu) ? "let me massage you" : (obj == uarmu) ? "let me massage you" :
#endif
/* obj == uarmh */ /* obj == uarmh */
hairbuf); hairbuf);
} }
-2
View File
@@ -726,9 +726,7 @@ boolean artif;
break; break;
case LEASH: otmp->leashmon = 0; case LEASH: otmp->leashmon = 0;
break; break;
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
#endif
case TINNING_KIT: case TINNING_KIT:
case MAGIC_MARKER: otmp->spe = rn1(70,30); case MAGIC_MARKER: otmp->spe = rn1(70,30);
break; break;
-2
View File
@@ -101,9 +101,7 @@ int mndx, mode;
case PM_HUNTER: mndx = mode ? PM_RANGER : PM_HUMAN; break; case PM_HUNTER: mndx = mode ? PM_RANGER : PM_HUMAN; break;
case PM_THUG: mndx = mode ? PM_ROGUE : PM_HUMAN; break; case PM_THUG: mndx = mode ? PM_ROGUE : PM_HUMAN; break;
case PM_ROSHI: mndx = mode ? PM_SAMURAI : PM_HUMAN; break; case PM_ROSHI: mndx = mode ? PM_SAMURAI : PM_HUMAN; break;
#ifdef TOURIST
case PM_GUIDE: mndx = mode ? PM_TOURIST : PM_HUMAN; break; case PM_GUIDE: mndx = mode ? PM_TOURIST : PM_HUMAN; break;
#endif
case PM_APPRENTICE: mndx = mode ? PM_WIZARD : PM_HUMAN; break; case PM_APPRENTICE: mndx = mode ? PM_WIZARD : PM_HUMAN; break;
case PM_WARRIOR: mndx = mode ? PM_VALKYRIE : PM_HUMAN; break; case PM_WARRIOR: mndx = mode ? PM_VALKYRIE : PM_HUMAN; break;
default: default:
-4
View File
@@ -46,9 +46,7 @@ monhaskey(mon, for_unlocking)
struct monst *mon; struct monst *mon;
boolean for_unlocking; /* true => credit card ok, false => not ok */ boolean for_unlocking; /* true => credit card ok, false => not ok */
{ {
#ifdef TOURIST
if (for_unlocking && m_carrying(mon, CREDIT_CARD)) return TRUE; if (for_unlocking && m_carrying(mon, CREDIT_CARD)) return TRUE;
#endif
return m_carrying(mon, SKELETON_KEY) || m_carrying(mon, LOCK_PICK); return m_carrying(mon, SKELETON_KEY) || m_carrying(mon, LOCK_PICK);
} }
@@ -1463,9 +1461,7 @@ struct monst *mtmp;
typ != SLING && typ != SLING &&
!is_cloak(obj) && typ != FEDORA && !is_cloak(obj) && typ != FEDORA &&
!is_gloves(obj) && typ != LEATHER_JACKET && !is_gloves(obj) && typ != LEATHER_JACKET &&
#ifdef TOURIST
typ != CREDIT_CARD && !is_shirt(obj) && typ != CREDIT_CARD && !is_shirt(obj) &&
#endif
!(typ == CORPSE && verysmall(&mons[obj->corpsenm])) && !(typ == CORPSE && verysmall(&mons[obj->corpsenm])) &&
typ != FORTUNE_COOKIE && typ != CANDY_BAR && typ != FORTUNE_COOKIE && typ != CANDY_BAR &&
typ != PANCAKE && typ != LEMBAS_WAFER && typ != PANCAKE && typ != LEMBAS_WAFER &&
-8
View File
@@ -3021,7 +3021,6 @@ struct permonst _mons2[] = {
SIZ(WT_HUMAN, 400, MS_HUMANOID, MZ_HUMAN), 0, 0, SIZ(WT_HUMAN, 400, MS_HUMANOID, MZ_HUMAN), 0, 0,
M1_HUMANOID|M1_OMNIVORE, M1_HUMANOID|M1_OMNIVORE,
M2_NOPOLY|M2_HUMAN|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE, HI_DOMESTIC), M2_NOPOLY|M2_HUMAN|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE, HI_DOMESTIC),
#ifdef TOURIST
MON("tourist", S_HUMAN, MON("tourist", S_HUMAN,
LVL(10, 12, 10, 1, 0), G_NOGEN, LVL(10, 12, 10, 1, 0), G_NOGEN,
A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_WEAP, AD_PHYS, 1, 6), A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_WEAP, AD_PHYS, 1, 6),
@@ -3029,7 +3028,6 @@ struct permonst _mons2[] = {
SIZ(WT_HUMAN, 400, MS_HUMANOID, MZ_HUMAN), 0, 0, SIZ(WT_HUMAN, 400, MS_HUMANOID, MZ_HUMAN), 0, 0,
M1_HUMANOID|M1_OMNIVORE, M1_HUMANOID|M1_OMNIVORE,
M2_NOPOLY|M2_HUMAN|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE, HI_DOMESTIC), M2_NOPOLY|M2_HUMAN|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE, HI_DOMESTIC),
#endif
MON("valkyrie", S_HUMAN, MON("valkyrie", S_HUMAN,
LVL(10, 12, 10, 1, -1), G_NOGEN, LVL(10, 12, 10, 1, -1), G_NOGEN,
A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 8), A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 8),
@@ -3165,7 +3163,6 @@ struct permonst _mons2[] = {
M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_PEACEFUL|M2_STRONG|M2_MALE| M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_PEACEFUL|M2_STRONG|M2_MALE|
M2_COLLECT|M2_MAGIC, M2_COLLECT|M2_MAGIC,
M3_CLOSE|M3_INFRAVISIBLE, HI_LORD), M3_CLOSE|M3_INFRAVISIBLE, HI_LORD),
#ifdef TOURIST
MON("Twoflower", S_HUMAN, MON("Twoflower", S_HUMAN,
LVL(20, 12, 10, 20, 0), (G_NOGEN|G_UNIQ), LVL(20, 12, 10, 20, 0), (G_NOGEN|G_UNIQ),
A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_WEAP, AD_PHYS, 1, 6), A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_WEAP, AD_PHYS, 1, 6),
@@ -3175,7 +3172,6 @@ struct permonst _mons2[] = {
M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_PEACEFUL|M2_STRONG|M2_MALE| M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_PEACEFUL|M2_STRONG|M2_MALE|
M2_COLLECT|M2_MAGIC, M2_COLLECT|M2_MAGIC,
M3_CLOSE|M3_INFRAVISIBLE, HI_DOMESTIC), M3_CLOSE|M3_INFRAVISIBLE, HI_DOMESTIC),
#endif
MON("Norn", S_HUMAN, MON("Norn", S_HUMAN,
LVL(20, 12, 0, 80, 0), (G_NOGEN|G_UNIQ), LVL(20, 12, 0, 80, 0), (G_NOGEN|G_UNIQ),
A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 6), A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 6),
@@ -3313,11 +3309,9 @@ struct permonst _mons2[] = {
M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_HOSTILE|M2_STRONG|M2_STALK| M2_NOPOLY|M2_HUMAN|M2_PNAME|M2_HOSTILE|M2_STRONG|M2_STALK|
M2_NASTY|M2_MALE|M2_COLLECT|M2_MAGIC, M2_NASTY|M2_MALE|M2_COLLECT|M2_MAGIC,
M3_WANTSARTI|M3_WAITFORU|M3_INFRAVISIBLE, HI_LORD), M3_WANTSARTI|M3_WAITFORU|M3_INFRAVISIBLE, HI_LORD),
#ifdef TOURIST
/* /*
* Note: the Master of Thieves was defined above. * Note: the Master of Thieves was defined above.
*/ */
#endif
MON("Lord Surtur", S_GIANT, MON("Lord Surtur", S_GIANT,
LVL(15, 12, 2, 50, 12), (G_NOGEN|G_UNIQ), LVL(15, 12, 2, 50, 12), (G_NOGEN|G_UNIQ),
A(ATTK(AT_WEAP, AD_PHYS, 2,10), ATTK(AT_WEAP, AD_PHYS, 2,10), A(ATTK(AT_WEAP, AD_PHYS, 2,10), ATTK(AT_WEAP, AD_PHYS, 2,10),
@@ -3438,7 +3432,6 @@ struct permonst _mons2[] = {
M1_HUMANOID|M1_OMNIVORE, M1_HUMANOID|M1_OMNIVORE,
M2_NOPOLY|M2_HUMAN|M2_PEACEFUL|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE, M2_NOPOLY|M2_HUMAN|M2_PEACEFUL|M2_STRONG|M2_COLLECT, M3_INFRAVISIBLE,
HI_DOMESTIC), HI_DOMESTIC),
#ifdef TOURIST
MON("guide", S_HUMAN, MON("guide", S_HUMAN,
LVL(5, 12, 10, 20, 0), G_NOGEN, LVL(5, 12, 10, 20, 0), G_NOGEN,
A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_MAGC, AD_SPEL, 0, 0), A(ATTK(AT_WEAP, AD_PHYS, 1, 6), ATTK(AT_MAGC, AD_SPEL, 0, 0),
@@ -3447,7 +3440,6 @@ struct permonst _mons2[] = {
M1_HUMANOID|M1_OMNIVORE, M1_HUMANOID|M1_OMNIVORE,
M2_NOPOLY|M2_HUMAN|M2_PEACEFUL | M2_STRONG|M2_COLLECT|M2_MAGIC, M2_NOPOLY|M2_HUMAN|M2_PEACEFUL | M2_STRONG|M2_COLLECT|M2_MAGIC,
M3_INFRAVISIBLE, HI_DOMESTIC), M3_INFRAVISIBLE, HI_DOMESTIC),
#endif
MON("warrior", S_HUMAN, MON("warrior", S_HUMAN,
LVL(5, 12, 10, 10, -1), G_NOGEN, LVL(5, 12, 10, 10, -1), G_NOGEN,
A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 8), A(ATTK(AT_WEAP, AD_PHYS, 1, 8), ATTK(AT_WEAP, AD_PHYS, 1, 8),
-2
View File
@@ -203,11 +203,9 @@ register boolean special;
case PM_SAMURAI: case PM_SAMURAI:
if (rn2(2)) weapon = KATANA; if (rn2(2)) weapon = KATANA;
break; break;
#ifdef TOURIST
case PM_TOURIST: case PM_TOURIST:
/* Defaults are just fine */ /* Defaults are just fine */
break; break;
#endif
case PM_VALKYRIE: case PM_VALKYRIE:
if (rn2(2)) weapon = WAR_HAMMER; if (rn2(2)) weapon = WAR_HAMMER;
if (rn2(2)) armor = rnd_class(PLATE_MAIL, CHAIN_MAIL); if (rn2(2)) armor = rnd_class(PLATE_MAIL, CHAIN_MAIL);
-2
View File
@@ -814,9 +814,7 @@ int whodidit; /* 1==hero, 0=other, -1==just check whether it'll pass thru */
case TOOL_CLASS: case TOOL_CLASS:
hits = (obj_type != SKELETON_KEY && hits = (obj_type != SKELETON_KEY &&
obj_type != LOCK_PICK && obj_type != LOCK_PICK &&
#ifdef TOURIST
obj_type != CREDIT_CARD && obj_type != CREDIT_CARD &&
#endif
obj_type != TALLOW_CANDLE && obj_type != TALLOW_CANDLE &&
obj_type != WAX_CANDLE && obj_type != WAX_CANDLE &&
obj_type != LENSES && obj_type != LENSES &&
+2 -5
View File
@@ -988,11 +988,8 @@ struct monst *mtmp;
return FALSE; return FALSE;
if (u.uswallow) return FALSE; if (u.uswallow) return FALSE;
if (in_your_sanctuary(mtmp, 0, 0)) return FALSE; if (in_your_sanctuary(mtmp, 0, 0)) return FALSE;
if (dmgtype(mtmp->data, AD_HEAL) && !uwep if (dmgtype(mtmp->data, AD_HEAL) && !uwep && !uarmu && !uarm && !uarmh
#ifdef TOURIST && !uarms && !uarmg && !uarmc && !uarmf)
&& !uarmu
#endif
&& !uarm && !uarmh && !uarms && !uarmg && !uarmc && !uarmf)
return FALSE; return FALSE;
if (!ranged_stuff) return FALSE; if (!ranged_stuff) return FALSE;
-15
View File
@@ -367,13 +367,8 @@ ARMOR("plate mail", (char *)0,
1, 0, 1, 0, 44, 5, 450, 600, 3, 2, ARM_SUIT, IRON, HI_METAL), 1, 0, 1, 0, 44, 5, 450, 600, 3, 2, ARM_SUIT, IRON, HI_METAL),
ARMOR("crystal plate mail", (char *)0, ARMOR("crystal plate mail", (char *)0,
1, 0, 1, 0, 10, 5, 450, 820, 3, 2, ARM_SUIT, GLASS, CLR_WHITE), 1, 0, 1, 0, 10, 5, 450, 820, 3, 2, ARM_SUIT, GLASS, CLR_WHITE),
#ifdef TOURIST
ARMOR("bronze plate mail", (char *)0, ARMOR("bronze plate mail", (char *)0,
1, 0, 1, 0, 25, 5, 450, 400, 4, 1, ARM_SUIT, COPPER, HI_COPPER), 1, 0, 1, 0, 25, 5, 450, 400, 4, 1, ARM_SUIT, COPPER, HI_COPPER),
#else
ARMOR("bronze plate mail", (char *)0,
1, 0, 1, 0, 35, 5, 450, 400, 4, 1, ARM_SUIT, COPPER, HI_COPPER),
#endif
ARMOR("splint mail", (char *)0, ARMOR("splint mail", (char *)0,
1, 0, 1, 0, 62, 5, 400, 80, 4, 1, ARM_SUIT, IRON, HI_METAL), 1, 0, 1, 0, 62, 5, 400, 80, 4, 1, ARM_SUIT, IRON, HI_METAL),
ARMOR("banded mail", (char *)0, ARMOR("banded mail", (char *)0,
@@ -399,13 +394,11 @@ ARMOR("leather armor", (char *)0,
ARMOR("leather jacket", (char *)0, ARMOR("leather jacket", (char *)0,
1, 0, 0, 0, 12, 0, 30, 10, 9, 0, ARM_SUIT, LEATHER, CLR_BLACK), 1, 0, 0, 0, 12, 0, 30, 10, 9, 0, ARM_SUIT, LEATHER, CLR_BLACK),
#ifdef TOURIST
/* shirts */ /* shirts */
ARMOR("Hawaiian shirt", (char *)0, ARMOR("Hawaiian shirt", (char *)0,
1, 0, 0, 0, 8, 0, 5, 3, 10, 0, ARM_SHIRT, CLOTH, CLR_MAGENTA), 1, 0, 0, 0, 8, 0, 5, 3, 10, 0, ARM_SHIRT, CLOTH, CLR_MAGENTA),
ARMOR("T-shirt", (char *)0, ARMOR("T-shirt", (char *)0,
1, 0, 0, 0, 2, 0, 5, 2, 10, 0, ARM_SHIRT, CLOTH, CLR_WHITE), 1, 0, 0, 0, 2, 0, 5, 2, 10, 0, ARM_SHIRT, CLOTH, CLR_WHITE),
#endif
/* cloaks */ /* cloaks */
/* 'cope' is not a spelling mistake... leave it be */ /* 'cope' is not a spelling mistake... leave it be */
@@ -591,12 +584,8 @@ CONTAINER("bag of tricks", "bag", 0, 1, 1, 20, 15, 100, CLOTH, HI_CLOTH),
/* lock opening tools */ /* lock opening tools */
TOOL("skeleton key", "key", 0, 0, 0, 0, 80, 3, 10, IRON, HI_METAL), TOOL("skeleton key", "key", 0, 0, 0, 0, 80, 3, 10, IRON, HI_METAL),
#ifdef TOURIST
TOOL("lock pick", (char *)0, 1, 0, 0, 0, 60, 4, 20, IRON, HI_METAL), TOOL("lock pick", (char *)0, 1, 0, 0, 0, 60, 4, 20, IRON, HI_METAL),
TOOL("credit card", (char *)0, 1, 0, 0, 0, 15, 1, 10, PLASTIC, CLR_WHITE), TOOL("credit card", (char *)0, 1, 0, 0, 0, 15, 1, 10, PLASTIC, CLR_WHITE),
#else
TOOL("lock pick", (char *)0, 1, 0, 0, 0, 75, 4, 20, IRON, HI_METAL),
#endif
/* light sources */ /* light sources */
TOOL("tallow candle", "candle", 0, 1, 0, 0, 20, 2, 10, WAX, CLR_WHITE), TOOL("tallow candle", "candle", 0, 1, 0, 0, 20, 2, 10, WAX, CLR_WHITE),
TOOL("wax candle", "candle", 0, 1, 0, 0, 5, 2, 20, WAX, CLR_WHITE), TOOL("wax candle", "candle", 0, 1, 0, 0, 5, 2, 20, WAX, CLR_WHITE),
@@ -604,13 +593,9 @@ TOOL("brass lantern", (char *)0,1, 0, 0, 0, 30, 30, 12, COPPER, CLR_YELLOW),
TOOL("oil lamp", "lamp", 0, 0, 0, 0, 45, 20, 10, COPPER, CLR_YELLOW), TOOL("oil lamp", "lamp", 0, 0, 0, 0, 45, 20, 10, COPPER, CLR_YELLOW),
TOOL("magic lamp", "lamp", 0, 0, 1, 0, 15, 20, 50, COPPER, CLR_YELLOW), TOOL("magic lamp", "lamp", 0, 0, 1, 0, 15, 20, 50, COPPER, CLR_YELLOW),
/* other tools */ /* other tools */
#ifdef TOURIST
TOOL("expensive camera", (char *)0, TOOL("expensive camera", (char *)0,
1, 0, 0, 1, 15, 12, 200, PLASTIC, CLR_BLACK), 1, 0, 0, 1, 15, 12, 200, PLASTIC, CLR_BLACK),
TOOL("mirror", "looking glass", 0, 0, 0, 0, 45, 13, 10, GLASS, HI_SILVER), TOOL("mirror", "looking glass", 0, 0, 0, 0, 45, 13, 10, GLASS, HI_SILVER),
#else
TOOL("mirror", "looking glass", 0, 0, 0, 0, 60, 13, 10, GLASS, HI_SILVER),
#endif
TOOL("crystal ball", "glass orb", TOOL("crystal ball", "glass orb",
0, 0, 1, 1, 15,150, 60, GLASS, HI_GLASS), 0, 0, 1, 1, 15,150, 60, GLASS, HI_GLASS),
TOOL("lenses", (char *)0, 1, 0, 0, 0, 5, 3, 80, GLASS, HI_GLASS), TOOL("lenses", (char *)0, 1, 0, 0, 0, 5, 3, 80, GLASS, HI_GLASS),
-4
View File
@@ -2182,9 +2182,7 @@ STATIC_OVL NEARDATA const struct o_range o_ranges[] = {
{ "boots", ARMOR_CLASS, LOW_BOOTS, LEVITATION_BOOTS }, { "boots", ARMOR_CLASS, LOW_BOOTS, LEVITATION_BOOTS },
{ "shoes", ARMOR_CLASS, LOW_BOOTS, IRON_SHOES }, { "shoes", ARMOR_CLASS, LOW_BOOTS, IRON_SHOES },
{ "cloak", ARMOR_CLASS, MUMMY_WRAPPING, CLOAK_OF_DISPLACEMENT }, { "cloak", ARMOR_CLASS, MUMMY_WRAPPING, CLOAK_OF_DISPLACEMENT },
#ifdef TOURIST
{ "shirt", ARMOR_CLASS, HAWAIIAN_SHIRT, T_SHIRT }, { "shirt", ARMOR_CLASS, HAWAIIAN_SHIRT, T_SHIRT },
#endif
{ "dragon scales", { "dragon scales",
ARMOR_CLASS, GRAY_DRAGON_SCALES, YELLOW_DRAGON_SCALES }, ARMOR_CLASS, GRAY_DRAGON_SCALES, YELLOW_DRAGON_SCALES },
{ "dragon scale mail", { "dragon scale mail",
@@ -2218,10 +2216,8 @@ struct alt_spellings {
{ "amulet of poison resistance", AMULET_VERSUS_POISON }, { "amulet of poison resistance", AMULET_VERSUS_POISON },
{ "potion of sleep", POT_SLEEPING }, { "potion of sleep", POT_SLEEPING },
{ "stone", ROCK }, { "stone", ROCK },
#ifdef TOURIST
{ "camera", EXPENSIVE_CAMERA }, { "camera", EXPENSIVE_CAMERA },
{ "tee shirt", T_SHIRT }, { "tee shirt", T_SHIRT },
#endif
{ "can", TIN }, { "can", TIN },
{ "can opener", TIN_OPENER }, { "can opener", TIN_OPENER },
{ "kelp", KELP_FROND }, { "kelp", KELP_FROND },
-4
View File
@@ -821,12 +821,10 @@ break_armor()
useup(otmp); useup(otmp);
} }
} }
#ifdef TOURIST
if (uarmu) { if (uarmu) {
Your("shirt rips to shreds!"); Your("shirt rips to shreds!");
useup(uarmu); useup(uarmu);
} }
#endif
} else if (sliparm(youmonst.data)) { } else if (sliparm(youmonst.data)) {
if (((otmp = uarm) != 0) && (racial_exception(&youmonst, otmp) < 1)) { if (((otmp = uarm) != 0) && (racial_exception(&youmonst, otmp) < 1)) {
if (donning(otmp)) cancel_don(); if (donning(otmp)) cancel_don();
@@ -841,7 +839,6 @@ break_armor()
(void) Cloak_off(); (void) Cloak_off();
dropx(otmp); dropx(otmp);
} }
#ifdef TOURIST
if ((otmp = uarmu) != 0) { if ((otmp = uarmu) != 0) {
if (is_whirly(youmonst.data)) if (is_whirly(youmonst.data))
You("seep right through your shirt!"); You("seep right through your shirt!");
@@ -849,7 +846,6 @@ break_armor()
setworn((struct obj *)0, otmp->owornmask & W_ARMU); setworn((struct obj *)0, otmp->owornmask & W_ARMU);
dropx(otmp); dropx(otmp);
} }
#endif
} }
if (has_horns(youmonst.data)) { if (has_horns(youmonst.data)) {
if ((otmp = uarmh) != 0) { if ((otmp = uarmh) != 0) {
-4
View File
@@ -256,10 +256,8 @@ worst_cursed_item()
otmp = uarmh; otmp = uarmh;
} else if (uarmf && uarmf->cursed) { /* boots */ } else if (uarmf && uarmf->cursed) { /* boots */
otmp = uarmf; otmp = uarmf;
#ifdef TOURIST
} else if (uarmu && uarmu->cursed) { /* shirt */ } else if (uarmu && uarmu->cursed) { /* shirt */
otmp = uarmu; otmp = uarmu;
#endif
} else if (uamul && uamul->cursed) { /* amulet */ } else if (uamul && uamul->cursed) { /* amulet */
otmp = uamul; otmp = uamul;
} else if (uleft && uleft->cursed) { /* left ring */ } else if (uleft && uleft->cursed) { /* left ring */
@@ -551,9 +549,7 @@ aligntyp resp_god;
if (uarm && !(EReflecting & W_ARM) && if (uarm && !(EReflecting & W_ARM) &&
!(EDisint_resistance & W_ARM) && !uarmc) !(EDisint_resistance & W_ARM) && !uarmc)
(void) destroy_arm(uarm); (void) destroy_arm(uarm);
#ifdef TOURIST
if (uarmu && !uarm && !uarmc) (void) destroy_arm(uarmu); if (uarmu && !uarm && !uarmc) (void) destroy_arm(uarmu);
#endif
if (!Disint_resistance) if (!Disint_resistance)
fry_by_god(resp_god, TRUE); fry_by_god(resp_god, TRUE);
else { else {
-4
View File
@@ -72,7 +72,6 @@ doread()
if (!Blind) u.uconduct.literate++; if (!Blind) u.uconduct.literate++;
useup(scroll); useup(scroll);
return(1); return(1);
#ifdef TOURIST
} else if (scroll->otyp == T_SHIRT) { } else if (scroll->otyp == T_SHIRT) {
static const char *shirt_msgs[] = { /* Scott Bigham */ static const char *shirt_msgs[] = { /* Scott Bigham */
"I explored the Dungeons of Doom and all I got was this lousy T-shirt!", "I explored the Dungeons of Doom and all I got was this lousy T-shirt!",
@@ -117,7 +116,6 @@ doread()
scroll->o_id ^ (unsigned)ubirthday); scroll->o_id ^ (unsigned)ubirthday);
pline("\"%s\"", buf); pline("\"%s\"", buf);
return 1; return 1;
#endif /* TOURIST */
} else if (scroll->oclass != SCROLL_CLASS } else if (scroll->oclass != SCROLL_CLASS
&& scroll->oclass != SPBOOK_CLASS) { && scroll->oclass != SPBOOK_CLASS) {
pline(silly_thing_to, "read"); pline(silly_thing_to, "read");
@@ -364,9 +362,7 @@ int curse_bless;
break; break;
case MAGIC_MARKER: case MAGIC_MARKER:
case TINNING_KIT: case TINNING_KIT:
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
#endif
if (is_cursed) stripspe(obj); if (is_cursed) stripspe(obj);
else if (rechrg && obj->otyp == MAGIC_MARKER) { /* previously recharged */ else if (rechrg && obj->otyp == MAGIC_MARKER) { /* previously recharged */
obj->recharged = 1; /* override increment done above */ obj->recharged = 1; /* override increment done above */
-6
View File
@@ -299,7 +299,6 @@ const struct Role roles[] = {
{ 1, 0, 0, 1, 0, 1 },11, /* Energy */ { 1, 0, 0, 1, 0, 1 },11, /* Energy */
10, 10, 0, 0, 8, A_INT, SPE_CLAIRVOYANCE, -4 10, 10, 0, 0, 8, A_INT, SPE_CLAIRVOYANCE, -4
}, },
#ifdef TOURIST
{ {"Tourist", 0}, { { {"Tourist", 0}, {
{"Rambler", 0}, {"Rambler", 0},
{"Sightseer", 0}, {"Sightseer", 0},
@@ -325,7 +324,6 @@ const struct Role roles[] = {
{ 1, 0, 0, 1, 0, 1 },14, /* Energy */ { 1, 0, 0, 1, 0, 1 },14, /* Energy */
0, 5, 1, 2, 10, A_INT, SPE_CHARM_MONSTER, -4 0, 5, 1, 2, 10, A_INT, SPE_CHARM_MONSTER, -4
}, },
#endif
{ {"Valkyrie", 0}, { { {"Valkyrie", 0}, {
{"Stripling", 0}, {"Stripling", 0},
{"Skirmisher", 0}, {"Skirmisher", 0},
@@ -1705,10 +1703,8 @@ struct monst *mtmp;
case PM_SAMURAI: case PM_SAMURAI:
return (mtmp && mtmp->data == &mons[PM_SHOPKEEPER] ? return (mtmp && mtmp->data == &mons[PM_SHOPKEEPER] ?
"Irasshaimase" : "Konnichi wa"); /* Japanese */ "Irasshaimase" : "Konnichi wa"); /* Japanese */
#ifdef TOURIST
case PM_TOURIST: case PM_TOURIST:
return ("Aloha"); /* Hawaiian */ return ("Aloha"); /* Hawaiian */
#endif
case PM_VALKYRIE: case PM_VALKYRIE:
return ( return (
#ifdef MAIL #ifdef MAIL
@@ -1728,10 +1724,8 @@ Goodbye()
return ("Fare thee well"); /* Olde English */ return ("Fare thee well"); /* Olde English */
case PM_SAMURAI: case PM_SAMURAI:
return ("Sayonara"); /* Japanese */ return ("Sayonara"); /* Japanese */
#ifdef TOURIST
case PM_TOURIST: case PM_TOURIST:
return ("Aloha"); /* Hawaiian */ return ("Aloha"); /* Hawaiian */
#endif
case PM_VALKYRIE: case PM_VALKYRIE:
return ("Farvel"); /* Norse */ return ("Farvel"); /* Norse */
default: default:
+2 -8
View File
@@ -1951,11 +1951,9 @@ register struct monst *shkp; /* if angry, impose a surcharge */
} }
if (uarmh && uarmh->otyp == DUNCE_CAP) if (uarmh && uarmh->otyp == DUNCE_CAP)
multiplier *= 4L, divisor *= 3L; multiplier *= 4L, divisor *= 3L;
#ifdef TOURIST
else if ((Role_if(PM_TOURIST) && u.ulevel < (MAXULEV/2)) || else if ((Role_if(PM_TOURIST) && u.ulevel < (MAXULEV/2)) ||
(uarmu && !uarm && !uarmc)) /* touristy shirt visible */ (uarmu && !uarm && !uarmc)) /* touristy shirt visible */
multiplier *= 4L, divisor *= 3L; multiplier *= 4L, divisor *= 3L;
#endif
if (ACURR(A_CHA) > 18) divisor *= 2L; if (ACURR(A_CHA) > 18) divisor *= 2L;
else if (ACURR(A_CHA) == 18) multiplier *= 2L, divisor *= 3L; else if (ACURR(A_CHA) == 18) multiplier *= 2L, divisor *= 3L;
@@ -2116,11 +2114,9 @@ register struct monst *shkp;
if (uarmh && uarmh->otyp == DUNCE_CAP) if (uarmh && uarmh->otyp == DUNCE_CAP)
divisor *= 3L; divisor *= 3L;
#ifdef TOURIST
else if ((Role_if(PM_TOURIST) && u.ulevel < (MAXULEV/2)) || else if ((Role_if(PM_TOURIST) && u.ulevel < (MAXULEV/2)) ||
(uarmu && !uarm && !uarmc)) /* touristy shirt visible */ (uarmu && !uarm && !uarmc)) /* touristy shirt visible */
divisor *= 3L; divisor *= 3L;
#endif
else else
divisor *= 2L; divisor *= 2L;
@@ -4092,11 +4088,9 @@ boolean altusage; /* some items have an "alternate" use with different cost */
if (otmp->spe > 1) tmp /= 4L; if (otmp->spe > 1) tmp /= 4L;
} else if (otmp->oclass == SPBOOK_CLASS) { } else if (otmp->oclass == SPBOOK_CLASS) {
tmp -= tmp / 5L; tmp -= tmp / 5L;
} else if (otmp->otyp == CAN_OF_GREASE || } else if (otmp->otyp == CAN_OF_GREASE
otmp->otyp == TINNING_KIT || otmp->otyp == TINNING_KIT
#ifdef TOURIST
|| otmp->otyp == EXPENSIVE_CAMERA || otmp->otyp == EXPENSIVE_CAMERA
#endif
) { ) {
tmp /= 10L; tmp /= 10L;
} else if (otmp->otyp == POT_OIL) { } else if (otmp->otyp == POT_OIL) {
-4
View File
@@ -796,11 +796,9 @@ register struct monst *mtmp;
case PM_ARCHEOLOGIST: case PM_ARCHEOLOGIST:
pline_msg = "describes a recent article in \"Spelunker Today\" magazine."; pline_msg = "describes a recent article in \"Spelunker Today\" magazine.";
break; break;
#ifdef TOURIST
case PM_TOURIST: case PM_TOURIST:
verbl_msg = "Aloha."; verbl_msg = "Aloha.";
break; break;
#endif
default: default:
pline_msg = "discusses dungeon exploration."; pline_msg = "discusses dungeon exploration.";
break; break;
@@ -871,10 +869,8 @@ register struct monst *mtmp;
verbl_msg = Role_if(PM_HEALER) ? verbl_msg = Role_if(PM_HEALER) ?
"Doc, I can't help you unless you cooperate." : "Doc, I can't help you unless you cooperate." :
"Please undress so I can examine you."; "Please undress so I can examine you.";
#ifdef TOURIST
else if (uarmu) else if (uarmu)
verbl_msg = "Take off your shirt, please."; verbl_msg = "Take off your shirt, please.";
#endif
else verbl_msg = "Relax, this won't hurt a bit."; else verbl_msg = "Relax, this won't hurt a bit.";
break; break;
case MS_GUARD: case MS_GUARD:
+1 -8
View File
@@ -13,10 +13,7 @@ STATIC_OVL const char *
equipname(otmp) equipname(otmp)
register struct obj *otmp; register struct obj *otmp;
{ {
return ( return ((otmp == uarmu) ? "shirt" :
#ifdef TOURIST
(otmp == uarmu) ? "shirt" :
#endif
(otmp == uarmf) ? "boots" : (otmp == uarmf) ? "boots" :
(otmp == uarms) ? "shield" : (otmp == uarms) ? "shield" :
(otmp == uarmg) ? "gloves" : (otmp == uarmg) ? "gloves" :
@@ -231,9 +228,7 @@ boolean unchain_ball; /* whether to unpunish or just unwield */
else if (obj == uarmg) (void) Gloves_off(); else if (obj == uarmg) (void) Gloves_off();
else if (obj == uarmh) (void) Helmet_off(); else if (obj == uarmh) (void) Helmet_off();
else if (obj == uarms) (void) Shield_off(); else if (obj == uarms) (void) Shield_off();
#ifdef TOURIST
else if (obj == uarmu) (void) Shirt_off(); else if (obj == uarmu) (void) Shirt_off();
#endif
/* catchall -- should never happen */ /* catchall -- should never happen */
else setworn((struct obj *)0, obj->owornmask & W_ARMOR); else setworn((struct obj *)0, obj->owornmask & W_ARMOR);
} else if (obj->owornmask & W_AMUL) { } else if (obj->owornmask & W_AMUL) {
@@ -342,11 +337,9 @@ nothing_to_steal:
if (otmp == uarmg && uwep) otmp = uwep; if (otmp == uarmg && uwep) otmp = uwep;
/* can't steal armor while wearing cloak - so steal the cloak. */ /* can't steal armor while wearing cloak - so steal the cloak. */
else if(otmp == uarm && uarmc) otmp = uarmc; else if(otmp == uarm && uarmc) otmp = uarmc;
#ifdef TOURIST
/* can't steal shirt while wearing cloak or suit */ /* can't steal shirt while wearing cloak or suit */
else if(otmp == uarmu && uarmc) otmp = uarmc; else if(otmp == uarmu && uarmc) otmp = uarmc;
else if(otmp == uarmu && uarm) otmp = uarm; else if(otmp == uarmu && uarm) otmp = uarm;
#endif
gotobj: gotobj:
if(otmp->o_id == stealoid) return(0); if(otmp->o_id == stealoid) return(0);
-8
View File
@@ -78,11 +78,9 @@ struct monst *victim;
(void) burn_dmg(item, xname(item)); (void) burn_dmg(item, xname(item));
return TRUE; return TRUE;
} }
#ifdef TOURIST
item = (victim == &youmonst) ? uarmu : which_armor(victim, W_ARMU); item = (victim == &youmonst) ? uarmu : which_armor(victim, W_ARMU);
if (item) if (item)
(void) burn_dmg(item, "shirt"); (void) burn_dmg(item, "shirt");
#endif
return TRUE; return TRUE;
case 2: case 2:
item = (victim == &youmonst) ? uarms : which_armor(victim, W_ARMS); item = (victim == &youmonst) ? uarms : which_armor(victim, W_ARMS);
@@ -953,10 +951,8 @@ glovecheck: (void) rust_dmg(uarmg, "gauntlets", 1, TRUE, &youmonst);
1, TRUE, &youmonst); 1, TRUE, &youmonst);
else if (uarm) else if (uarm)
(void) rust_dmg(uarm, "armor", 1, TRUE, &youmonst); (void) rust_dmg(uarm, "armor", 1, TRUE, &youmonst);
#ifdef TOURIST
else if (uarmu) else if (uarmu)
(void) rust_dmg(uarmu, "shirt", 1, TRUE, &youmonst); (void) rust_dmg(uarmu, "shirt", 1, TRUE, &youmonst);
#endif
} }
update_inventory(); update_inventory();
break; break;
@@ -2090,10 +2086,8 @@ glovecheck: target = which_armor(mtmp, W_ARMG);
1, TRUE, mtmp); 1, TRUE, mtmp);
else if ((target = which_armor(mtmp, W_ARM)) != 0) else if ((target = which_armor(mtmp, W_ARM)) != 0)
(void) rust_dmg(target, "armor", 1, TRUE, mtmp); (void) rust_dmg(target, "armor", 1, TRUE, mtmp);
#ifdef TOURIST
else if ((target = which_armor(mtmp, W_ARMU)) != 0) else if ((target = which_armor(mtmp, W_ARMU)) != 0)
(void) rust_dmg(target, "shirt", 1, TRUE, mtmp); (void) rust_dmg(target, "shirt", 1, TRUE, mtmp);
#endif
} }
if (mptr == &mons[PM_IRON_GOLEM]) { if (mptr == &mons[PM_IRON_GOLEM]) {
@@ -3172,9 +3166,7 @@ boolean *lostsome;
obj == uamul || obj == uleft || obj == uright || obj == uamul || obj == uleft || obj == uright ||
obj == ublindf || obj == uarm || obj == uarmc || obj == ublindf || obj == uarm || obj == uarmc ||
obj == uarmg || obj == uarmf || obj == uarmg || obj == uarmf ||
#ifdef TOURIST
obj == uarmu || obj == uarmu ||
#endif
(obj->cursed && (obj == uarmh || obj == uarms)) || (obj->cursed && (obj == uarmh || obj == uarms)) ||
welded(obj))) welded(obj)))
otmp = obj; otmp = obj;
-14
View File
@@ -138,7 +138,6 @@ static struct trobj Samurai[] = {
{ SPLINT_MAIL, 0, ARMOR_CLASS, 1, UNDEF_BLESS }, { SPLINT_MAIL, 0, ARMOR_CLASS, 1, UNDEF_BLESS },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
}; };
#ifdef TOURIST
static struct trobj Tourist[] = { static struct trobj Tourist[] = {
#define T_DARTS 0 #define T_DARTS 0
{ DART, 2, WEAPON_CLASS, 25, UNDEF_BLESS }, /* quan is variable */ { DART, 2, WEAPON_CLASS, 25, UNDEF_BLESS }, /* quan is variable */
@@ -150,7 +149,6 @@ static struct trobj Tourist[] = {
{ CREDIT_CARD, 0, TOOL_CLASS, 1, 0 }, { CREDIT_CARD, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
}; };
#endif
static struct trobj Valkyrie[] = { static struct trobj Valkyrie[] = {
{ LONG_SWORD, 1, WEAPON_CLASS, 1, UNDEF_BLESS }, { LONG_SWORD, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
{ DAGGER, 0, WEAPON_CLASS, 1, UNDEF_BLESS }, { DAGGER, 0, WEAPON_CLASS, 1, UNDEF_BLESS },
@@ -200,7 +198,6 @@ static struct trobj Xtra_food[] = {
{ UNDEF_TYP, UNDEF_SPE, FOOD_CLASS, 2, 0 }, { UNDEF_TYP, UNDEF_SPE, FOOD_CLASS, 2, 0 },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
}; };
#ifdef TOURIST
static struct trobj Leash[] = { static struct trobj Leash[] = {
{ LEASH, 0, TOOL_CLASS, 1, 0 }, { LEASH, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
@@ -209,7 +206,6 @@ static struct trobj Towel[] = {
{ TOWEL, 0, TOOL_CLASS, 1, 0 }, { TOWEL, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
}; };
#endif /* TOURIST */
static struct trobj Wishing[] = { static struct trobj Wishing[] = {
{ WAN_WISHING, 3, WAND_CLASS, 1, 0 }, { WAN_WISHING, 3, WAND_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } { 0, 0, 0, 0, 0 }
@@ -414,7 +410,6 @@ static const struct def_skill Skill_S[] = {
{ P_NONE, 0 } { P_NONE, 0 }
}; };
#ifdef TOURIST
static const struct def_skill Skill_T[] = { static const struct def_skill Skill_T[] = {
{ P_DAGGER, P_EXPERT }, { P_KNIFE, P_SKILLED }, { P_DAGGER, P_EXPERT }, { P_KNIFE, P_SKILLED },
{ P_AXE, P_BASIC }, { P_PICK_AXE, P_BASIC }, { P_AXE, P_BASIC }, { P_PICK_AXE, P_BASIC },
@@ -437,7 +432,6 @@ static const struct def_skill Skill_T[] = {
{ P_BARE_HANDED_COMBAT, P_SKILLED }, { P_BARE_HANDED_COMBAT, P_SKILLED },
{ P_NONE, 0 } { P_NONE, 0 }
}; };
#endif /* TOURIST */
static const struct def_skill Skill_V[] = { static const struct def_skill Skill_V[] = {
{ P_DAGGER, P_EXPERT }, { P_AXE, P_EXPERT }, { P_DAGGER, P_EXPERT }, { P_AXE, P_EXPERT },
@@ -512,9 +506,7 @@ u_init()
#if 0 /* documentation of more zero values as desirable */ #if 0 /* documentation of more zero values as desirable */
u.usick_cause[0] = 0; u.usick_cause[0] = 0;
u.uluck = u.moreluck = 0; u.uluck = u.moreluck = 0;
# ifdef TOURIST
uarmu = 0; uarmu = 0;
# endif
uarm = uarmc = uarmh = uarms = uarmg = uarmf = 0; uarm = uarmc = uarmh = uarms = uarmg = uarmf = 0;
uwep = uball = uchain = uleft = uright = 0; uwep = uball = uchain = uleft = uright = 0;
uswapwep = uquiver = 0; uswapwep = uquiver = 0;
@@ -676,7 +668,6 @@ u_init()
knows_class(ARMOR_CLASS); knows_class(ARMOR_CLASS);
skill_init(Skill_S); skill_init(Skill_S);
break; break;
#ifdef TOURIST
case PM_TOURIST: case PM_TOURIST:
Tourist[T_DARTS].trquan = rn1(20, 21); Tourist[T_DARTS].trquan = rn1(20, 21);
#ifndef GOLDOBJ #ifndef GOLDOBJ
@@ -691,7 +682,6 @@ u_init()
else if(!rn2(25)) ini_inv(Magicmarker); else if(!rn2(25)) ini_inv(Magicmarker);
skill_init(Skill_T); skill_init(Skill_T);
break; break;
#endif
case PM_VALKYRIE: case PM_VALKYRIE:
ini_inv(Valkyrie); ini_inv(Valkyrie);
if(!rn2(6)) ini_inv(Lamp); if(!rn2(6)) ini_inv(Lamp);
@@ -840,9 +830,7 @@ int otyp;
case PM_RANGER: skills = Skill_Ran; break; case PM_RANGER: skills = Skill_Ran; break;
case PM_ROGUE: skills = Skill_R; break; case PM_ROGUE: skills = Skill_R; break;
case PM_SAMURAI: skills = Skill_S; break; case PM_SAMURAI: skills = Skill_S; break;
#ifdef TOURIST
case PM_TOURIST: skills = Skill_T; break; case PM_TOURIST: skills = Skill_T; break;
#endif
case PM_VALKYRIE: skills = Skill_V; break; case PM_VALKYRIE: skills = Skill_V; break;
case PM_WIZARD: skills = Skill_W; break; case PM_WIZARD: skills = Skill_W; break;
default: skills = 0; break; /* lint suppression */ default: skills = 0; break; /* lint suppression */
@@ -1001,10 +989,8 @@ register struct trobj *trop;
setworn(obj, W_ARMH); setworn(obj, W_ARMH);
else if (is_gloves(obj) && !uarmg) else if (is_gloves(obj) && !uarmg)
setworn(obj, W_ARMG); setworn(obj, W_ARMG);
#ifdef TOURIST
else if (is_shirt(obj) && !uarmu) else if (is_shirt(obj) && !uarmu)
setworn(obj, W_ARMU); setworn(obj, W_ARMU);
#endif
else if (is_cloak(obj) && !uarmc) else if (is_cloak(obj) && !uarmc)
setworn(obj, W_ARMC); setworn(obj, W_ARMC);
else if (is_boots(obj) && !uarmf) else if (is_boots(obj) && !uarmf)
-6
View File
@@ -67,10 +67,8 @@ int attk;
} }
if ((target = which_armor(mdef, W_ARM)) != (struct obj *)0) { if ((target = which_armor(mdef, W_ARM)) != (struct obj *)0) {
(void)rust_dmg(target, xname(target), hurt, TRUE, mdef); (void)rust_dmg(target, xname(target), hurt, TRUE, mdef);
#ifdef TOURIST
} else if ((target = which_armor(mdef, W_ARMU)) != (struct obj *)0) { } else if ((target = which_armor(mdef, W_ARMU)) != (struct obj *)0) {
(void)rust_dmg(target, xname(target), hurt, TRUE, mdef); (void)rust_dmg(target, xname(target), hurt, TRUE, mdef);
#endif
} }
break; break;
case 2: case 2:
@@ -745,7 +743,6 @@ int thrown; /* HMON_xxx (0 => hand-to-hand, other => ranged) */
} }
tmp = 1; tmp = 1;
break; break;
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
You("succeed in destroying %s. Congratulations!", You("succeed in destroying %s. Congratulations!",
ysimple_name(obj)); ysimple_name(obj));
@@ -753,7 +750,6 @@ int thrown; /* HMON_xxx (0 => hand-to-hand, other => ranged) */
return(TRUE); return(TRUE);
/*NOTREACHED*/ /*NOTREACHED*/
break; break;
#endif
case CORPSE: /* fixed by polder@cs.vu.nl */ case CORPSE: /* fixed by polder@cs.vu.nl */
if (touch_petrifies(&mons[obj->corpsenm])) { if (touch_petrifies(&mons[obj->corpsenm])) {
tmp = 1; tmp = 1;
@@ -1152,9 +1148,7 @@ struct attack *mattk;
/* grabbing attacks the body */ /* grabbing attacks the body */
obj = which_armor(mdef, W_ARMC); /* cloak */ obj = which_armor(mdef, W_ARMC); /* cloak */
if (!obj) obj = which_armor(mdef, W_ARM); /* suit */ if (!obj) obj = which_armor(mdef, W_ARM); /* suit */
#ifdef TOURIST
if (!obj) obj = which_armor(mdef, W_ARMU); /* shirt */ if (!obj) obj = which_armor(mdef, W_ARMU); /* shirt */
#endif
} }
/* if monster's cloak/armor is greased, your grab slips off; this /* if monster's cloak/armor is greased, your grab slips off; this
+1 -4
View File
@@ -350,10 +350,7 @@ fnd:
} }
if (!strcmpi(buf, "Croesus") || !strcmpi(buf, "Kroisos") if (!strcmpi(buf, "Croesus") || !strcmpi(buf, "Kroisos")
#ifdef TOURIST || !strcmpi(buf, "Creosote")) {
|| !strcmpi(buf, "Creosote")
#endif
) {
if (!mvitals[PM_CROESUS].died) { if (!mvitals[PM_CROESUS].died) {
verbalize("Oh, yes, of course. Sorry to have disturbed you."); verbalize("Oh, yes, of course. Sorry to have disturbed you.");
mongone(guard); mongone(guard);
+1 -17
View File
@@ -20,9 +20,7 @@ const struct worn {
{ W_ARMS, &uarms }, { W_ARMS, &uarms },
{ W_ARMG, &uarmg }, { W_ARMG, &uarmg },
{ W_ARMF, &uarmf }, { W_ARMF, &uarmf },
#ifdef TOURIST
{ W_ARMU, &uarmu }, { W_ARMU, &uarmu },
#endif
{ W_RINGL, &uleft }, { W_RINGL, &uleft },
{ W_RINGR, &uright }, { W_RINGR, &uright },
{ W_WEP, &uwep }, { W_WEP, &uwep },
@@ -155,9 +153,7 @@ struct obj *obj;
case ARM_GLOVES: res = W_ARMG; break; /* WORN_GLOVES */ case ARM_GLOVES: res = W_ARMG; break; /* WORN_GLOVES */
case ARM_BOOTS: res = W_ARMF; break; /* WORN_BOOTS */ case ARM_BOOTS: res = W_ARMF; break; /* WORN_BOOTS */
case ARM_CLOAK: res = W_ARMC; break; /* WORN_CLOAK */ case ARM_CLOAK: res = W_ARMC; break; /* WORN_CLOAK */
#ifdef TOURIST
case ARM_SHIRT: res = W_ARMU; break; /* WORN_SHIRT */ case ARM_SHIRT: res = W_ARMU; break; /* WORN_SHIRT */
#endif
} }
break; break;
case WEAPON_CLASS: case WEAPON_CLASS:
@@ -438,11 +434,9 @@ boolean creation;
return; return;
m_dowear_type(mon, W_AMUL, creation, FALSE); m_dowear_type(mon, W_AMUL, creation, FALSE);
#ifdef TOURIST
/* can't put on shirt if already wearing suit */ /* can't put on shirt if already wearing suit */
if (!cantweararm(mon->data) && !(mon->misc_worn_check & W_ARM)) if (!cantweararm(mon->data) && !(mon->misc_worn_check & W_ARM))
m_dowear_type(mon, W_ARMU, creation, FALSE); m_dowear_type(mon, W_ARMU, creation, FALSE);
#endif
/* treating small as a special case allows /* treating small as a special case allows
hobbits, gnomes, and kobolds to wear cloaks */ hobbits, gnomes, and kobolds to wear cloaks */
if (!cantweararm(mon->data) || mon->data->msize == MZ_SMALL) if (!cantweararm(mon->data) || mon->data->msize == MZ_SMALL)
@@ -491,11 +485,9 @@ boolean racialexception;
continue; continue;
best = obj; best = obj;
goto outer_break; /* no such thing as better amulets */ goto outer_break; /* no such thing as better amulets */
#ifdef TOURIST
case W_ARMU: case W_ARMU:
if (!is_shirt(obj)) continue; if (!is_shirt(obj)) continue;
break; break;
#endif
case W_ARMC: case W_ARMC:
if (!is_cloak(obj)) continue; if (!is_cloak(obj)) continue;
break; break;
@@ -542,11 +534,7 @@ outer_break:
best->otyp == DUNCE_CAP) && !best->cursed); best->otyp == DUNCE_CAP) && !best->cursed);
/* if wearing a cloak, account for the time spent removing /* if wearing a cloak, account for the time spent removing
and re-wearing it when putting on a suit or shirt */ and re-wearing it when putting on a suit or shirt */
if ((flag == W_ARM if ((flag == W_ARM || flag == W_ARMU) && (mon->misc_worn_check & W_ARMC))
#ifdef TOURIST
|| flag == W_ARMU
#endif
) && (mon->misc_worn_check & W_ARMC))
m_delay += 2; m_delay += 2;
/* when upgrading a piece of armor, account for time spent /* when upgrading a piece of armor, account for time spent
taking off current one */ taking off current one */
@@ -741,7 +729,6 @@ boolean polyspot;
m_useup(mon, otmp); m_useup(mon, otmp);
} }
} }
#ifdef TOURIST
if ((otmp = which_armor(mon, W_ARMU)) != 0) { if ((otmp = which_armor(mon, W_ARMU)) != 0) {
if (vis) if (vis)
pline("%s shirt rips to shreds!", s_suffix(Monnam(mon))); pline("%s shirt rips to shreds!", s_suffix(Monnam(mon)));
@@ -749,7 +736,6 @@ boolean polyspot;
You_hear("a ripping sound."); You_hear("a ripping sound.");
m_useup(mon, otmp); m_useup(mon, otmp);
} }
#endif
} else if (sliparm(mdat)) { } else if (sliparm(mdat)) {
if ((otmp = which_armor(mon, W_ARM)) != 0) { if ((otmp = which_armor(mon, W_ARM)) != 0) {
if (vis) if (vis)
@@ -772,7 +758,6 @@ boolean polyspot;
if (polyspot) bypass_obj(otmp); if (polyspot) bypass_obj(otmp);
m_lose_armor(mon, otmp); m_lose_armor(mon, otmp);
} }
#ifdef TOURIST
if ((otmp = which_armor(mon, W_ARMU)) != 0) { if ((otmp = which_armor(mon, W_ARMU)) != 0) {
if (vis) { if (vis) {
if (sliparm(mon->data)) if (sliparm(mon->data))
@@ -785,7 +770,6 @@ boolean polyspot;
if (polyspot) bypass_obj(otmp); if (polyspot) bypass_obj(otmp);
m_lose_armor(mon, otmp); m_lose_armor(mon, otmp);
} }
#endif
} }
if (handless_or_tiny) { if (handless_or_tiny) {
/* [caller needs to handle weapon checks] */ /* [caller needs to handle weapon checks] */
-6
View File
@@ -2282,10 +2282,8 @@ boolean ordinary;
case WAN_LIGHT: /* (broken wand) */ case WAN_LIGHT: /* (broken wand) */
/* assert( !ordinary ); */ /* assert( !ordinary ); */
damage = d(obj->spe, 25); damage = d(obj->spe, 25);
#ifdef TOURIST
case EXPENSIVE_CAMERA: case EXPENSIVE_CAMERA:
if (!damage) damage = 5; if (!damage) damage = 5;
#endif
damage = lightdamage(obj, ordinary, damage); damage = lightdamage(obj, ordinary, damage);
damage += rnd(25); damage += rnd(25);
if (flashburn((long)damage)) learn_it = TRUE; if (flashburn((long)damage)) learn_it = TRUE;
@@ -3371,10 +3369,8 @@ struct obj **ootmp; /* to return worn armor for caller to disintegrate */
tmp = MAGIC_COOKIE; tmp = MAGIC_COOKIE;
if ((otmp2 = which_armor(mon, W_ARMC)) != 0) if ((otmp2 = which_armor(mon, W_ARMC)) != 0)
m_useup(mon, otmp2); m_useup(mon, otmp2);
#ifdef TOURIST
if ((otmp2 = which_armor(mon, W_ARMU)) != 0) if ((otmp2 = which_armor(mon, W_ARMU)) != 0)
m_useup(mon, otmp2); m_useup(mon, otmp2);
#endif
} }
type = -1; /* no saving throw wanted */ type = -1; /* no saving throw wanted */
break; /* not ordinary damage */ break; /* not ordinary damage */
@@ -3502,9 +3498,7 @@ xchar sx, sy;
/* no shield or suit, you're dead; wipe out cloak /* no shield or suit, you're dead; wipe out cloak
and/or shirt in case of life-saving or bones */ and/or shirt in case of life-saving or bones */
if (uarmc) (void) destroy_arm(uarmc); if (uarmc) (void) destroy_arm(uarmc);
#ifdef TOURIST
if (uarmu) (void) destroy_arm(uarmu); if (uarmu) (void) destroy_arm(uarmu);
#endif
} else if (nonliving(youmonst.data) || is_demon(youmonst.data)) { } else if (nonliving(youmonst.data) || is_demon(youmonst.data)) {
shieldeff(sx, sy); shieldeff(sx, sy);
You("seem unaffected."); You("seem unaffected.");
-8
View File
@@ -579,11 +579,7 @@ amii_player_selection()
{ {
flags.initrole = randrole(); flags.initrole = randrole();
#if 0 /* OBSOLETE */ #if 0 /* OBSOLETE */
#ifdef TOURIST
strcpy( pl_character, roles[ rnd( 11 ) ] ); strcpy( pl_character, roles[ rnd( 11 ) ] );
#else
strcpy( pl_character, roles[ rnd( 10 ) ] );
#endif
#endif #endif
aredone = 1; aredone = 1;
amii_clear_nhwindow( WIN_BASE ); amii_clear_nhwindow( WIN_BASE );
@@ -608,11 +604,7 @@ amii_player_selection()
case 1: /* Random Character */ case 1: /* Random Character */
flags.initrole = randrole(); flags.initrole = randrole();
#if 0 /* OBSOLETE */ #if 0 /* OBSOLETE */
#ifdef TOURIST
strcpy( pl_character, roles[ rnd( 11 ) ] ); strcpy( pl_character, roles[ rnd( 11 ) ] );
#else
strcpy( pl_character, roles[ rnd( 10 ) ] );
#endif
#endif #endif
amii_clear_nhwindow( WIN_BASE ); amii_clear_nhwindow( WIN_BASE );
CloseShWindow( cwin ); CloseShWindow( cwin );
+1 -9
View File
@@ -996,11 +996,8 @@ make_version()
| (1L << 6) | (1L << 6)
#endif #endif
/* objects (10..14) */ /* objects (10..14) */
#ifdef TOURIST
| (1L << 10)
#endif
#ifdef GOLDOBJ #ifdef GOLDOBJ
| (1L << 11) | (1L << 10)
#endif #endif
/* flag bits and/or other global variables (15..26) */ /* flag bits and/or other global variables (15..26) */
#ifdef TEXTCOLOR #ifdef TEXTCOLOR
@@ -1339,9 +1336,6 @@ static const char *build_opts[] = {
#ifdef TIMED_DELAY #ifdef TIMED_DELAY
"timed wait for display effects", "timed wait for display effects",
#endif #endif
#ifdef TOURIST
"tourists",
#endif
#ifdef USER_SOUNDS #ifdef USER_SOUNDS
# ifdef USER_SOUNDS_REGEX # ifdef USER_SOUNDS_REGEX
"user sounds via regular expressions", "user sounds via regular expressions",
@@ -2515,11 +2509,9 @@ do_objs()
if (!strncmp(objnam, "THE_", 4)) if (!strncmp(objnam, "THE_", 4))
objnam += 4; objnam += 4;
#ifdef TOURIST
/* fudge _platinum_ YENDORIAN EXPRESS CARD */ /* fudge _platinum_ YENDORIAN EXPRESS CARD */
if (!strncmp(objnam, "PLATINUM_", 9)) if (!strncmp(objnam, "PLATINUM_", 9))
objnam += 9; objnam += 9;
#endif
Fprintf(ofp,"#define\tART_%s\t%d\n", limit(objnam, 1), i); Fprintf(ofp,"#define\tART_%s\t%d\n", limit(objnam, 1), i);
} }
-5
View File
@@ -3498,13 +3498,8 @@ void NetHackQtInvUsageWindow::paintEvent(QPaintEvent*)
drawWorn(painter,uarms,0,1); // Shield drawWorn(painter,uarms,0,1); // Shield
drawWorn(painter,uarmg,0,2); // Gloves - repeated drawWorn(painter,uarmg,0,2); // Gloves - repeated
drawWorn(painter,uarmg,2,2); // Gloves - repeated drawWorn(painter,uarmg,2,2); // Gloves - repeated
#ifdef TOURIST
drawWorn(painter,uarmf,1,5); // Shoes (feet) drawWorn(painter,uarmf,1,5); // Shoes (feet)
drawWorn(painter,uarmu,1,4); // Undershirt drawWorn(painter,uarmu,1,4); // Undershirt
#else
drawWorn(painter,0 ,1,5,FALSE);
drawWorn(painter,uarmf,1,4); // Shoes (feet)
#endif
drawWorn(painter,uleft,0,3); // RingL drawWorn(painter,uleft,0,3); // RingL
drawWorn(painter,uright,2,3); // RingR drawWorn(painter,uright,2,3); // RingR
-11
View File
@@ -14,7 +14,6 @@
#define WORN_WIDTH 3 #define WORN_WIDTH 3
#define WORN_HEIGHT 6 #define WORN_HEIGHT 6
#ifdef TOURIST
#define WORN_OBJECT_LIST /* struct obj *[WORN_HEIGHT][WORN_WIDTH] = */ { \ #define WORN_OBJECT_LIST /* struct obj *[WORN_HEIGHT][WORN_WIDTH] = */ { \
{ uquiver, uarmh, u.twoweap ? NULL : uswapwep }, \ { uquiver, uarmh, u.twoweap ? NULL : uswapwep }, \
{ u.twoweap ? uswapwep : NULL, ublindf, uwep }, \ { u.twoweap ? uswapwep : NULL, ublindf, uwep }, \
@@ -23,16 +22,6 @@
{ uarmu, uarm, uskin }, \ { uarmu, uarm, uskin }, \
{ uball, uarmf, uchain } \ { uball, uarmf, uchain } \
} }
#else
#define WORN_OBJECT_LIST /* struct obj *[WORN_HEIGHT][WORN_WIDTH] = */ { \
{ uquiver, uarmh, u.twoweap ? NULL : uswapwep }, \
{ u.twoweap ? uswapwep : NULL, ublindf, uwep }, \
{ uleft, uamul, uright }, \
{ uarms, uarmc, uarmg }, \
{ NULL, uarm, uskin }, \
{ uball, uarmf, uchain } \
}
#endif
static GtkWidget *worn_contents[WORN_HEIGHT][WORN_WIDTH]; static GtkWidget *worn_contents[WORN_HEIGHT][WORN_WIDTH];
static struct obj *last_worn_objects[WORN_HEIGHT][WORN_WIDTH]; static struct obj *last_worn_objects[WORN_HEIGHT][WORN_WIDTH];
-15
View File
@@ -48,31 +48,16 @@ struct conditionals {
#endif #endif
#ifndef MAIL #ifndef MAIL
{ MON_GLYPH, PM_FAMINE, "mail daemon" }, { MON_GLYPH, PM_FAMINE, "mail daemon" },
#endif
#ifndef TOURIST
{ MON_GLYPH, PM_SAMURAI, "tourist" },
#endif #endif
/* commented out in monst.c at present */ /* commented out in monst.c at present */
{ MON_GLYPH, PM_SHAMAN_KARNOV, "Earendil" }, { MON_GLYPH, PM_SHAMAN_KARNOV, "Earendil" },
{ MON_GLYPH, PM_SHAMAN_KARNOV, "Elwing" }, { MON_GLYPH, PM_SHAMAN_KARNOV, "Elwing" },
#ifndef TOURIST
{ MON_GLYPH, PM_LORD_SATO, "Twoflower" },
#endif
/* commented out in monst.c at present */ /* commented out in monst.c at present */
{ MON_GLYPH, PM_CHROMATIC_DRAGON, "Goblin King" }, { MON_GLYPH, PM_CHROMATIC_DRAGON, "Goblin King" },
{ MON_GLYPH, PM_NEANDERTHAL, "High-elf" }, { MON_GLYPH, PM_NEANDERTHAL, "High-elf" },
#ifndef TOURIST
{ MON_GLYPH, PM_ROSHI, "guide" },
#endif
/* objects commented out in objects.c at present */ /* objects commented out in objects.c at present */
{ OBJ_GLYPH, SILVER_DRAGON_SCALE_MAIL, "shimmering dragon scale mail" }, { OBJ_GLYPH, SILVER_DRAGON_SCALE_MAIL, "shimmering dragon scale mail" },
{ OBJ_GLYPH, SILVER_DRAGON_SCALES, "shimmering dragon scales" }, { OBJ_GLYPH, SILVER_DRAGON_SCALES, "shimmering dragon scales" },
#ifndef TOURIST
{ OBJ_GLYPH, LEATHER_JACKET, "Hawaiian shirt" },
{ OBJ_GLYPH, LEATHER_JACKET, "T-shirt" },
{ OBJ_GLYPH, LOCK_PICK, "credit card" },
{ OBJ_GLYPH, MAGIC_LAMP, "expensive camera" },
#endif
/* allow slime mold to look like slice of pizza, since we /* allow slime mold to look like slice of pizza, since we
* don't know what a slime mold should look like when renamed anyway * don't know what a slime mold should look like when renamed anyway
*/ */