X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=planets.c;h=217ce1414e72a47ce740e163cd1b02d0989a8532;hp=bce9a1a7fdfb483ec7f5f5414ff470e5286e310b;hb=ca9de456d928ab8f7ef95f2fa03aeab2b3161d97;hpb=6b396c7a585fcf5c54caf29c527b195999d23bfe diff --git a/planets.c b/planets.c index bce9a1a..217ce14 100644 --- a/planets.c +++ b/planets.c @@ -395,7 +395,7 @@ void shuttle(void) void deathray(void) { - double r = Rand(); + double dprob, r = Rand(); ididit = 0; skip(1); @@ -430,20 +430,25 @@ void deathray(void) skip(1); prouts("WHIRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR"); skip(1); - if (r > .30) { + dprob = .30; + if (game.options & OPTION_PLAIN) + dprob = .5; + if (r > dprob) { prouts("Sulu- \"Captain! It's working!\""); skip(2); while (nenhere > 0) deadkl(game.kx[1],game.ky[1],game.quad[game.kx[1]][game.ky[1]],game.kx[1],game.ky[1]); prout("Ensign Chekov- \"Congratulations, Captain!\""); if (KLINGREM == 0) finish(FWON); - prout("Spock- \"Captain, I believe the `Experimental Death Ray'"); - if (Rand() <= 0.05) { - prout(" is still operational.\""); - } - else { - prout(" has been rendered nonfunctional.\""); - game.damage[DDRAY] = 39.95; + if ((game.options & OPTION_PLAIN) == 0) { + prout("Spock- \"Captain, I believe the `Experimental Death Ray'"); + if (Rand() <= 0.05) { + prout(" is still operational.\""); + } + else { + prout(" has been rendered nonfunctional.\""); + game.damage[DDRAY] = 39.95; + } } return; }