Skip to content

Commit 4bc6bf1

Browse files
committed
Draugr knights shouldn't start with apples and oranges.
Because thier steed is undead and does not eat.
1 parent 510f13d commit 4bc6bf1

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -4005,4 +4005,5 @@ The following changes to date are:
40054005
- Fix: Harbinger was not protecting worn armor from acid damage
40064006
- Fix: wearing gloves with elemental object properties and elemental
40074007
damage
4008+
- Draugr knights shouldn't start with apples and oranges
40084009

src/makemon.c

+3
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ extern struct trobj Knight[];
355355
extern struct trobj Elven_Knight[];
356356
extern struct trobj Dwarvish_Knight[];
357357
extern struct trobj Orcish_Knight[];
358+
extern struct trobj Draugr_Knight[];
358359
extern struct trobj Monk[];
359360
extern struct trobj Draugr_Monk[];
360361
extern struct trobj Priest[];
@@ -1136,6 +1137,8 @@ register struct monst *mtmp;
11361137
ini_mon_inv(mtmp, Dwarvish_Knight, 1);
11371138
else if (racial_orc(mtmp))
11381139
ini_mon_inv(mtmp, Orcish_Knight, 1);
1140+
else if (racial_zombie(mtmp))
1141+
ini_mon_inv(mtmp, Draugr_Knight, 1);
11391142
else
11401143
ini_mon_inv(mtmp, Knight, 1);
11411144
mongets(mtmp, SKELETON_KEY);

src/u_init.c

+12
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ struct trobj Orcish_Knight[] = {
158158
{ CARROT, 0, FOOD_CLASS, 10, 0 },
159159
{ 0, 0, 0, 0, 0 }
160160
};
161+
struct trobj Draugr_Knight[] = {
162+
{ LONG_SWORD, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
163+
{ LANCE, 1, WEAPON_CLASS, 1, UNDEF_BLESS },
164+
{ PLATE_MAIL, 0, ARMOR_CLASS, 1, UNDEF_BLESS },
165+
{ HELMET, 0, ARMOR_CLASS, 1, UNDEF_BLESS },
166+
{ LARGE_SHIELD, 0, ARMOR_CLASS, 1, UNDEF_BLESS },
167+
{ GAUNTLETS, 0, ARMOR_CLASS, 1, UNDEF_BLESS },
168+
{ 0, 0, 0, 0, 0 }
169+
};
170+
161171
struct trobj Monk[] = {
162172
#define M_BOOK 2
163173
{ GLOVES, 2, ARMOR_CLASS, 1, UNDEF_BLESS },
@@ -1075,6 +1085,8 @@ u_init()
10751085
ini_inv(Dwarvish_Knight);
10761086
else if (Race_if(PM_ORC))
10771087
ini_inv(Orcish_Knight);
1088+
else if (Race_if(PM_DRAUGR))
1089+
ini_inv(Draugr_Knight);
10781090
else
10791091
ini_inv(Knight);
10801092
knows_class(WEAPON_CLASS);

0 commit comments

Comments
 (0)