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

View File

@@ -203,3 +203,4 @@ mouse_support wincap option
debug mode: #panic routine to test panic() and panic save file generation
a new PANICLOG optional file to log the reason for panic and impossible messages
added validate_prefix_locations() for early directory prefix validation
fire traps are particularly bad for paper and straw golems

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