mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
Add more documentation and fix rubocop warnings
This commit is contained in:
@@ -29,9 +29,9 @@ create_weapon_class :dragon_dagger, widget: DAGGER_WIDGET_ID do
|
||||
style :defensive, button: 5
|
||||
end
|
||||
|
||||
create_weapon /(?:drag|dragon) dagger.*/, :dragon_dagger do
|
||||
create_weapon(/(?:drag|dragon) dagger.*/, :dragon_dagger) do
|
||||
set_special_attack speed: 4, energy_requirement: 25, animation: 1062, graphic: { id: 252, height: 100 } do
|
||||
damage!
|
||||
damage!
|
||||
damage! secondary: true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -25,7 +25,7 @@ create_weapon :steel_scimitar do
|
||||
other_bonuses melee_strength: 14
|
||||
end
|
||||
|
||||
create_weapon /(black|white) scimitar/ do
|
||||
create_weapon(/(black|white) scimitar/) do
|
||||
attack_bonuses stab: 4, slash: 19
|
||||
other_bonuses melee_strength: 14
|
||||
end
|
||||
|
||||
@@ -6,7 +6,8 @@ create_weapon_class :two_handed_sword, widget: TWO_HANDED_SWORD_WIDGET_ID do
|
||||
defaults speed: 7, animation: 7041, attack_type: :slash
|
||||
special_bar TWO_HANDED_SWORD_SPECIAL_CONFIG_ID, TWO_HANDED_SWORD_SPECIAL_BUTTON_ID
|
||||
|
||||
animations stand: 7047, walk: 7046, run: 7039, idle_turn: 7044, turn_around: 7044, turn_left: 7043, turn_right: 7044
|
||||
animations stand: 7047, walk: 7046, run: 7039, idle_turn: 7044, turn_around: 7044,
|
||||
turn_left: 7043, turn_right: 7044
|
||||
|
||||
attack_bonuses stab: -4, magic: -4
|
||||
defence_bonuses range: -1
|
||||
@@ -27,7 +28,7 @@ create_weapon :steel_2h_sword do
|
||||
other_bonuses melee_strength: 22
|
||||
end
|
||||
|
||||
create_weapon /(?:black|white) 2h sword/ do
|
||||
create_weapon(/(?:black|white) 2h sword/) do
|
||||
attack_bonuses slash: 27, crush: 21
|
||||
other_bonuses melee_strength: 26
|
||||
end
|
||||
|
||||
@@ -8,4 +8,4 @@ create_weapon_class :crossbow, widget: CROSSBOW_WIDGET_ID, type: :ranged do
|
||||
style :long_range, range: 9, button: 4
|
||||
end
|
||||
|
||||
create_weapon /rune c'bow/, :crossbow
|
||||
create_weapon(/rune c'bow/, :crossbow)
|
||||
|
||||
Reference in New Issue
Block a user