[Change] Tweaked the boarding messages and chances somewhat.

This commit is contained in:
Allanis 2014-03-10 01:17:33 +00:00
parent 91f851870c
commit 9a4b745939

View File

@ -168,17 +168,18 @@ static int board_fail(unsigned int wdw) {
p = pilot_get(player->target); p = pilot_get(player->target);
/* Fail chance. */ /* Fail chance. */
if(RNG(0, 100) > (int)(50. * if(RNGF() > (0.5 *
(10. + (double)p->ship->crew/10.+(double)player->ship->crew))) (10. + (double)p->ship->crew/10.+(double)player->ship->crew)))
return 0; return 0;
if(RNG(0, 2)==0) { if(RNGF() < 0.4) { /* 40% of instadeath! */
/* 33% of instant death. */ /* 33% of instant death. */
p->armour = -1; p->armour = -1;
player_message("You have tripped the ship's self destruct mechanism!"); player_message("You have tripped the ship's self destruct mechanism!");
} else } else
/* You just got locked out!! */ /* You just got locked out!! */
player_message("The ship's security system locks you out!"); player_message("The ship's security system locks %s out!",
(player->ship->crew > 0) ? "your crew" : "you");
board_exit(wdw, NULL); board_exit(wdw, NULL);
return 1; return 1;