0
What do you think
i finally finished the first part of my code the loot table i definitely plan to add more to it to make it a fully functional rpg but until then i thought I'd see what everyone thought of what i have so far like is there anything i should do differently for ease of code? https://code.sololearn.com/co79N43jL3EB/?ref=app
2 Answers
+ 2
Looks a good start. I'd consider using a dictionary rather than a list for the stats. So you'd have key-value pairs that are linked semantically, rather than a list that has to be in the particular order that you set e.g. {'attack' : atk, 'ability' : ap} etc. but ultimately depends on how you wire the rest up in future, the list could work just fine
It's a good start for sure, in future this could probably be refactored with object oriented ideas which could make it more powerful and easier to handle. I'd 100% recommend sticking with what you have and see where it goes, it's great to play with Python in different ways to expose all the things it can do
0
I'll have to look into all that I'm only like halfway through the python tutorial sadly if I'm not mistaken there's not a way to store stats like for the gear "at least within the coding playground" otherwise i could make it fully functional within the code itself the end goal rpg that is