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.
This commit is contained in:
Gary Tierney
2015-12-24 05:02:54 +00:00
parent 348e5cc8dc
commit c9592c38df
7 changed files with 101 additions and 48 deletions
+8 -7
View File
@@ -1,17 +1,18 @@
SCIMITAR_WIDGET_ID = 81
SCIMITAR_SPECIAL_BAR_ID = 21
SCIMITAR_WIDGET_ID = 81
SCIMITAR_SPECIAL_BAR_CONFIG_ID = 21
SCIMITAR_SPECIAL_BAR_BUTTON_ID = 21
create_weapon_class :scimitar, widget: SCIMITAR_WIDGET_ID do
default_speed 4
special_bar SCIMITAR_SPECIAL_BAR_ID
special_bar SCIMITAR_SPECIAL_BAR_CONFIG_ID, SCIMITAR_SPECIAL_BAR_BUTTON_ID
attack_bonuses crush: -2
defence_bonuses slash: -1
add_style :accurate, attack_type: :slash, animation: 390
add_style :aggressive, attack_type: :slash, animation: 390
add_style :alt_aggressive, attack_type: :stab, animation: 391
add_style :defensive, attack_type: :slash, animation: 390
add_style :accurate, attack_type: :slash, animation: 390, button: 2
add_style :aggressive, attack_type: :slash, animation: 390, button: 3
add_style :alt_aggressive, attack_type: :stab, animation: 391, button: 4
add_style :defensive, attack_type: :slash, animation: 390, button: 5
end
create_weapon :iron_scimitar do