Пример #1
0
def armor_body_diamond(coords):
    x, y = coords
    
    bonus = 8
    
    equipment_com = actor.CompEquipment(defense_bonus = bonus, slot = "body")
    
    return_object = actor.ObjActor(x, y, "Diamond armor", animation_key = "S_STRONG_ARMOR", equipment = equipment_com)
    
    return return_object
Пример #2
0
def armor_body(coords):
    x, y = coords
    
    bonus = 4
    
    equipment_com = actor.CompEquipment(defense_bonus = bonus, slot = "body")
    
    return_object = actor.ObjActor(x, y, "Armor", animation_key = "S_ARMOR", equipment = equipment_com)
    
    return return_object
Пример #3
0
def weapon_dagger(coords):
    x, y = coords
    
    bonus = libtcod.random_get_int(0, 2, 5)
    
    equipment_com = actor.CompEquipment(attack_bonus = bonus, slot = "hand_right")
    
    return_object = actor.ObjActor(x, y, "Dagger", animation_key = "S_DAGGER", equipment = equipment_com)
    
    return return_object
Пример #4
0
def armor_shield(coords):
    x, y = coords
    
    bonus = libtcod.random_get_int(0, 2, 5)
    
    equipment_com = actor.CompEquipment(defense_bonus = bonus, slot = "hand_left")
    
    return_object = actor.ObjActor(x, y, "Shield", animation_key = "S_SHIELD", equipment = equipment_com)
    
    return return_object
Пример #5
0
def weapon_scythe(coords):
    x, y = coords
    
    bonus = libtcod.random_get_int(0, 10, 15)
    
    equipment_com = actor.CompEquipment(attack_bonus = bonus, slot = "hand_right")
    
    return_object = actor.ObjActor(x, y, "Scythe", animation_key = "S_LONG_SWORD", equipment = equipment_com)
    
    return return_object