def refresh(self): Unit.refresh(self) self.wasted_energy = 0 if ['firearm'] not in self.weapon.types: self.energy = 5 if self.energy < 0: self.energy = 0
def refresh(self): Unit.refresh(self) self.wasted_energy = 0 self.hp_delta = 0 if self.energy < 0: self.energy = 0 elif self.energy > self.max_energy: self.energy = self.max_energy
def refresh(self): Unit.refresh(self) self.wasted_energy = 0 if ['firearm'] not in self.weapon.types: self.energy = 5 self.hp_delta = 0 if self.energy < 0: self.energy = 0 elif self.energy > self.max_energy: self.energy = self.max_energy
def refresh(self): Unit.refresh(self) self.wasted_energy = 0 if self.energy < 0: self.energy = 0