mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 08:39:27 +00:00
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.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
create_weapon_class :no_weapon, widget: 92 do
|
||||
default_speed 4
|
||||
defaults speed: 4, animation: 422
|
||||
|
||||
add_style :accurate, animation: 422, block_animation: 424
|
||||
add_style :aggressive, animation: 423, block_animation: 424
|
||||
add_style :defensive, animation: 422, block_animation: 424
|
||||
style :accurate, button: 2
|
||||
style :aggressive, animation: 423, button: 3
|
||||
style :defensive, button: 4
|
||||
end
|
||||
|
||||
create_weapon :unarmed, :no_weapon, named: true do
|
||||
# Todo factor out empty blocks
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user