jjWEAPON class
Settings for a weapon type.
Holds the tunable parameters of one of the game's weapon slots: ammo limits and multipliers, firing style and spread, what the weapon is replaced by (shield, bubbles) and where its ammo comes from (crates, birds), and whether it and its powered-up form are allowed. Indexed by weapon type and edited from script.
Public variables
- bool infinite
- Whether the weapon has infinite ammo.
- bool replenishes
- Whether the weapon's ammo replenishes over time.
- bool replacedByShield
- Whether the weapon is replaced by a shield pickup.
- bool replacedByBubbles
- Whether the weapon is replaced by bubbles underwater.
- bool comesFromGunCrates
- Whether ammo for the weapon comes from gun crates.
- bool gradualAim
- Whether the weapon aims gradually.
- int multiplier
- Ammo multiplier applied to pickups.
- int maximum
- Maximum ammo the player can carry.
- int gemsLost
- Gems lost when firing the weapon.
- int gemsLostPowerup
- Gems lost when firing the powered-up weapon.
-
std::
int8_t style - Firing style of the weapon.
- int spread
- Spread pattern of the weapon's bullets.
- bool defaultSample
- Whether the weapon uses its default firing sound.
- bool allowed
- Whether the weapon is allowed.
- bool allowedPowerup
- Whether the powered-up weapon is allowed.
- bool comesFromBirds
- Whether ammo for the weapon comes from birds.
- bool comesFromBirdsPowerup
- Whether ammo for the powered-up weapon comes from birds.