Commit Graph

12 Commits

Author SHA1 Message Date
Gary Tierney c32d19ac08 Update the combat plugin definition file 2016-02-29 22:21:51 +00:00
Gary Tierney 17e8d02886 Move next_attack logic to CombatState
* Moves the decision of what attack is used next to CombatState and
  defers selecting the attack until the player is actually ready to hit
  their target for damage.

* Adds a distance check so combat is only initiated within the correct
  range. If the player isn't close enough to their target, they will run
  towards it and check every tick if they're close enough to make an
  attack.
2016-02-29 22:21:21 +00:00
Gary Tierney 064f22d2e0 Fix the default return value for equipped_weapon 2016-02-29 22:21:12 +00:00
Gary Tierney e5a2533a30 Remove attribute decls from incorrect namespace 2016-02-29 22:21:05 +00:00
Gary Tierney 04df65be4c Move AttackRequirement to separate source unit 2016-02-29 22:20:49 +00:00
Gary Tierney 5686a1dcd6 Add support for combat related UI
* Allows switching between different combat styles, and updates the
  combat tabs styles for every equipped weapon. If a weapon with a
  special attack is equipped, the special bar for that interface will be
  shown.

* Adds a scheduled task which periodically restores special energy to
  the player and updates their special bar.
2016-02-29 21:35:55 +00:00
Gary Tierney c9592c38df Complete special attacks; Fix WeaponClass issues
* Adds a button property to a WeaponClasses styles, which maps a combat
  style to the button that was pressed in the combat tab.

* Adds full support for special attacks, with their config IDs and
  buttons.

* Adds the DDS special attack, along with the D2H special attack as some
  starting examples.

* Rename the "no_weapon" Weapon to "unarmed", so it shows up better in
  the UI.
2016-02-29 21:35:36 +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
atomicint 4a1c82da52 Let area listeners have access to the updated position from the MobPositionUpdateEvent
Fix issue #169
2016-02-08 17:44:25 -05:00
WizardJesse1 e1981be0db Update wilderness.rb
When you entered the wilderness it would start at level 0
2015-12-29 17:27:30 -05:00
Major- 8f3fd75b33 Update all plugins to conform to Rubocop. 2015-08-27 18:17:58 +01:00
Ryley Kimmel 556253abb2 Move wilderness plguin to combat package, remove explicit return and fix typo. 2015-03-04 03:07:55 -05:00