alittlebroken / adventure

Simple adventure game engine
0 stars 0 forks source link

Defeating a monster throw an error #4

Open alittlebroken opened 3 hours ago

alittlebroken commented 3 hours ago

If you have a weapon equipped and fight a monster it tells you that you defeated the monster in question but then throws an error message like so

Traceback (most recent call last): File "D:\projects\python\adventure\main.py", line 267, in process_cmd(command) File "D:\projects\python\adventure\main.py", line 123, in process_cmd fight_mob(location, cmds[1], "Television") File "D:\projects\python\adventure\main.py", line 233, in fight_mob world.remove_mob(area, mob) File "D:\projects\python\adventure\Locations.py", line 97, in remove_mob self.areas[key]["mobs"].remove(mob) ValueError: list.remove(x): x not in list