Progether/JAdventure — pull request #187 by projectdelphai (2014-12-22 04:07:54+00:00)
Title: Basis for changing characters based on actions.

This is the final fix need for #77. Obviously this doesn't fully flesh out the idea, but that is something that is easy enough to do and will probably never be finished. It will be filled out as we go along and based on the other quests/npcs/items that we implement. So far it is that after a battle, it calls the trigger in CharacterChange to calculate changing the characters. The player holds an internal tally of all the characters and their values. The highest character tally is the current character type. CharacterChange checks the json file for transitions based on the current character and the action provided (in this case kill). The corresponding character/action lists +/- changes to the internal tally. After adding these changes, it recalculates which is the highest character tally and then if there's a difference, make the new character the new current character for the player. This can be tested by become a sewer rat and going to the brotherhood member and killing him.