remove unnecessary code on destroy_one_item()
`physical_damage` is initialized to FALSE, and no codes change it.
This commit is contained in:
@@ -5156,10 +5156,8 @@ destroy_one_item(struct obj *obj, int osym, int dmgtyp)
|
|||||||
long i, cnt, quan;
|
long i, cnt, quan;
|
||||||
int dmg, xresist, skip, dindx;
|
int dmg, xresist, skip, dindx;
|
||||||
const char *mult;
|
const char *mult;
|
||||||
boolean physical_damage;
|
|
||||||
boolean chargeit = FALSE;
|
boolean chargeit = FALSE;
|
||||||
|
|
||||||
physical_damage = FALSE;
|
|
||||||
xresist = skip = 0;
|
xresist = skip = 0;
|
||||||
/* lint suppression */
|
/* lint suppression */
|
||||||
dmg = dindx = 0;
|
dmg = dindx = 0;
|
||||||
@@ -5295,8 +5293,6 @@ destroy_one_item(struct obj *obj, int osym, int dmgtyp)
|
|||||||
|
|
||||||
if (dmgtyp == AD_FIRE && osym == FOOD_CLASS)
|
if (dmgtyp == AD_FIRE && osym == FOOD_CLASS)
|
||||||
how = "exploding glob of slime";
|
how = "exploding glob of slime";
|
||||||
if (physical_damage)
|
|
||||||
dmg = Maybe_Half_Phys(dmg);
|
|
||||||
losehp(dmg, one ? how : (const char *) makeplural(how),
|
losehp(dmg, one ? how : (const char *) makeplural(how),
|
||||||
one ? KILLED_BY_AN : KILLED_BY);
|
one ? KILLED_BY_AN : KILLED_BY);
|
||||||
exercise(A_STR, FALSE);
|
exercise(A_STR, FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user