Remove the victim argument to rust_dmg().

The argument can be calculated from `otmp`.
This commit is contained in:
Sean Hunt
2015-02-23 15:08:30 -05:00
committed by Pasi Kallinen
parent 2b1820a67b
commit 48b048f921
6 changed files with 39 additions and 38 deletions

View File

@@ -113,9 +113,9 @@ dosit()
in_water:
You("sit in the water.");
if (!rn2(10) && uarm)
(void) rust_dmg(uarm, "armor", 1, TRUE, &youmonst);
(void) rust_dmg(uarm, "armor", 1, TRUE);
if (!rn2(10) && uarmf && uarmf->otyp != WATER_WALKING_BOOTS)
(void) rust_dmg(uarm, "armor", 1, TRUE, &youmonst);
(void) rust_dmg(uarm, "armor", 1, TRUE);
} else if(IS_SINK(typ)) {
You(sit_message, defsyms[S_sink].explanation);
Your("%s gets wet.", humanoid(youmonst.data) ? "rump" : "underside");