wheybags / freeablo

[ARCHIVED] Modern reimplementation of the Diablo 1 game engine
GNU General Public License v3.0
2.16k stars 193 forks source link

Make equipped weapon affect damage in some way. #348

Closed Predelnik closed 6 years ago

Predelnik commented 6 years ago

Changes:

  1. Refactor Direction to enum class and simplify functions working with it, should fix #327
  2. Move all the Random stuff to namespace random and to Misc component
  3. Make melee attack apply damage not at the start but on some animation frame, currently the middle of animation (placeholder)
  4. Implement shift+attack
  5. Add some incomplete formulas for player attack, full of placeholders for now.
  6. 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.