User1035 / Sigma-storage

Only for real sigmas
0 stars 0 forks source link

Create an Encounters module and model using objects #8

Open jamesdonkin opened 2 weeks ago

jamesdonkin commented 2 weeks ago

Suggest only doing this AFTER the work to break out Monsters?

I am a big vaguer of the design here, but a stand alone module to do encounters and use of classes would let you create much more complex encounters in future without using lots of IF statements because you could subclass.

You could have a set of standard methods all encounters have - description, start fight, on_character_death, get loot/reward?

I imagine you'd pass the character instance into the methods.

A lot of encounters have IF statements checking health, you could do this once, and have what happens in the classes.