[Change] Tweakes board success chance.
This commit is contained in:
parent
b9fce0adbf
commit
e3a0ec37cf
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user