Fold get_wet() into water_damage().

This now ensures that dipping into water works like other sources of
water damage. There is a potentially significant gameplay change here:
dipping a container into uncursed water will wet all its contents. If
this is a problem, then we should add another parameter to water_damage
which will suppress this behaviour for dipping.
This commit is contained in:
Sean Hunt
2015-02-24 15:26:09 -05:00
parent 57dcad3774
commit 3acd3c4a00
5 changed files with 6 additions and 98 deletions

View File

@@ -3118,7 +3118,8 @@ boolean force;
{
boolean loose_obj = (obj && obj->where == OBJ_FREE), exploded = FALSE;
(void) snuff_lit(obj);
if (snuff_lit(obj))
return 2;
if(obj->otyp == CAN_OF_GREASE && obj->spe > 0) {
return 0;