brando56894 / dungeon-quest

A dungeon crawler written in Python 2
GNU General Public License v3.0
0 stars 0 forks source link

V2 - Crash: Unlocked Door, Find Weapon #19

Open brando56894 opened 8 years ago

brando56894 commented 8 years ago
You found a locked door...

You opened it with the key that you found
Traceback (most recent call last):
  File "main.py", line 132, in <module>
    menu(new_player)
  File "main.py", line 108, in menu
    choices[choice](player)
  File "/mnt/c/Users/bran/dungeon-quest/actions.py", line 49, in roll_dice
    find_weapon(player)
  File "/mnt/c/Users/bran/dungeon-quest/actions.py", line 105, in find_weapon
    weapon_list += weapon_type.keys()
AttributeError: 'str' object has no attribute 'keys'
brando56894 commented 8 years ago

I fixed a reference to a property that didn't exist and fixed a typo but it still doesn't work... https://github.com/brando56894/dungeon-quest/commit/0e419223900cad52b246ca5fe251a49929bddf8a

You found a locked door...

You opened it with the key that you found
Traceback (most recent call last):
  File "main.py", line 132, in <module>
    menu(new_player)
  File "main.py", line 108, in menu
    choices[choice](player)
  File "/mnt/c/Users/bran/dungeon-quest/actions.py", line 49, in roll_dice
    find_weapon(player)
  File "/mnt/c/Users/bran/dungeon-quest/actions.py", line 101, in find_weapon
    weapon_list.remove(cannot_see)
ValueError: list.remove(x): x not in list