Wet towels deal more damage

Dipping a towel into a potion, fountain, or some other water source
makes the towel wet.  Hitting with a wet towel deals up to 6 points
of damage, but every hit reduces wetness, as does throwing or applying
the towel.  You can also wish for a moist or wet towel.
This commit is contained in:
Pasi Kallinen
2015-10-13 16:27:58 +03:00
parent 8160990f99
commit 1703818a11
7 changed files with 32 additions and 0 deletions

View File

@@ -925,6 +925,10 @@ int thrown; /* HMON_xxx (0 => hand-to-hand, other => ranged) */
/* non-weapons can damage because of their weight */
/* (but not too much) */
tmp = obj->owt / 100;
if (obj->otyp == TOWEL && obj->spe > 0) { /* wet towel */
tmp += obj->spe;
obj->spe--;
}
if (tmp < 1)
tmp = 1;
else