(V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR,
V_FOOD, V_OIL, V_LCM, V_HCM, V_UW, V_RAD, V_ITEM): Remove, use item types instead.
This commit is contained in:
parent
09def8f156
commit
8ef7f35a56
17 changed files with 64 additions and 81 deletions
|
@ -196,12 +196,12 @@ commdamage(register int amt, int dam, int vtype)
|
|||
{
|
||||
int lost;
|
||||
|
||||
if (vtype == V_BAR && opt_SUPER_BARS)
|
||||
if (vtype == I_BAR && opt_SUPER_BARS)
|
||||
return amt;
|
||||
|
||||
lost = amt - effdamage(amt, dam);
|
||||
|
||||
if (vtype == V_MILIT || vtype == V_CIVIL || vtype == V_UW)
|
||||
if (vtype == I_MILIT || vtype == I_CIVIL || vtype == I_UW)
|
||||
lost = ldround(people_damage * lost, 1);
|
||||
return amt - lost;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue