Commit Graph

7 Commits

Author SHA1 Message Date
Gary Tierney 8e0b84a470 Add more documentation and fix rubocop warnings 2016-03-16 22:42:24 +00:00
Gary Tierney a7b4036deb Add Attack / AttackRequirement docs 2016-03-16 22:42:14 +00:00
Steve Soltys 682e48bdc8 Add AttackRequirementDSL and small changes to CombatSpellDSL 2016-03-16 22:41:51 +00:00
Steve Soltys ec248a185b Add initial combat spell support 2016-03-16 22:41:20 +00:00
Gary Tierney 9f47fae6a9 Fix combat not working after logout; Fix DDS hits
* Removes the use of the MOB_STATE_CACHE and instead monkey patches a
  get_combat_state method onto Mob.
2016-03-16 22:39:33 +00:00
Gary Tierney 3082fade1d Add ranged combat support
* Clean up the CombatAction and Attack code to make it easier to use for
  range.

* Add collision detection to the distance checks before attacking in the
  CombatAction.

* Create a Ruby DSL for defining projectile types and fix the
  ProjectileUpdateOperation so it uses the correct position offset.

* Fix the packet structure of the HintIconMessageEncoder.
2016-02-29 22:24:26 +00:00
Gary Tierney 348e5cc8dc Build a framework for a maintainable combat plugin
* Uses a hierarchy of WeaponClasses -> Weapons for performing attacks,
  with WeaponClass having a set of styles and associated Attacks for
  those styles. Weapons and their classes are built with an easy to use
  and clean DSL.

* Adds a BonusContainer mixin, so that Equipment, Weapons, and
  WeaponClasses can all have their own set of bonuses which apply to the
  player.

* Allows attacks to be queued to the Mobs CombatState instance from
  external code, allowing e.g., NPCs or auto-cast to queue attacks to be
  executed.
2016-02-29 21:27:17 +00:00