aelmosalamy / ascii-combat

A simple CLI text adventure game, created for learning purposes, feel free to contribute.
MIT License
69 stars 17 forks source link

Cannot select which weapon to use #17

Open iamparkerm opened 5 years ago

iamparkerm commented 5 years ago

In dungeon.py line 279 it asks which weapon to use, but then only prints the available weapon. Where do you select the weapon? The loop then goes back to the main. I can't initiate the combat.

aelmosalamy commented 5 years ago

I know, I am still working on it, I think I will complete implementing it today, For now you can have a look at the current open issues.

iamparkerm commented 5 years ago

Any progress? I'm still looking through your code. I'm not familiar with using multiple .py files in the same program. I suspect this at the end of dungeons.py is what links them together? if __name__ == '__main__': me = player.Player('Bori', 10, WEAPONS[FIST]) world = Dungeon(me, ROOMS) world.cmdloop()

aelmosalamy commented 5 years ago

Sorry for late response I am travelling and stopped work for a while. Now every weapon is associated with a skill, I made it so that melee weapons have double trouble skill while bows have the arrow storm skill. Anyways, working with multiples files is as easy import folder name.filename in all files I add *from dicts import ** which basically import everything inside the _init__.py file