Merge remote-tracking branch 'origin/NetHack-3.6.0'
This commit is contained in:
@@ -920,6 +920,7 @@ wiz_map_levltyp(VOID_ARGS)
|
||||
? 'a' + terrain - 10
|
||||
: 'A' + terrain - 36);
|
||||
}
|
||||
x--;
|
||||
if (levl[0][y].typ != STONE || may_dig(0, y))
|
||||
row[x++] = '!';
|
||||
row[x] = '\0';
|
||||
|
||||
@@ -1484,6 +1484,10 @@ int
|
||||
cursed(otmp)
|
||||
register struct obj *otmp;
|
||||
{
|
||||
if (!otmp) {
|
||||
impossible("cursed without otmp");
|
||||
return 0;
|
||||
}
|
||||
/* Curses, like chickens, come home to roost. */
|
||||
if ((otmp == uwep) ? welded(otmp) : (int) otmp->cursed) {
|
||||
boolean use_plural = (is_boots(otmp) || is_gloves(otmp)
|
||||
|
||||
@@ -2839,11 +2839,12 @@ struct obj *no_wish;
|
||||
*/
|
||||
if (!strstri(bp, "wand ") && !strstri(bp, "spellbook ")
|
||||
&& !strstri(bp, "finger ")) {
|
||||
if (((p = strstri(bp, "tin of ")) != 0)
|
||||
&& (tmp = tin_variety_txt(p + 7, &tinv))
|
||||
&& (mntmp = name_to_mon(p + 7 + tmp)) >= LOW_PM) {
|
||||
*(p + 3) = 0;
|
||||
if ((p = strstri(bp, "tin of ")) != 0) {
|
||||
tmp = tin_variety_txt(p + 7, &tinv);
|
||||
tvariety = tinv;
|
||||
mntmp = name_to_mon(p + 7 + tmp);
|
||||
typ = TIN;
|
||||
goto typfnd;
|
||||
} else if ((p = strstri(bp, " of ")) != 0
|
||||
&& (mntmp = name_to_mon(p + 4)) >= LOW_PM)
|
||||
*p = 0;
|
||||
|
||||
Reference in New Issue
Block a user