Giter Club home page Giter Club logo

dungeon-quest's People

Contributors

brando56894 avatar

Watchers

 avatar

dungeon-quest's Issues

V2 - Crash: Save Game

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 283, in save_game
    pickle.dump(player,oput,pickle.HIGHEST_PROTOCOL)
  File "/usr/lib/python2.7/pickle.py", line 1370, in dump
    Pickler(file, protocol).dump(obj)
  File "/usr/lib/python2.7/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib/python2.7/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib/python2.7/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib/python2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.7/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib/python2.7/pickle.py", line 681, in _batch_setitems
    save(v)
  File "/usr/lib/python2.7/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python2.7/pickle.py", line 748, in save_global
    (obj, module, name))
pickle.PicklingError: Can't pickle <function <lambda> at 0x7fdfa2767d70>: it's not found as character.<lambda>

Change Formatting

round 3

Brandon attacked zombie!
zombie took 18 damage!

zombie attacked Brandon!
That's gonna leave a mark!
Brandon took 29 damage!

V2 - Crash: Buying a Spell

Cure
--------------
Target: You
Accuracy: 100
MP Used: 2

Spell that heals wounds a little bit.

Cost: 20

Pres Enter To Go Back

How many do you want to buy? 1

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 "/home/bran/dungeon-quest/actions.py", line 152, in visit_shop
    visit_shop_section(area, areas[area], player)
  File "/home/bran/dungeon-quest/actions.py", line 181, in visit_shop_section
    area, player)
  File "/home/bran/dungeon-quest/actions.py", line 205, in checkout_item
    visit_shop_section(section, section_dict, player)
  File "/home/bran/dungeon-quest/actions.py", line 181, in visit_shop_section
    area, player)
  File "/home/bran/dungeon-quest/actions.py", line 210, in checkout_item
    section_dict, player, True)
  File "/home/bran/dungeon-quest/actions.py", line 224, in checkout_item
    if amount and player.gold_handle(cost*amount):
  File "/home/bran/dungeon-quest/player.py", line 360, in gold_handle
    self.stat_modifier({"gold", -cost})
  File "/home/bran/dungeon-quest/character.py", line 117, in stat_modifier
    mod = stat_mod[stat]
TypeError: 'set' object does not support indexing

Best weapon Selected

Add a check in the monster_attack method in Monsters.py to make sure the player is using the best weapon in their inventory.

V1 - Change Weapon List Doesn't Update

When choosing to change your weapon after you have just found a new one, the list of available weapons doesn't include the newest one, although if you type it in, it works as expected.

Add Interactive Attack System

Right now the battle sequence is non-interactive. I'm thinking of implementing a interactive battle sequence that should also work with team battles. For this to work I would need to define stats (like accuracy, evasiveness, defense, base damage, critical hit chance, etc). It should take me a max of a week to get it up and running.

Can't Quit

Selecting 'q' from the main menu doesn't do anything.

V2 - Crash: Unlocked Door, Find Weapon

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'

'Available Weapons' in set_current_weapon

Listing the player's available weapons in the set_current_weapon method in Player.py doesn't include a weapon that was added to the players inventory a turn or so before.

For example, I found a rifle and once it brought me back to the main menu I went to change my weapon but under Available Weapons it only showed the dagger, yet if I list my inventory it will show that I also have a rifle. Also if I type rifle it will tell me that my current weapon has been changed to the rifle, which is true.

V2 - Auto-Select Monster If Only One Monster

During the battle it gets pretty repetitive typing the monster name every time, especially the longer the battle gets. I see why you did this, but currently it's kind of useless if there is only monster attacking at a time, so if the game detects only one monster it should know that's the monster that you want to attack.

String Substitution Bug in Actions.py

After I merged in your pull requests, it now throws an error at line 97 in actions.py and I can't figure why. Here's the chunk of code

def visit_shop(Player):
    clearscreen()
    print ("\nWhat would you like to purchase?\n"
            "You currently have %d gold coins.\n"
            "\nP) Health Potions\n""W) Weapons\n"
            "N) Nothing/Leave Store", %(Player.gold))

Here's the error:

[bran@archvm]: ~/dungeon-quest>$ python2 main.py
Traceback (most recent call last):
  File "main.py", line 5, in <module>
    import actions
  File "/home/bran/dungeon-quest/actions.py", line 97
    "N) Nothing/Leave Store", %(Player.gold))
                                                        ^
SyntaxError: invalid syntax

Crash when opening door

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 "/home/bran/dungeon-quest/actions.py", line 49, in roll_dice
    find_weapon(player)
  File "/home/bran/dungeon-quest/actions.py", line 104, in find_weapon
    for weapon_type in weapons:
NameError: global name 'weapons' is not defined

Player is listed twice under Allies

Brandon
hp: 167/200
sp: 10/10
mp: 10/10
Level: 1
Gold: 64

Allies

Brandon
Brandon

Enemies

demon

Press Enter To Go Back

Who is your target?

Script for adding equipment, items, and skills

While I have made it simple to add new equipment, items, or skills, it can be cumbersome because of all the typing. I'm thinking of making a small script that adds equipment, item, and skill definitions without all the hassle.

Crash: Find Potion in dead body's bag

You stumbled upon a dead body, you look through it's backpack....
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 "/home/bran/dungeon-quest/actions.py", line 62, in roll_dice
    find_potions(player)
  File "/home/bran/dungeon-quest/actions.py", line 118, in find_potions
    % player.inventory["potions"])
KeyError: 'potions'

V1 - Rewrite Main Menu

Rewrite main menu so that it supports hiding multiple things because currently it only supports hiding the debug menu, which just re-displays the menu with an additional line. I'd like to be able to conditionally hide visit shop, change weapon, use potion and debug menu.

Player Leveling

Use already implemented (or brand new!) XP system to allow the player to increase levels, which will possibly do the following:

  • increase attack power
  • increase health
  • increase monster health
  • increase monster attack damage
  • unlock new weapons
  • unlock new monsters

Silent Exit After One Turn

Your latest commit (40f7412) introduced a new bug that silently quits the game now after one turn.

You stepped on a booby trap!

**Press any button**
[bran@arch-vm]: ~/dungeon-quest>$ 

V2 - Crash: Buying Anything

I went to buy a rifle and typed 1 and it crashed.

Rifle
--------------
Defense: -5
Strength: 15
Speed: -5
Hands Needed: 2

Cost: 50

Pres Enter To Go Back

How many do you want to buy? 1
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 "/home/bran/dungeon-quest/actions.py", line 152, in visit_shop
    visit_shop_section(area, areas[area], player)
  File "/home/bran/dungeon-quest/actions.py", line 176, in visit_shop_section
    visit_shop(player)
  File "/home/bran/dungeon-quest/actions.py", line 152, in visit_shop
    visit_shop_section(area, areas[area], player)
  File "/home/bran/dungeon-quest/actions.py", line 176, in visit_shop_section
    visit_shop(player)
  File "/home/bran/dungeon-quest/actions.py", line 152, in visit_shop
    visit_shop_section(area, areas[area], player)
  File "/home/bran/dungeon-quest/actions.py", line 176, in visit_shop_section
    visit_shop(player)
  File "/home/bran/dungeon-quest/actions.py", line 152, in visit_shop
    visit_shop_section(area, areas[area], player)
  File "/home/bran/dungeon-quest/actions.py", line 181, in visit_shop_section
    area, player)
  File "/home/bran/dungeon-quest/actions.py", line 240, in checkout_item
    visit_shop_section(section, section_dict, player)
  File "/home/bran/dungeon-quest/actions.py", line 181, in visit_shop_section
    area, player)
  File "/home/bran/dungeon-quest/actions.py", line 210, in checkout_item
    section_dict, player, True)
  File "/home/bran/dungeon-quest/actions.py", line 224, in checkout_item
    if amount and player.gold_handle(cost*amount):
  File "/home/bran/dungeon-quest/player.py", line 360, in gold_handle
    self.stat_modifier({"gold", -cost})
  File "/home/bran/dungeon-quest/character.py", line 117, in stat_modifier
    mod = stat_mod[stat]
TypeError: 'set' object has no attribute '__getitem__'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.