We're almost done with this chapter, but that doesn't mean we still don't have a lot to do. Let's stay focused and finish our cycle combat system so we can move on.
CycleClass_05.py. Most of the changes we need to make will happen here.
setupVarsNPs. We need to add four more variables to our list of cycle attributes. Place the following lines right after the line that says
self.energy = self.maxEnergy:
self.stability = 25 self.shieldRchrg = 10 self.energyRchrg = 5 self.shutDown = False
cycleControlnext. The player shouldn't be able to control the cycle during emergency shut down, so change the
if(self.active == True):line to look like ...