示例#1
0
文件: Ammo.py 项目: gabrieljsch/gng
 def details(self):
     print(self, ' (' + self.wclass + ')')
     print("")
     if self.wclass in Ammos.thrown_amclasses:
         weapon = Weapon.make_weapon(self.base_string, self.game)
         print("Base damage:", self.damage + weapon.damage)
         print("Range:", weapon.range)
     else:
         print("Base damage:", self.damage)
     print("You are carrying " + str(self.number) + ".")
     print("")
     print(Descriptions.wclass[self.wclass])
     if self.brand is not None:
         print("")
         print(Descriptions.brand[self.brand])