Add more documentation and fix rubocop warnings

This commit is contained in:
Gary Tierney
2016-01-29 22:42:03 +00:00
parent a7b4036deb
commit 8e0b84a470
17 changed files with 77 additions and 80 deletions
+2 -2
View File
@@ -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)