(add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun)
(launch_sat, scra, scut, scuttle_ship, scuttle_land, knockdown) (ac_planedamage, detonate, attack_val, defense_val, air_damage) (msl_intercept, msl_launch_mindam, pln_prewrite, shp_prewrite): Simplify unit destruction: just zero efficiency, leave makelost() etc. to the prewrite callback.
This commit is contained in:
parent
1b94ddedc3
commit
0c1bd8e98b
14 changed files with 26 additions and 98 deletions
|
@ -126,9 +126,6 @@ knockdown(struct sctstr *sp, struct emp_qelem *list)
|
|||
mpr(land.lnd_own, "\07");
|
||||
mpr(land.lnd_own, " AARGH! %s tumbles to its doom!\n",
|
||||
prland(&land));
|
||||
makelost(EF_LAND, land.lnd_own, land.lnd_uid,
|
||||
land.lnd_x, land.lnd_y);
|
||||
land.lnd_own = 0;
|
||||
land.lnd_effic = 0;
|
||||
putland(land.lnd_uid, &land);
|
||||
}
|
||||
|
@ -149,9 +146,6 @@ knockdown(struct sctstr *sp, struct emp_qelem *list)
|
|||
mpr(plane.pln_own, "\07");
|
||||
mpr(plane.pln_own, " AARGH! %s tumbles to its doom!\n",
|
||||
prplane(&plane));
|
||||
makelost(EF_PLANE, plane.pln_own, plane.pln_uid,
|
||||
plane.pln_x, plane.pln_y);
|
||||
plane.pln_own = 0;
|
||||
plane.pln_effic = 0;
|
||||
putplane(plane.pln_uid, &plane);
|
||||
}
|
||||
|
@ -167,9 +161,6 @@ knockdown(struct sctstr *sp, struct emp_qelem *list)
|
|||
mpr(nuke.nuk_own, "\07");
|
||||
mpr(nuke.nuk_own, " %s sinks to the bottom of the sea!\n",
|
||||
prnuke(&nuke));
|
||||
makelost(EF_NUKE, nuke.nuk_own, nuke.nuk_uid,
|
||||
nuke.nuk_x, nuke.nuk_y);
|
||||
nuke.nuk_own = 0;
|
||||
nuke.nuk_effic = 0;
|
||||
putnuke(nuke.nuk_uid, &nuke);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue