return false;
}
-void photon(void)
-/* launch photon torpedo */
+void torps(void)
+/* launch photon torpedo salvo */
{
double targ[4][3], course[4];
double r, dummy;
if (game.ididit)
hitme = true;
break;
- case TORPEDO: // photons
- photon();
+ case TORPEDO: // photon torpedoes
+ torps();
if (game.ididit)
hitme = true;
break;
extern void srscan(void);
extern void lrscan(void);
extern void phasers(void);
-extern void photon(void);
+extern void torps(void);
extern void warp(bool);
extern void doshield(bool);
extern void dock(bool);
return None
return delta.bearing()
-def photon():
- "Launch photon torpedo."
+def torps():
+ "Launch photon torpedo salvo."
course = []
game.ididit = False
if damaged(DPHOTON):
phasers()
if game.ididit:
hitme = True
- elif cmd == "TORPEDO": # photon torpedos
- photon()
+ elif cmd in ("TORPEDO", "PHOTONS"): # photon torpedos
+ torps()
if game.ididit:
hitme = True
elif cmd == "MOVE": # move under warp