Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Battle 2k3: Implement "Enable Combo", skill reflection, (de)buff and minor things #1069
Enable combo simply repeats the whole action and reduces a counter.
Skill reflect is a bit more "fun" but was surprisingly easy to implement in the BattleAlgorithm (good API design): GetTarget lies to the caller and returns the source when reflected. Therefore battleAlgorithm will handle the whole damage calc and applycation automatically correct.
(De)buffing is that [x] Reduce Resistance option. When checked this buffs or debuffs the Attack Elements by 1/-1. Maximum shift is +-1 and when e.g. an actor is buffed with +1 and the enemy debuffs it becomes 0.
Here some bad video (somehow offset is wrong): https://gfycat.com/ObviousBogusIberianchiffchaff
Uses "3x combo" and Poison causes reflect. As you can see the first poison attack is not reflected but then the enemy gets poison and the next 2 are reflected.