Exemple #1
0
 def __init__(self,
              name=None,
              controller=None,
              fight=None,
              unit_dict=None,
              complexity=None):
     StandardCreature.__init__(self,
                               name,
                               controller=controller,
                               fight=fight,
                               unit_dict=unit_dict)
     # Максимальные параметры
     self.max_hp = 3
     self.toughness = 3
     self.hp = 3
     self.abilities = [
         abilities.WeaponSnatcher(self),
         abilities.Dodge(self)
     ]
     self.weapon = engine.get_random_with_chances(
         ((weapons.Bow, 2), (weapons.Harpoon, 1)))(self)
     if unit_dict is not None:
         self.equip_from_dict(unit_dict)
     self.energy = int(self.max_energy / 2 + 1)
     self.loot_chances['weapon'] = 5
     self.stole = False
Exemple #2
0
 def __init__(self,
              name=None,
              controller=None,
              fight=None,
              unit_dict=None,
              complexity=None):
     StandardCreature.__init__(self,
                               name,
                               controller=controller,
                               fight=fight,
                               unit_dict=unit_dict)
     # Максимальные параметры
     self.damage = 2
     self.toughness = 7
     self.max_hp = 5
     self.max_energy = 6
     if unit_dict is None:
         self.abilities = [abilities.Dodge(self), abilities.Muscle(self)]
         self.weapon = weapons.SledgeHammer(self)
     self.energy = int(self.max_energy / 2 + 1)
Exemple #3
0
 def __init__(self,
              name=None,
              controller=None,
              fight=None,
              unit_dict=None,
              complexity=None):
     StandardCreature.__init__(self,
                               name,
                               controller=controller,
                               fight=fight,
                               unit_dict=unit_dict)
     # Максимальные параметры
     self.max_hp = 4
     self.toughness = 4
     self.hp = 4
     self.abilities = [abilities.SpellCaster(self), abilities.Dodge(self)]
     if unit_dict is not None:
         self.equip_from_dict(unit_dict)
     self.energy = int(self.max_energy / 2 + 1)
     self.loot_chances['weapon'] = 5
     self.stole = False
Exemple #4
0
 def __init__(self,
              name=None,
              controller=None,
              fight=None,
              unit_dict=None,
              complexity=None):
     StandardCreature.__init__(self,
                               name,
                               controller=controller,
                               fight=fight,
                               unit_dict=unit_dict)
     # Максимальные параметры
     self.max_hp = 3
     self.evasion = 1
     self.abilities = [
         abilities.WeaponSnatcher(self),
         abilities.Dodge(self)
     ]
     if unit_dict is not None:
         self.equip_from_dict(unit_dict)
     self.energy = self.max_energy
Exemple #5
0
    def __init__(self,
                 name=None,
                 controller=None,
                 fight=None,
                 unit_dict=None,
                 complexity=None):
        StandardCreature.__init__(self,
                                  name,
                                  controller=controller,
                                  fight=fight,
                                  unit_dict=unit_dict)
        self.unit_name_marker = 'goblin'
        # Максимальные параметры
        self.max_hp = 3
        self.toughness = 3
        self.hp = 3
        self.abilities = [abilities.Dodge(self)]
        self.searching = False
        if unit_dict is not None:
            self.equip_from_dict(unit_dict)
        else:
            if engine.roll_chance(50):
                self.searching = True
            else:
                self.items.append(items.Bomb(self))

        self.energy = int(self.max_energy / 2 + 1)
        self.search_bag_action = self.create_action('search_bag',
                                                    self.search_bag,
                                                    None,
                                                    order=10)
        self.find_item_action = self.create_action('find_item',
                                                   self.find_item,
                                                   None,
                                                   order=10)
        self.item_pool = [(items.Mine, 1), (items.Bomb, 3),
                          (items.ThrowingKnife, 2)]
Exemple #6
0
 def __init__(self, name=None, controller=None, fight=None, unit_dict=None, complexity=None):
     StandardCreature.__init__(self, name, controller=controller, fight=fight, unit_dict=unit_dict)
     # Максимальные параметры
     if unit_dict is None:
         self.abilities = [abilities.Dodge(self)]