Skip to content

Commit 1f7cb0c

Browse files
Fix: blunt weptools had +4 TH bonus
It used to be (like in vanilla 3.3 or something) WHACK/PIERCE/SLASH were defined as 0/1/2. The damage type for weptools was used as their to-hit bonus. But, when WHACK was redefined as 4, the to-hit bonuses changed, too. Pretty sure this is still extant in vanilla as well, just less noticeable because vanilla has no object lookup.
1 parent 8e9e63d commit 1f7cb0c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3500,3 +3500,4 @@ The following changes to date are:
35003500
- Fix: tty character selection filtering menu
35013501
- Fix: drawbridges crush both rider and steed
35023502
- Fix: stethoscopes shouldn't open chests
3503+
- Fix: blunt weptools had +4 TH bonus

src/objects.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,9 @@ OBJECT(OBJ("Amulet of Yendor", /* note: description == name */
729729
OBJECT(OBJ(name, desc), \
730730
BITS(kn, 0, chg, 1, mgc, chg, 0, 0, 0, 0, 0, P_NONE, mat), \
731731
0, TOOL_CLASS, prob, 0, wt, cost, 0, 0, 0, 0, wt, color)
732-
#define WEPTOOL(name,desc,kn,mgc,bi,prob,wt,cost,sdam,ldam,hitbon,sub,mat,clr) \
732+
#define WEPTOOL(name,desc,kn,mgc,bi,prob,wt,cost,sdam,ldam,hitbon,typ,sub,mat,clr) \
733733
OBJECT(OBJ(name, desc), \
734-
BITS(kn, 0, 1, 0, mgc, 1, 0, 0, bi, 0, hitbon, sub, mat), \
734+
BITS(kn, 0, 1, 0, mgc, 1, 0, 0, bi, 0, typ, sub, mat), \
735735
0, TOOL_CLASS, prob, 0, wt, cost, sdam, ldam, hitbon, 0, wt, clr)
736736
/* containers */
737737
CONTAINER("large box", None, 1, 0, 0, 40, 350, 8, WOOD, HI_WOOD),
@@ -813,11 +813,11 @@ TOOL("leather drum", "drum", 0, 0, 0, 0, 4, 25, 25, LEATHER, HI_LEATHER
813813
TOOL("drum of earthquake","drum", 0, 0, 1, 1, 2, 25, 25, LEATHER, HI_LEATHER),
814814
/* tools useful as weapons */
815815
WEPTOOL("pick-axe", None,
816-
1, 0, 0, 20, 100, 50, 6, 3, WHACK, P_PICK_AXE, IRON, HI_METAL),
816+
1, 0, 0, 20, 100, 50, 6, 3, 0, WHACK, P_PICK_AXE, IRON, HI_METAL),
817817
WEPTOOL("grappling hook", "iron hook",
818-
0, 0, 0, 5, 30, 50, 2, 6, WHACK, P_FLAIL, IRON, HI_METAL),
818+
0, 0, 0, 5, 30, 50, 2, 6, 0, WHACK, P_FLAIL, IRON, HI_METAL),
819819
WEPTOOL("unicorn horn", None,
820-
1, 1, 0, 0, 20, 100, 8, 10, PIERCE, P_UNICORN_HORN, BONE, CLR_WHITE),
820+
1, 1, 0, 0, 20, 100, 8, 10, 1, PIERCE, P_UNICORN_HORN, BONE, CLR_WHITE),
821821
/* 3.4.1: unicorn horn left classified as "magic" */
822822
/* two unique tools;
823823
* not artifacts, despite the comment which used to be here

0 commit comments

Comments
 (0)