コード例 #1
0
    def __init__(self, name, description, weight, defense, cost):
        """
        Initializes armor class.

        @param name:         The name of the item.
        @param description:  Armor description.
        @param weight:       Armor weight.
        @param defense:      The defense stat of the piece of armor. Reduces the amount
                             of damage that player receives by this amount. 
        """
        Item.__init__(self, name, description, weight)
        self._defense = defense
        self._cost = cost
コード例 #2
0
    def __init__(self, name, description, weight, healing, cost):
        """
        Initializes potions class.

        @param name:          Name of portion.
        @param description:   Description of potion.
        @param weight:        Weight of weapon.
        @param healing:       Healing stat of weapon. Player heals by the maximum
                              of this amount when player uses potion.
        """
        Item.__init__(self, name, description, weight)
        self._healing = healing
        self._cost = cost
コード例 #3
0
ファイル: armor.py プロジェクト: jladdjr/lord-of-the-rings
    def __init__(self, name, description, weight, cost, defense):
        """
        Initializes armor class.

        @param name:         The name of the piece of armor.
        @param description:  Armor description.
        @param weight:       Armor weight.
        @param cost:         The cost of the armor.
        @param defense:      The defense stat of the piece of armor. 
        """
        Item.__init__(self, name, description, weight, cost)

        self._defense = defense
コード例 #4
0
ファイル: armor.py プロジェクト: bcrudolph/lord-of-the-rings
    def __init__(self, name, description, weight, defense, cost):
        """
        Initializes armor class.

        @param name:         The name of the item.
        @param description:  Armor description.
        @param weight:       Armor weight.
        @param defense:      The defense stat of the piece of armor. Reduces the amount
                             of damage that player receives by this amount. 
        """
        Item.__init__(self, name, description, weight)
        self._defense = defense
        self._cost = cost
コード例 #5
0
    def __init__(self, name, description, weight, attack, cost):
        """
        Initializes weapon class.

        @param name:          Name of weapon.
        @param description:   Description of weapon.
        @param weight:        Weight of weapon.
        @param attack:        Attack stat of weapon. Player damage increases by this
                              amount when weapon is equipped.
        """
        Item.__init__(self, name, description, weight)
        self._attack = attack
        self._cost = cost
コード例 #6
0
ファイル: potion.py プロジェクト: jladdjr/lord-of-the-rings
    def __init__(self, name, description, weight, cost, healing):
        """
        Initializes potions class.

        @param name:          Name of portion.
        @param description:   Description of potion.
        @param weight:        Weight of weapon.
        @param cost:          The cost of the potion.
        @param healing:       Healing stat of potion. Player may heal at most 
                              this amount upon use.
        """
        Item.__init__(self, name, description, weight, cost)
        
        self._healing = healing
コード例 #7
0
ファイル: charm.py プロジェクト: jladdjr/lord-of-the-rings
    def __init__(self, name, description, weight, cost, attack, defense, hp):
        """
        Initializes charm class.

        @param name:         The name of the item.
        @param description:  Charm description.
        @param weight:       Charm weight.
        @param attack:       Attack bonus given by charm.    
        @param defense:      The defense stat of the charm. Reduces the amount
                             of damage that player receives by this amount.
        @param hp:           The hp bonus of the charm. 
        """
        Item.__init__(self, name, description, weight, cost)
        
        self._attack = attack
        self._defense = defense
        self._hp = hp
コード例 #8
0
 def __init__(self):
     Item.__init__(self, "Chain Vest", "+20 Armor", False)
コード例 #9
0
 def __init__(self):
     Item.__init__(self, "Darkin", "+20 Starting Mana, Becomes a Demon",
                   True)
コード例 #10
0
 def __init__(self):
     Item.__init__(
         self, "Red Buff",
         "+200 Health, +20 Armor, Basic attacks deal 2.5% of target's maximum health true damage per second and prevent healing on the target",
         True)
コード例 #11
0
 def __init__(self):
     Item.__init__(
         self, "Thornmail",
         "+40 Armor, Reflects 35% of tamake taken from basic attacks", True)
コード例 #12
0
 def __init__(self):
     Item.__init__(
         self, "Locket Of The Iron Solari",
         "+20 Ability Power, +20 Armor, At the beggining of combat, all adjacent allies gain a 200 health shield",
         True)
コード例 #13
0
 def __init__(self):
     Item.__init__(
         self, "Luden's Echo",
         "+20 Ability Power, +20 Starting Mana, Special ability deals 200 magic damage to all adjacent enemies to target",
         True)
コード例 #14
0
 def __init__(self):
     Item.__init__(
         self, "Redemption",
         "+20 Starting Mana, +200 Health, On death, after a small delay, heal nerby allies for 1000 health",
         True)
コード例 #15
0
 def __init__(self):
     Item.__init__(self, "Blade Of The Ruined King",
                   "+15% Attack Speed, Becomes a Blademaster", True)
コード例 #16
0
 def __init__(self):
     Item.__init__(
         self, "Sword Breaker",
         "+20 Armor, +20 Magic Resistance, Basic attacks have a 20% chance to disarm the target",
         True)
コード例 #17
0
 def __init__(self):
     Item.__init__(self, "Spatula", "It must do something...", False)
コード例 #18
0
 def __init__(self):
     Item.__init__(self, "Zephyr", "+200 Health, +20 Magic Resistance, At the start of combat, banishes for 5 seconds the unit that mirrors the wielder placement on the other side of the board", True)
コード例 #19
0
 def __init__(self):
     Item.__init__(
         self, "Phantom Dancer",
         "+15% Attack Speed, +20 Armor, Dodge all critical strikes", True)
コード例 #20
0
 def __init__(self):
     Item.__init__(
         self, "Sword of The Divine",
         "+20 Attack Damage, +15% Attack Speed, Every second, has a 5% chance to gain 100% critical strike chance until the end of the combat",
         True)
コード例 #21
0
 def __init__(self):
     Item.__init__(
         self, "Seraph's Embrace",
         "+40 Starting Mana, After casting Special Ability gains 20 mana",
         True)
コード例 #22
0
 def __init__(self):
     Item.__init__(self, "Rabadon's Deathcap",
                   "+40 Ability Power, Increases Ability Power by 50%",
                   True)
コード例 #23
0
 def __init__(self):
     Item.__init__(self, "Needlessly Large Rod", "+20% Spell Damage", False)
コード例 #24
0
 def __init__(self):
     Item.__init__(self, "Hush", "+20 Starting Mana, +20 Magic Resistance, Basic attacks have a 30% chance to silence the target", True)
コード例 #25
0
 def __init__(self):
     Item.__init__(self, "Giant's Belt", "+200 Health", False)
コード例 #26
0
 def __init__(self):
     Item.__init__(self, "Yuumi", "+20 Ability Power, Becomes a Sorcerer",
                   True)
コード例 #27
0
 def __init__(self):
     Item.__init__(
         self, "Hextech Gunblade",
         "+20 Ability Power, +20 Attack Damage, Heal for 25% of damage dealt",
         True)
コード例 #28
0
 def __init__(self):
     Item.__init__(self, "Rapid Firecannon", "+30% Attack Speed, Doubles attack range, Basic attacks cannot miss", True)
コード例 #29
0
 def __init__(self):
     Item.__init__(self, "BF Sword", "+20 Attack Damage", False)
コード例 #30
0
 def __init__(self):
     Item.__init__(self, "Negatron Cloak", "+20 Magic Resistance", False)
コード例 #31
0
 def __init__(self):
     Item.__init__(
         self, "Spear of Shojin",
         "+20 Starting Mana, +20 Attack Damage, After casting Special Ability for the first time, basic attacks restore an additional 15% of maximum mana on-hit",
         True)
コード例 #32
0
 def __init__(self):
     Item.__init__(
         self, "Titanic Hydra",
         "+15% Attack Speed, +200 Health, Basic attacks deal 10% of your maximum health bonus damage to the target and all adjacent enemies",
         True)
コード例 #33
0
 def __init__(self):
     Item.__init__(self, "Dragon's Claw", "+40 Magic Resistance, Gain 83% resistance to magic damage", True)
コード例 #34
0
 def __init__(self):
     Item.__init__(self, "Guinssoo's Rageblade", "+20 Ability Power, +15% Attack Speed, Gains 3% attack speed on-hit, Stacks with no upper limit", True)