elthran / RPG-Game

0 stars 1 forks source link

Need to clone monsters from bestiary #342

Open elthran opened 6 years ago

elthran commented 6 years ago

Currently every monster in the game is a hero. When you fight a monster, you are literally fighting another hero. Therefore at the end of the battle the game now heals the monster to full health so another character can fight them.

But this isn't how it should work. When you fight a monster you shouldn't fight one from the database. It should clone and create a new instance of the monster for you using the one in the database as a template. And if you kill the monster it can delete the instance. If you don't kill it, the instance can be stored by your hero to keep track of the unkilled monster. This would be private to your hero and not shared globally.

Look to commit 42aeeac53fbbe6b0a8eccc59488aaad37999e3b7 to see where monster healing takes place,