Files
apollo/data/plugins/combat/equipment.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

19 lines
320 B
Ruby

java_import 'org.apollo.cache.def.EquipmentDefinition'
EQUIPMENT = {}
def create_equipment(item, &block)
equipment = Equipment.new
equipment.instance_eval block
find_entities :item, item do |_equipment_item|
EQUIPMENT[id] = equipment
end
end
private
class Equipment
include Combat::BonusContainer
end