- if (r > .30) {
- 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 (game.state.remkl == 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;
- }
- return;
- }
- r = Rand(); // Pick failure method
- if (r <= .30) {
- prouts("Sulu- \"Captain! It's working!\"");
- skip(1);
- prouts("***RED ALERT! RED ALERT!");
- skip(1);
- prout("***MATTER-ANTIMATTER IMPLOSION IMMINENT!");
- skip(1);
- prouts("***RED ALERT! RED A*L********************************");
- skip(1);
- stars();
- prouts("****************** KA-BOOM!!!! *******************");
- skip(1);
- kaboom();
- return;
- }
- if (r <= .55) {
- prouts("Sulu- \"Captain! Yagabandaghangrapl, brachriigringlanbla!\"");
- skip(1);
- prout("Lt. Uhura- \"Graaeek! Graaeek!\"");
- skip(1);
- prout("Spock- \"Facinating! . . . All humans aboard");
- prout(" have apparently been transformed into strange mutations.");
- prout(" Vulcans do not seem to be affected.");
- skip(1);
- prout("Kirk- \"Raauch! Raauch!\"");
- finish(FDRAY);
- return;
- }
- if (r <= 0.75) {
- int i,j;
- prouts("Sulu- \"Captain! It's --WHAT?!?!\"");
- skip(2);
- proutn("Spock- \"I believe the word is");
- prouts(" *ASTONISHING*");
- prout(" Mr. Sulu.");
- for (i=1; i<=10; i++)
- for (j=1; j<=10; j++)
- if (game.quad[i][j] == IHDOT) game.quad[i][j] = IHQUEST;
- prout(" Captain, our quadrant is now infested with");
- prouts(" - - - - - - *THINGS*.");
- skip(1);
- prout(" I have no logical explanation.\"");
- return;
- }
- prouts("Sulu- \"Captain! The Death Ray is creating tribbles!\"");
+ kaboom();
+ return;
+ }
+ if (r <= .55) {
+ prouts("Sulu- \"Captain! Yagabandaghangrapl, brachriigringlanbla!\"");
+ skip(1);
+ prout("Lt. Uhura- \"Graaeek! Graaeek!\"");
+ skip(1);
+ prout("Spock- \"Fascinating! . . . All humans aboard");
+ prout(" have apparently been transformed into strange mutations.");
+ prout(" Vulcans do not seem to be affected.");