コード例 #1
0
 def hand_in(plr):
   plr.sim_type(font.green('You completed the quest: Learning the Ropes\n'))
   plr.quests.remove(learning_the_ropes)
   plr.completed_quests.append(learning_the_ropes)
   plr.gain_rep(5)
   wait()
   print("When you gain reputation at Gallador, you are entitled to basic weapons. You can come see me at any time when you have gained enough reputation for your next weapon.")
   wait()
コード例 #2
0
 def hand_in(plr):
   plr.inventory.pop(items.goblin_head, None)
   plr.quests.remove(proof_of_worth)
   plr.completed_quests.append(proof_of_worth)
   plr.sim_type("Thank you for carrying out that task.")
   plr.sim_type(font.green('You completed the quest: Proof of Worth\n'))
   plr.gain_rep(5)
   wait()
コード例 #3
0
    class tile_goblin100:
        graphic = font.green('▒▒')
        description = '100% goblin'

        def step(plr):
            opponent = goblin()
            print('\nA %s is attacking!' %
                  font.lvl_diff(plr, opponent, opponent.name))
            input('> ')
            combat.fight(opponent, plr)
コード例 #4
0
def combatscreen(opponent, plr):
    replit.clear()
    font.bold(' -------------------- FIGHT --------------------\n')
    # Opponent
    print(font.lvl_diff(plr, opponent, ' -- ' + opponent.name + ' --'))
    print(plr.settings['Health Bar Style'].display(opponent))
    print('Level: ' + str(opponent.lvl))
    print('Weapon: ' + opponent.weapon.name)
    # print('Moves: ')
    # for moveID in opponent.moves:
    #   print('[' + opponent.moves[moveID] + ']')
    print()
    # Player
    print(font.green(' -- ' + plr.name + ' --'))
    print(plr.settings['Health Bar Style'].display(plr))
    print('Level: ' + str(plr.lvl))
    print('Weapon: ' + plr.weapon.name + '\n\n')
    #print('Your moves: ')
    for moveID in plr.moves:
        print(str(moveID) + ' - [' + moves.name[plr.moves[moveID]] + ']')
    print()
    plr.show_consumables()
コード例 #5
0
 def hand_in(plr):
   plr.sim_type(font.green('You completed the quest: Arrival at Gallador\n'))
   plr.quests.remove(arrival_at_gallador)
   plr.completed_quests.append(arrival_at_gallador)
   plr.gain_rep(5)
   wait()