]> git.pond.sub.org Git - empserver/blobdiff - include/damage.h
Replace "roll0(N) + M" by "roll(N) + M-1"
[empserver] / include / damage.h
index 09861f1a458fa271646276bd2cbad194b7416ce0..0e63cf49c5221cb50a4101e4bc4612e507478678 100644 (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) + \