wheybags / freeablo

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

Add animations for casting spells and fire arrows for ranged weapons #474

Closed grantramsay closed 4 years ago

grantramsay commented 4 years ago

Added RangedAttackState and SpellAttackState classes (similar to MeleeAttackState) and a common ABC. Added other minor bits to enable spell casting animations and firing arrows. Renamed "AttackDirection" input to "ForceAttack" and changed its data to a target point instead of a direction (as ranged/bow attacks require this information). This probably almost closes #46 (Bows) too

grantramsay commented 4 years ago

That bug was to do with dragging mouse while shift key is down, should be fixed now Also changed shift key priority to be higher then target actor/item click

Edit: Another bug I noticed with rouge/sorcerer is their mana isn't full. I think this is down to the player statistic calculations being done after their initial mana has been set

wheybags commented 4 years ago

Nice, thanks!

Edit: Fixed the bug with mana too, thanks!