示例#1
0
should_continue = True
while should_continue:
    if room_number == 1:
        room_number = r1.run_room(player_inventory)
    elif room_number == 2:
        room_number = r2.run_room(player_inventory)
    elif room_number == 3:
        room_number = r3.run_room(player_inventory)
    elif room_number == 4:
        room_number = r4.run_room(player_inventory)
    elif room_number == 5:
        room_number = r5.run_room(player_inventory)
    elif room_number == 6:
        room_number = r6.run_room(player_inventory)
    elif room_number == 7:
        room_number = r7.run_room(player_inventory)
    elif room_number == 8:
        room_number = r8.run_room(player_inventory)
    elif room_number == 9:
        room_number = r9.run_room(player_inventory)
    elif room_number == 10:
        room_number = r10.run_room(player_inventory)
    elif room_number == 11:
        room_number = r11.run_room(player_inventory)
    elif room_number == 12:
        room_number = r12.run_room(player_inventory)
    elif room_number == 13:
        room_number = r13.run_room(player_inventory)
    elif room_number == 14:
        room_number = r14.run_room(player_inventory)
    else:
示例#2
0
                               mobs, player_health)
 elif room_number == 4:
     room_number = r4.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 5:
     room_number = r5.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 6:
     room_number = r6.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 7:
     room_number = r7.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 8:
     room_number = r8.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 9:
     room_number = r9.run_room(player_inventory, player_equipped,
                               combat_off_inventory, combat_spell_inventory,
                               mobs, player_health)
 elif room_number == 10:
     room_number = r10.run_room(player_inventory, player_equipped,
                                combat_off_inventory,
                                combat_spell_inventory, mobs, player_health)
 elif room_number == 11:
     room_number = r11.run_room(player_inventory, player_equipped,
示例#3
0
should_continue = True
while should_continue:
    if room_number == 1:
        room_number = r1.run_room(util.player_inventory)
    elif room_number == 2:
        room_number = r2.run_room(util.player_inventory)
    elif room_number == 3:
        room_number = r3.run_room(util.player_inventory)
    elif room_number == 4:
        room_number = r4.run_room(util.player_inventory)
    elif room_number == 5:
        room_number = r5.run_room(util.player_inventory)
    elif room_number == 6:
        room_number = r6.run_room(util.player_inventory)
    elif room_number == 7:
        room_number = r7.run_room(util.player_inventory)
    elif room_number == 8:
        room_number = r8.run_room(util.player_inventory)
    elif room_number == 9:
        room_number = r9.run_room(util.player_inventory)
    elif room_number == 10:
        room_number = r10.run_room(util.player_inventory)
    elif room_number == 11:
        room_number = r11.run_room(util.player_inventory)
    elif room_number == 12:
        room_number = r12.run_room(util.player_inventory)
    elif room_number == 13:
        room_number = r13.run_room(util.player_inventory)
    elif room_number == 666:
        print(
            '''You find yourself looking down at your own body in its expanding pool of blood.