Package horizons :: Package world :: Package units :: Module weapon
[hide private]
[frames] | no frames]

Module weapon

source code

Classes [hide private]
  Weapon
Generic Weapon class it has the modifiers: damage - damage dealt in hp weapon_range - tuple with minimum and maximum attack range cooldown_time - number of seconds until the attack is ready again attack_speed - speed that calculates the time until attack reaches target attack_radius - radius affected by attack
  SetStackableWeaponNumberError
Raised when setting the number of weapons for a stackable weapon fails
  StackableWeapon
Stackable Weapon class A generic Weapon that can have a number of weapons binded per instance It deals the number of weapons times weapon's default damage This is used for cannons, reducing the number of instances and bullets fired