A bit of documentation swiped and edited from the BSD code.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 20 Sep 2006 09:45:17 +0000 (09:45 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 20 Sep 2006 09:45:17 +0000 (09:45 +0000)
TODO
doc/sst-doc.xml
src/events.c
src/moving.c

diff --git a/TODO b/TODO
index 5d5eebc9bc9cd19cffa8c863c24db0909b972be5..19769b07243242a4ece53fd9a93c9e6de9cd079b 100644 (file)
--- a/TODO
+++ b/TODO
@@ -18,3 +18,18 @@ Long-term items:
 * Wandering planet-killer as in "The Doomsday Machine";
   see <http://www.ericweisstein.com/fun/startrek/TheDoomsdayMachine.html>.
  
 * Wandering planet-killer as in "The Doomsday Machine";
   see <http://www.ericweisstein.com/fun/startrek/TheDoomsdayMachine.html>.
  
+BSD-Trek features we haven't swiped yet:
+
+* The cloaking device.
+
+* Summoning Klingons to surrender and taking captives.
+
+* Automatic bugout sets your warp factor to > 6.
+
+* Smarter computer, with multiple requests.
+
+* There is a small probility that a nova event will leave a black hole.
+
+* Multiple laser banks and beam spreading.
+
+* Visual scans for when sensors are out.
index 7cd86dba356ac3ffa7ae086ab0362e8a6081b2db..ef762686ae86aff418fd73c1f97052857d0202ce 100644 (file)
@@ -1102,7 +1102,8 @@ Mnemonic:  DESTRUCT
 
 <para>You may self-destruct, thus killing yourself and ending the game.  If
 there are nearby Klingons, you may take a few of them with you (the
 
 <para>You may self-destruct, thus killing yourself and ending the game.  If
 there are nearby Klingons, you may take a few of them with you (the
-more energy you have left, the bigger the bang).</para>
+more energy you have left, the bigger the bang). It is possible to
+win this way, if you kill off your last adversaries with the blast.</para>
 
 <para>In order to self-destruct you must remember the password you typed in
 at the beginning of the game.</para>
 
 <para>In order to self-destruct you must remember the password you typed in
 at the beginning of the game.</para>
index 1cf14923b991f48cd8fe32ed2962f219a77862c5..f7831a6870e10fccec2ec58e9c29ff44dcd55d71 100644 (file)
@@ -602,6 +602,14 @@ void wait(void)
     game.optime = 0;
 }
 
     game.optime = 0;
 }
 
+/*
+ *     A nova occurs.  It is the result of having a star hit with a
+ *     photon torpedo, or possibly of a probe warhead going off.
+ *     Stars that go nova cause stars which surround them to undergo
+ *     the same probabilistic process.  Klingons next to them are
+ *     destroyed.  And if the starship is next to it, it gets zapped.
+ *     If the zap is too much, it gets destroyed.
+ */
 void nova(coord nov) 
 /* star goes nova */
 {
 void nova(coord nov) 
 /* star goes nova */
 {
index 3e243a4eee0870383d3e68ae1988d0b47af0ba45..cb6e197b51e5c5625693382f65f9fd830767e42f 100644 (file)
@@ -907,6 +907,26 @@ void probe(void)
     return;
 }
 
     return;
 }
 
+/*
+ *     Here's how the mayday code works:
+ *
+ *     First, the closest starbase is selected.  If there is a
+ *     a starbase in your own quadrant, you are in good shape.
+ *     This distance takes quadrant distances into account only.
+ *
+ *     A magic number is computed based on the distance which acts
+ *     as the probability that you will be rematerialized.  You
+ *     get three tries.
+ *
+ *     When it is determined that you should be able to be remater-
+ *     ialized (i.e., when the probability thing mentioned above
+ *     comes up positive), you are put into that quadrant (anywhere).
+ *     Then, we try to see if there is a spot adjacent to the star-
+ *     base.  If not, you can't be rematerialized!!!  Otherwise,
+ *     it drops you there.  It only tries five times to find a spot
+ *     to drop you.  After that, it's your problem.
+ */
+
 void mayday(void) 
 /* yell for help from nearest starbase */
 {
 void mayday(void) 
 /* yell for help from nearest starbase */
 {