Files
apollo/data/plugins/combat/weapons/melee/scimitars.rb
T
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

52 lines
1.3 KiB
Ruby

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
defaults speed: 4, animation: 390, attack_type: :slash
special_bar SCIMITAR_SPECIAL_BAR_CONFIG_ID, SCIMITAR_SPECIAL_BAR_BUTTON_ID
attack_bonuses crush: -2
defence_bonuses slash: -1
style :accurate, button: 2
style :aggressive, button: 3
style :alt_aggressive, attack_type: :stab, animation: 391, button: 4
style :defensive, button: 5
end
create_weapon :iron_scimitar do
attack_bonuses stab: 2, slash: 10
other_bonuses melee_strength: 9
end
create_weapon :steel_scimitar do
attack_bonuses stab: 3, slash: 15
other_bonuses melee_strength: 14
end
create_weapon /(black|white) scimitar/ do
attack_bonuses stab: 4, slash: 19
other_bonuses melee_strength: 14
end
create_weapon :mithril_scimitar do
attack_bonuses stab: 5, slash: 21
other_bonuses melee_strength: 20
end
create_weapon :adamant_scimitar do
attack_bonuses stab: 6, slash: 29
other_bonuses melee_strength: 28
end
create_weapon :rune_scimitar do
attack_bonuses stab: 7, slash: 45
other_bonuses melee_strength: 44
end
create_weapon :dragon_scimitar do
attack_bonuses stab: 8, slash: 67
other_bonuses melee_strength: 66
end