From e3a0ec37cf939263c505ab1d942227558c940593 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 17 Mar 2013 14:26:28 +0000 Subject: [PATCH] [Change] Tweakes board success chance. --- src/board.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/board.c b/src/board.c index 758f1b2..fc866c1 100644 --- a/src/board.c +++ b/src/board.c @@ -1,4 +1,5 @@ #include "lephisto.h" +#include "log.h" #include "pilot.h" #include "player.h" #include "toolkit.h" @@ -142,9 +143,9 @@ static int board_fail(void) { p = pilot_get(player_target); // Fail chance. - return 0; - if(RNG(0, 100) > (int)(50. * (double)p->ship->crew/(double)player->ship->crew)) - return; + if(RNG(0, 100) > (int)(50. * + (10. + (double)p->ship->crew/10.+(double)player->ship->crew))) + return 0; if(RNG(0, 2)==0) { // 33% of instant death.