Skip to content

Commit

Permalink
Renamed giant robe to great robe - avoids lookup conflicts with giants.
Browse files Browse the repository at this point in the history
If unknown, you'll also learn the identity of the great robe if you try and can't put it on.
  • Loading branch information
elunna committed Sep 27, 2023
1 parent 163fd71 commit cb1c861
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ struct obj {
|| otmp->otyp == SPIKED_BARDING || otmp->otyp == BARDING_OF_REFLECTION)
#define is_robe(otmp) \
(otmp->otyp == ROBE \
|| otmp->otyp == GIANT_ROBE \
|| otmp->otyp == GREAT_ROBE \
|| otmp->otyp == ROBE_OF_POWER \
|| otmp->otyp == ROBE_OF_PROTECTION \
|| otmp->otyp == ROBE_OF_WEAKNESS)
Expand Down
2 changes: 1 addition & 1 deletion include/objclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct objclass {
|| is_wood(otmp) || is_bone(otmp) || is_stone(otmp))

#define giant_sized(otmp) \
(otmp->otyp == GIANT_ROBE || otmp->otyp == LARGE_SPLINT_MAIL)
(otmp->otyp == GREAT_ROBE || otmp->otyp == LARGE_SPLINT_MAIL)

/* primary damage: fire/rust/--- */
/* is_flammable(otmp), is_rottable(otmp) in mkobj.c */
Expand Down
1 change: 1 addition & 0 deletions src/do_wear.c
Original file line number Diff line number Diff line change
Expand Up @@ -2669,6 +2669,7 @@ boolean noisy;
&& otmp && giant_sized(otmp)) {
if (noisy)
You("are too small to wear such a suit of armor.");
makeknown(otmp->otyp);
err++;
} else
*mask = W_ARM;
Expand Down
2 changes: 1 addition & 1 deletion src/objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ ARMOR("jacket", None,
/* Robes */
ARMOR("robe", "red robe",
0, 0, 0, 0, 1, 1, 40, 25, 9, 0, ARM_SUIT, LEATHER, CLR_RED),
ARMOR("giant robe", None,
ARMOR("great robe", None,
0, 0, 0, 0, 1, 1, 60, 25, 9, 0, ARM_SUIT, LEATHER, CLR_RED),
ARMOR("robe of protection", "blue robe", /* Slash'EM */
0, 1, 0, 0, 1, 1, 40, 50, 5, 1, ARM_SUIT, LEATHER, CLR_BLUE),
Expand Down
6 changes: 3 additions & 3 deletions src/u_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,11 @@ struct inv_sub {
{ PM_VAMPIRIC, FOOD_RATION, POT_VAMPIRE_BLOOD },
{ PM_VAMPIRIC, CRAM_RATION, POT_VAMPIRE_BLOOD },
/* Giants have special considerations */
{ PM_GIANT, ROBE, GIANT_ROBE },
{ PM_GIANT, ROBE_OF_POWER, GIANT_ROBE },
{ PM_GIANT, ROBE, GREAT_ROBE },
{ PM_GIANT, ROBE_OF_POWER, GREAT_ROBE },
{ PM_GIANT, RING_MAIL, HELMET },
{ PM_GIANT, LIGHT_ARMOR, HELMET },
{ PM_GIANT, CLOAK_OF_MAGIC_RESISTANCE, GIANT_ROBE },
{ PM_GIANT, CLOAK_OF_MAGIC_RESISTANCE, GREAT_ROBE },
{ PM_GIANT, RIN_STEALTH, RIN_SEARCHING },
{ PM_GIANT, SPLINT_MAIL, LARGE_SPLINT_MAIL },
{ PM_GIANT, CHAIN_MAIL, LOW_BOOTS },
Expand Down
2 changes: 1 addition & 1 deletion win/share/objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3181,7 +3181,7 @@ Z = (195, 195, 195)
....OOOOOOOOA...
................
}
# tile 166 (giant robe)
# tile 166 (great robe)
{
................
......XXX.......
Expand Down

0 comments on commit cb1c861

Please sign in to comment.