#============================================================================
# BlizzABS::Weapons
#----------------------------------------------------------------------------
# This module provides weapon configurations.
#============================================================================
module Weapons
#--------------------------------------------------------------------------
# type
# id - weapon ID
# This method serves as database for weapon types.
# 0 = sword / axe / claws / unarmed / etc. (damages in close front)
# 1 = spear / lance (damages only in front)
# 2 = flail (distant weapon, does not damage close enemies, front)
# 3 = boomerang (returning projectile weapon, front)
# 4 = bow and arrows / gun / shuriken (non-returning projectile, NO consumption)
# 5 = bow and arrows / gun (non-returning projectile, consumes AMMUNITION)
# 6 = shuriken (non-returning projectile, consumes ITSELF)
#--------------------------------------------------------------------------
def self.type(id)
case id
# START set up weapon types (when ID then return TYPE)
when 1 then return 0
# END
end
return 0
end
#--------------------------------------------------------------------------
# range
# id - weapon ID
# This method serves as database for weapon ranges. All ranges are
# measured in map squares. Any decimal value WILL have its effect if
# pixel movement is being used.
#--------------------------------------------------------------------------
def self.range(id)
case id
# START set up weapon ranges (when ID then return RANGE)
when 1 then return 1.5
# END
end
return 1.5
end
#--------------------------------------------------------------------------
# consume
# id - weapon ID
# Lets your weapons consume items to work. You must have the item assigned
# as your hot item for the weapon to work. One weapon can consumes
# different items. If you don't have any items left, the attack will fail.
# Allies' items for usage can be set up directly or over the AI menu.
#--------------------------------------------------------------------------
def self.consume(id)
case id
# START set up ammo consumption (when ID then return ID_ARRAY)
when 1 then return []
# END
end
return []
end
end