OSDN Git Service

monster_critical()で, 受けたダメージがダイス目の100%を超える場合には
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 5 Jun 2003 17:46:17 +0000 (17:46 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 5 Jun 2003 17:46:17 +0000 (17:46 +0000)
朦朧度や切り傷に関わるmaxが1増やされず, 100%ちょうどの場合より微妙に
弱かったので修正.

src/melee1.c

index e8edfb5..a529bad 100644 (file)
@@ -30,7 +30,7 @@ static int monster_critical(int dice, int sides, int dam)
        if ((dam < 20) && (randint0(100) >= dam)) return (0);
 
        /* Perfect damage */
-       if (dam == total && dam >= 40) max++;
+       if ((dam >= total) && (dam >= 40)) max++;
 
        /* Super-charge */
        if (dam >= 20)