Exemplo n.º 1
0
def new_kris(game_state):
    """
    A composite component representing a Knife item.
    """
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description(
            "Kris",
            "A dagger with a wavy blade, its sharp end can cause major damage."
        ))
    c.set_child(GraphicChar(None, colors.GRAY_D, icon.KRIS))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.CUTTING))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(15))

    c.set_child(CritChanceBonusEffect(0.20))
    c.set_child(crit_multiplier_item_stat(3.5))

    c.set_child(ExtraSwingAttackEffect(0.2))
    c.set_child(BleedAttackEffect(0.2))

    return c
Exemplo n.º 2
0
def new_dagger(game_state):
    """
    A composite component representing a Knife item.
    """
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description(
            "Dagger",
            "A trusty dagger, small and precise but will only inflict small wounds."
        ))
    c.set_child(GraphicChar(None, colors.GRAY, icon.DAGGER))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.CUTTING))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(15))

    c.set_child(CritChanceBonusEffect(0.2))
    c.set_child(crit_multiplier_item_stat(3.5))

    c.set_child(ExtraSwingAttackEffect(0.20))
    c.set_child(BleedAttackEffect(0.10))

    return c
Exemplo n.º 3
0
def new_claw(game_state):
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description("Claws",
                    "A pair of gloves with sharp blades attached to them,"))
    c.set_child(GraphicChar(None, colors.CHAMPAGNE, icon.CLAWS))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.BLUNT))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(17))

    c.set_child(CritChanceBonusEffect(0.10))
    c.set_child(crit_multiplier_item_stat(2))

    c.set_child(ExtraSwingAttackEffect(0.15))
    c.set_child(CounterAttackEffect(0.20))
    c.set_child(BleedAttackEffect(0.30))

    return c
Exemplo n.º 4
0
def new_scimitar(game_state):
    """
    A composite component representing a Sword item.
    """
    sword = Composite()
    set_item_components(sword, game_state)
    set_melee_weapon_component(sword)
    sword.set_child(
        Description("Scimitar",
                    "A curved sword, an ancient design from the east."))
    sword.set_child(GraphicChar(None, colors.WHITE, icon.SCIMITAR))
    sword.set_child(DataPoint(DataTypes.WEIGHT, 8))

    sword.set_child(damage_item_stat(2, 5))
    sword.set_child(accuracy_item_stat(12))

    sword.set_child(CritChanceBonusEffect(0.2))
    sword.set_child(crit_multiplier_item_stat(2.5))

    sword.set_child(ExtraSwingAttackEffect(0.1))
    sword.set_child(DefenciveAttackEffect(0.1))
    sword.set_child(OffenciveAttackEffect(0.1))
    return sword
Exemplo n.º 5
0
def new_rapier(game_state):
    """
    A composite component representing a Sword item.
    """
    sword = Composite()
    set_item_components(sword, game_state)
    set_melee_weapon_component(sword)
    sword.set_child(
        Description("Rapier",
                    "A sword with a thin sharp blade, swift but deadly."))
    sword.set_child(GraphicChar(None, colors.CHAMPAGNE, icon.RAPIER))
    sword.set_child(DataPoint(DataTypes.WEIGHT, 8))

    sword.set_child(damage_item_stat(2, 5))
    sword.set_child(accuracy_item_stat(10))

    sword.set_child(CritChanceBonusEffect(0.2))
    sword.set_child(crit_multiplier_item_stat(2.5))

    sword.set_child(ExtraSwingAttackEffect(0.1))
    sword.set_child(CounterAttackEffect(0.1))
    sword.set_child(OffenciveAttackEffect(0.1))
    return sword
Exemplo n.º 6
0
def new_cestus(game_state):
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description(
            "Cestus",
            "A pair of leather battle gloves, they improve your punches."))
    c.set_child(GraphicChar(None, colors.ORANGE_D, icon.GLOVE))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.BLUNT))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(17))

    c.set_child(CritChanceBonusEffect(0.10))
    c.set_child(crit_multiplier_item_stat(2))

    c.set_child(ExtraSwingAttackEffect(0.3))
    c.set_child(CounterAttackEffect(0.2))
    c.set_child(StunAttackEffect(0.2))

    return c
Exemplo n.º 7
0
def new_katar(game_state):
    """
    A composite component representing a Knife item.
    """
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description("Katar",
                    "A blade with an unusual handle, it looks ancient."))
    c.set_child(GraphicChar(None, colors.CHAMPAGNE, icon.KATAR))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.CUTTING))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(17))

    c.set_child(CritChanceBonusEffect(0.10))
    c.set_child(crit_multiplier_item_stat(3))

    c.set_child(ExtraSwingAttackEffect(0.2))
    c.set_child(CounterAttackEffect(0.2))

    return c
Exemplo n.º 8
0
def new_sword(game_state):
    """
    A composite component representing a Sword item.
    """
    sword = Composite()
    set_item_components(sword, game_state)
    set_melee_weapon_component(sword)
    sword.set_child(
        Description(
            "Iron Sword",
            "This old blade has seen some better days, it's as sharp as ever tough."
        ))
    sword.set_child(GraphicChar(None, colors.GRAY, icon.SWORD))
    sword.set_child(DataPoint(DataTypes.WEIGHT, 10))

    sword.set_child(damage_item_stat(2, 5))
    sword.set_child(accuracy_item_stat(10))

    sword.set_child(CritChanceBonusEffect(0.1))
    sword.set_child(crit_multiplier_item_stat(2))

    sword.set_child(ExtraSwingAttackEffect(0.1))
    sword.set_child(BleedAttackEffect(0.1))
    return sword
Exemplo n.º 9
0
def new_iron_hand(game_state):
    c = Composite()
    set_item_components(c, game_state)
    set_melee_weapon_component(c)
    c.set_child(
        Description(
            "Iron Hand",
            "A pair of iron battle gloves, they put some weight behind your punches."
        ))
    c.set_child(GraphicChar(None, colors.GRAY, icon.GLOVE))
    c.set_child(DataPoint(DataTypes.WEIGHT, 5))
    c.set_child(DamageType(DamageTypes.BLUNT))

    c.set_child(damage_item_stat(1, 3))
    c.set_child(accuracy_item_stat(14))

    c.set_child(CritChanceBonusEffect(0.10))
    c.set_child(crit_multiplier_item_stat(2))

    c.set_child(ExtraSwingAttackEffect(0.20))
    c.set_child(CounterAttackEffect(0.2))
    c.set_child(StunAttackEffect(0.35))

    return c