def display_character_info(player): data = ['Skill points: ' + str(player.skill_points), 'Current health: ' + str(int(player.fighter.hp)), 'Maximum wounds: ' + str(player.fighter.max_hp), 'Skills:'] for key, value in player.fighter.skills.items(): data.append(' ' + key + ': ' + str(value)) info_string = '\n'.join(data) renderer.msgbox(info_string, CHARACTER_SCREEN_WIDTH)
def display_help(): renderer.msgbox('numpad keys to move, or:\n' + ' h (west) j (south) k (north) l (east)\n' + ' y (nw) u (ne) b (sw) n (se) . (wait)\n' + ' shift-move to run\n' + 'g/get, d/drop, c/character information\n' + 'i/inventory, equip, or use item\n' + '</traverse stairs\n' + 'control-p/scroll through old log messages\n', INVENTORY_WIDTH)
def display_character_info(player): data = [ 'Skill points: ' + str(player.skill_points), 'Current health: ' + str(int(player.fighter.hp)), 'Maximum wounds: ' + str(player.fighter.max_hp), 'Skills:' ] for key, value in player.fighter.skills.items(): data.append(' ' + key + ': ' + str(value)) info_string = '\n'.join(data) renderer.msgbox(info_string, CHARACTER_SCREEN_WIDTH)
def display_help(): renderer.msgbox( 'move using numpad or "vi" keys:\n' + ' 7 8 9 y k u\n' + ' \|/ \|/ \n' + ' 4-+-6 h-+-l\n' + ' /|\ /|\ \n' + ' 1 2 3 b j m\n' + '\n' + ' numpad 5 or . (period) to wait,\n' + ' shift-move to run\n' + '\n' + 'g/get, d/drop, c/character information\n' + 'f/fire your bow\n (use mouse or movement keys to aim)\n' + 'i/view inventory\n (equip, use, or examine carried items)\n' + 's/increase skills\n' + '</traverse stairs\n' + '\n' + 'control-p/scroll through old log messages\n' + 'mouse over objects to look at them\n', INVENTORY_WIDTH)
def display_character_info(player): level_up_xp = LEVEL_UP_BASE + player.level * LEVEL_UP_FACTOR base_attack_power = player.fighter.base_power attack_power = player.fighter.power base_defense = player.fighter.base_defense defense = player.fighter.defense renderer.msgbox('Character Information\n\nLevel: ' + str(player.level) + '\nExperience: ' + str(player.fighter.xp) + '\nExperience to level up: ' + str(level_up_xp) + '\n\nMaximum HP: ' + str(player.fighter.max_hp) + '\nAttack: ' + str(attack_power) + ' (' + str(base_attack_power) + ' + ' + str(attack_power - base_attack_power) + ')' '\nDefense: ' + str(defense) + ' (' + str(base_defense) + ' + ' + str(defense - base_defense) + ')', CHARACTER_SCREEN_WIDTH)
def display_help(): renderer.msgbox('move using numpad or "vi" keys:\n' + ' 7 8 9 y k u\n' + ' \|/ \|/ \n' + ' 4-+-6 h-+-l\n' + ' /|\ /|\ \n' + ' 1 2 3 b j m\n' + '\n' + ' numpad 5 or . (period) to wait,\n' + ' shift-move to run\n' + '\n' + 'g/get, d/drop, c/character information\n' + 'f/fire your bow\n (use mouse or movement keys to aim)\n' + 'i/view inventory\n (equip, use, or examine carried items)\n' + 's/increase skills\n' + '</traverse stairs\n' + '\n' + 'control-p/scroll through old log messages\n' + 'mouse over objects to look at them\n', INVENTORY_WIDTH)