Follow through on a command name change.
[super-star-trek.git] / src / sst.py
index cfdfe383e254b43119b4b57a5a74f9b2b407969d..a3455bfbf20e076b7c6439e1ecf5422cefadd0ec 100644 (file)
@@ -1482,8 +1482,8 @@ def targetcheck(w):
        return None
     return delta.bearing()
 
-def photon():
-    "Launch photon torpedo."
+def torps():
+    "Launch photon torpedo salvo."
     course = []
     game.ididit = False
     if damaged(DPHOTON):
@@ -5898,8 +5898,8 @@ def makemoves():
            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