Skip to content

Commit bb77a7a

Browse files
Fix: update to last commit (claws).
Co-authored-by: saltwaterterrapin <[email protected]>
1 parent 2fba95d commit bb77a7a

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3396,4 +3396,5 @@ The following changes to date are:
33963396
- Prevent levelporting throughout the Wizard's tower until the Wizard of
33973397
Yendor has been defeated
33983398
- Fix: various monsters showing as having claws when they don't
3399+
- Fix: update to last commit (claws)
33993400

include/mondata.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@
214214
|| (ptr)->mlet == S_DRAGON || (ptr)->mlet == S_JABBERWOCK \
215215
|| (ptr)->mlet == S_RUSTMONST || (ptr)->mlet == S_TROLL \
216216
|| (ptr)->mlet == S_UMBER || (ptr)->mlet == S_YETI \
217-
|| (ptr)->mlet == S_DEMON || (ptr)->mlet == S_LIZARD \
218-
|| (ptr)->mlet == S_DOG)
217+
|| ((ptr)->mlet == S_DEMON && (ptr) != &mons[PM_INCUBUS] \
218+
&& (ptr) != &mons[PM_SUCCUBUS]) \
219+
|| (ptr)->mlet == S_LIZARD || (ptr)->mlet == S_DOG)
219220
#define has_claws_undead(ptr) \
220221
((ptr)->mlet == S_MUMMY || (ptr)->mlet == S_ZOMBIE \
221222
|| (ptr)->mlet == S_WRAITH || (ptr)->mlet == S_VAMPIRE)

src/objnam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ unsigned doname_flags;
15601560
case CHAIN_CLASS:
15611561
add_erosion_words(obj, prefix);
15621562
if (obj->owornmask & W_BALL)
1563-
Sprintf(eos(bp), " (chained to %s)", isyours ? "you" : mon_nam(owner));
1563+
Strcat(bp, " (chained to you)");
15641564
break;
15651565
case GEM_CLASS:
15661566
if (obj->otyp == SLING_BULLET)

src/polyself.c

+3-12
Original file line numberDiff line numberDiff line change
@@ -1965,13 +1965,7 @@ int part;
19651965
"head", "peduncle", "played out", "gills",
19661966
"dorsal fin", "caudal fin", "scales", "blood",
19671967
"gill", "nostril", "stomach", "scales" };
1968-
/* claw attacks are overloaded in mons[]; most humanoids with
1969-
such attacks should still reference hands rather than claws */
1970-
static const char not_claws[] = {
1971-
S_HUMAN, S_ANGEL, S_NYMPH, S_LEPRECHAUN,
1972-
S_QUANTMECH, S_ORC, S_GIANT, S_GNOME, /* quest nemeses */
1973-
'\0' /* string terminator; assert( S_xxx != 0 ); */
1974-
};
1968+
19751969
struct permonst *mptr = mon->data;
19761970

19771971
/* some special cases */
@@ -1995,13 +1989,10 @@ int part;
19951989
return humanoid_parts[part]; /* yeti/sasquatch, monkey/ape */
19961990
}
19971991
if ((part == HAND || part == HANDED)
1998-
&& ((humanoid(mptr) && attacktype(mptr, AT_CLAW)
1999-
&& !index(not_claws, mptr->mlet) && mptr != &mons[PM_STONE_GOLEM]
2000-
&& mptr != &mons[PM_INCUBUS] && mptr != &mons[PM_SUCCUBUS])
2001-
|| (has_claws(mptr) || has_claws_undead(mptr))
1992+
&& ((humanoid(mptr) && (has_claws(mptr) || has_claws_undead(mptr)))
20021993
|| (mon == &youmonst
20031994
&& (Race_if(PM_DEMON) || Race_if(PM_ILLITHID)
2004-
|| Race_if(PM_TORTLE)))))
1995+
|| Race_if(PM_TORTLE)))))
20051996
return (part == HAND) ? "claw" : "clawed";
20061997
if ((mptr == &mons[PM_MUMAK] || mptr == &mons[PM_MASTODON]
20071998
|| mptr == &mons[PM_WOOLLY_MAMMOTH])

0 commit comments

Comments
 (0)