DuhonTheGuy / RPG-Generator

MIT License
8 stars 4 forks source link

Reconfigured Battle class #11

Closed ghost closed 3 years ago

ghost commented 3 years ago

When creating classes you want to created an init function that way you do something like mybattle = Battle('sword', 10, 'Bandit', enemy_hp=10) mybattle.start_battle()

This allows you to actually make use of the classes functionality instead of basically using it as storage for a function.

DuhonTheGuy commented 3 years ago

You did change the name of the function, but not anywhere else. Also, you made an init constructor, but didn't fix the text reader file once again. Could ya push those changes?