Replace "roll0(N) + M" by "roll(N) + M-1"

This commit is contained in:
Markus Armbruster 2012-08-14 20:33:51 +02:00
parent fce1393017
commit c3be487479
8 changed files with 22 additions and 22 deletions

View file

@ -39,8 +39,8 @@
#define DPERCENT_DAMAGE(x) (100.0 * (x) / ((x) + 100.0))
#define DMINE_HITCHANCE(x) ((x) / ((x) + 20.0))
#define DMINE_LHITCHANCE(x) ((x) / ((x) + 35.0))
#define MINE_DAMAGE() (22 + roll0(21))
#define MINE_LDAMAGE() (11 + roll0(20))
#define MINE_DAMAGE() (21 + roll(21))
#define MINE_LDAMAGE() (10 + roll(20))
#define DTORP_HITCHANCE(range, vis) \
(0.9 / ((range)+1) + (((vis) < 6) ? (5-(vis)) * 0.03 : 0.0))
#define TORP_DAMAGE() (torpedo_damage + roll0(torpedo_damage) + \