示例#1
0
 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
示例#2
0
文件: worm.py 项目: egor5q/Veganwars
 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
示例#3
0
 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
示例#4
0
 def refresh(self):
     Unit.refresh(self)
     self.wasted_energy = 0
     if self.energy < 0:
         self.energy = 0