summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b288f62)
Change chance in percent from damage-1 to damage. It's always been
damage-1, but I can't bring myself to document the silly -1.
+Nuke
+can't be damaged by conventional weapons
+nuclear damage may destroy it (chance in percent equal to damage)
+
Sector
sectdamage = damage / ((sectdef - 2) * eff + 2)
%damage = (100 * sectdamage / (sectdamage + 100))
Sector
sectdamage = damage / ((sectdef - 2) * eff + 2)
%damage = (100 * sectdamage / (sectdamage + 100))
Commodity
%damage = (100 * damage / (damage + 50))
Commodity
%damage = (100 * damage / (damage + 50))
+Note: when a ship, plane, land unit or bridge is destroyed, its
+contents is lost. This includes nukes.
+
.fi
.SA "fire, launch, torpedo, lmine, bomb, Hitchance, Attacking, Combat"
.fi
.SA "fire, launch, torpedo, lmine, bomb, Hitchance, Attacking, Combat"
*
* Known contributors to this file:
* Steve McClure, 1998-2000
*
* Known contributors to this file:
* Steve McClure, 1998-2000
- * Markus Armbruster, 2004-2010
+ * Markus Armbruster, 2004-2012
continue;
if ((damage = nukedamage(ncp, ni.curdist, airburst)) <= 0)
continue;
continue;
if ((damage = nukedamage(ncp, ni.curdist, airburst)) <= 0)
continue;
- if (roll(100) >= damage)
+ if (roll(100) > damage)
continue;
nuke.nuk_effic = 0;
if (own == player->cnum) {
continue;
nuke.nuk_effic = 0;
if (own == player->cnum) {