Refactor Direction to enum class and simplify functions working with it, should fix #327
Move all the Random stuff to namespace random and to Misc component
Make melee attack apply damage not at the start but on some animation frame, currently the middle of animation (placeholder)
Implement shift+attack
Add some incomplete formulas for player attack, full of placeholders for now.
Implement some basic mechanism for summing up stats from equipped items, for now only applies to damage but should be easily expandable.
So overall it should not change anything much but rather serve as a groundwork for the future changes. I just wanted a mechanism for items to have at least some effect on the game before starting to implement item generation.
Changes:
Direction
toenum class
and simplify functions working with it, should fix #327Random
stuff to namespace random and toMisc
componentSo overall it should not change anything much but rather serve as a groundwork for the future changes. I just wanted a mechanism for items to have at least some effect on the game before starting to implement item generation.