B02003 - choking on unique monster corpse

Try harder to use the pronoun "the" when refering to a unique monster's corpse
This commit is contained in:
cohrs
2003-05-11 04:18:25 +00:00
parent 3f1f8c0b91
commit b8e61b8c47
2 changed files with 6 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ make sure that leashed monsters are released prior to shopkeeper inheriting
attaching long named candle to long named candelabrum caused buffer overflow
when polymorhed, only hand/weapon attack on disenchanter should result in
damage to weapon, gloves, etc.
killer should say "the" when choking on unique monster's corpse
Platform- and/or Interface-Specific Fixes

View File

@@ -258,6 +258,11 @@ choke(food) /* To a full belly all food is bad. (It.) */
killer = "a very rich meal";
} else {
killer = food_xname(food, FALSE);
if (food->otyp == CORPSE &&
(mons[food->corpsenm].geno & G_UNIQ)) {
killer = the(killer);
killer_format = KILLED_BY;
}
}
} else {
You("choke over it.");