diff --git a/include/damage.h b/include/damage.h index 8a529d2a..88ff8f99 100644 --- a/include/damage.h +++ b/include/damage.h @@ -40,7 +40,7 @@ #define DMINE_HITCHANCE(x) ((double) ( (x) / ((x)+20.0) ) ) #define DMINE_LHITCHANCE(x) ((double) ( (x) / ((x)+35.0) ) ) #define MINE_DAMAGE() (22 + random()%21) -#define MINE_LDAMAGE() (10 + random()%11) +#define MINE_LDAMAGE() (11 + random()%20) #define DTORP_HITCHANCE(range, vis) ((double)(0.9/((range)+1)+(((vis)<6)?(5-(vis))*0.03:0))) #define TORP_DAMAGE() (torpedo_damage + (random() % torpedo_damage) + \ (random() % torpedo_damage)) diff --git a/info/Damage.t b/info/Damage.t index ff133774..ca2cc8f1 100644 --- a/info/Damage.t +++ b/info/Damage.t @@ -32,11 +32,11 @@ Whether you get a blam, Blam, or a BLAM depends on the accuracy of the plane and the difficulty of the target (see info bomb). Land mines -Land mines damage commodities by random(20) and land units by 10 + random(10). +Land mines damage commodities by random(20) and land units by 10 + random(20). If the land unit is an engineer, then the damags is cut in half. Sea mines -Sea mines damage ships 22 + random(20). If the ship can sweep, then +Sea mines damage ships 21 + random(21). If the ship can sweep, then the damage is cut in half. Nuclear Detonation diff --git a/src/lib/subs/lndsub.c b/src/lib/subs/lndsub.c index a1432fdb..b6a49390 100644 --- a/src/lib/subs/lndsub.c +++ b/src/lib/subs/lndsub.c @@ -1019,7 +1019,7 @@ lnd_hit_mine(struct lndstr *lp, struct lchrstr *lcp) nreport(lp->lnd_own, N_LHIT_MINE, 0, 1); - m = roll(20) + 10; + m = MINE_LDAMAGE(); if (lcp->l_flags & L_ENGINEER) m /= 2.0; diff --git a/src/lib/subs/shpsub.c b/src/lib/subs/shpsub.c index 331a6450..10fa5658 100644 --- a/src/lib/subs/shpsub.c +++ b/src/lib/subs/shpsub.c @@ -775,7 +775,7 @@ shp_hit_mine(struct shpstr *sp, struct mchrstr *mcp) nreport(sp->shp_own, N_HIT_MINE, 0, 1); - m = 22.0 + (double)(random() % 21); + m = MINE_DAMAGE(); if (mcp->m_flags & M_SWEEP) m /= 2.0;