B04010 - paper golems and fire traps

Paper golems take 100% damage in a fire trap.  Straw is very flammable
unless tightly packed, but straw golems have a lot of surface area, so give
them 50% damage.
This commit is contained in:
cohrs
2002-07-14 22:10:33 +00:00
parent 5d530348d4
commit b440613866
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -1687,6 +1687,13 @@ glovecheck: target = which_armor(mtmp, W_ARMG);
} else {
int num = d(2,4);
/* paper burns very fast, assume straw is tightly
* packed and burns a bit slower */
if (mptr == &mons[PM_PAPER_GOLEM])
num = mtmp->mhp;
else if (mptr == &mons[PM_STRAW_GOLEM])
num = mtmp->mhpmax / 2;
if (thitm(0, mtmp, (struct obj *)0, num))
trapkilled = TRUE;
else