You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 972ee4073742c13648687583193af1ad71e4da6 breaks both shield energy and total energy available.
I've sprinkled print()'s through the code, you end up with things like this:
YOUR MISSION BEGINS WITH YOUR STARSHIP LOCATED
IN THE GALACTIC QUADRANT, 'PROCYON I'.
---------------------------------
<*> STARDATE 2800.0
CONDITION GREEN
QUADRANT 3 , 1
SECTOR 1 , 8
* PHOTON TORPEDOES 10
TOTAL ENERGY 3000
* SHIELDS 0
* KLINGONS REMAINING 11
---------------------------------
shields are 0
energy is 3000
COMMAND? she
ENERGY AVAILABLE = 3000 NUMBER OF UNITS TO SHIELDS? 500
shields were 0
energy was 3000
delta 500
shields are 500
energy is 2500
DEFLECTOR CONTROL ROOM REPORT:
'SHIELDS NOW AT 500 UNITS PER YOUR COMMAND.'
shields are 500
energy is 2500
COMMAND? srs
---------------------------------
<*> STARDATE 2800.0
CONDITION GREEN
QUADRANT 3 , 1
SECTOR 1 , 8
* PHOTON TORPEDOES 10
TOTAL ENERGY 3000
* SHIELDS 0
* KLINGONS REMAINING 11
---------------------------------
shields are 500
energy is 2500
COMMAND?
Huh? Short range scan says shields are zero, and they apparently are, despite the contents of ship.shields, since when I navigate to a hostile quadrant, I'm warned...
COMMAND? nav
COURSE (1-9)? 7
WARP FACTOR (0-8)? 1
NOW ENTERING VEGA I QUADRANT . . .
COMBAT AREA CONDITION RED
SHIELDS DANGEROUSLY LOW
---------------------------------
+K+ <*> STARDATE 2801.0
CONDITION *RED*
+K+ QUADRANT 4 , 1
SECTOR 1 , 8
PHOTON TORPEDOES 10
* TOTAL ENERGY 2982
SHIELDS 0
KLINGONS REMAINING 11
---------------------------------
---------------------------------
+K+ <*> STARDATE 2802.0
CONDITION *RED*
+K+ QUADRANT 4 , 1
SECTOR 1 , 8
PHOTON TORPEDOES 10
* TOTAL ENERGY 2982
SHIELDS 0
KLINGONS REMAINING 11
---------------------------------
shields are 500
energy is 2500
COMMAND?
And the Total Energy fields isn't right either.
Let's shoot at them...
COMMAND? pha
PHASERS LOCKED ON TARGET; ENERGY AVAILABLE = 2982 UNITS
NUMBER OF UNITS TO FIRE? 500
272 UNIT HIT ON KLINGON AT SECTOR 3 , 8
*** KLINGON DESTROYED ***
102 UNIT HIT ON KLINGON AT SECTOR 1 , 2
(SENSORS SHOW 185.988183 UNITS REMAINING)
78 UNIT HIT ON ENTERPRISE FROM SECTOR 1 , 2
THE ENTERPRISE HAS BEEN DESTROYED. THE FEDERATION WILL BE CONQUERED.
IT IS STARDATE 2802
THERE WERE 10 KLINGON BATTLE CRUISERS LEFT AT
THE END OF YOUR MISSION.
But ship.shields was 500 the whole time.
The text was updated successfully, but these errors were encountered:
posguy99
changed the title
Super Star Trek - Shields and Engery do not work
Super Star Trek - Ship class does not work correctly
Sep 3, 2022
Commit 972ee4073742c13648687583193af1ad71e4da6 breaks both shield energy and total energy available.
I've sprinkled print()'s through the code, you end up with things like this:
Huh? Short range scan says shields are zero, and they apparently are, despite the contents of
ship.shields
, since when I navigate to a hostile quadrant, I'm warned...And the Total Energy fields isn't right either.
Let's shoot at them...
But
ship.shields
was 500 the whole time.The text was updated successfully, but these errors were encountered: