====== Bow Class - Machine Readable Reference ====== ===== Description ===== The **Bow** abstract class (`com.nyrds.pixeldungeon.items.guts.weapon.ranged.Bow`) serves as the base class for all bow weapons in the guts package. It extends `KindOfBow` and provides a common constructor for bow tiers, accuracy, and delay. ===== Entity Information ===== * **Entity Kind:** Bow (abstract class) * **Type:** Weapon Base Class (Ranged) * **Package:** com.nyrds.pixeldungeon.items.guts.weapon.ranged * **Category:** Ranged Weapons Base ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/guts/weapon/ranged/Bow.java|Bow.java]] - Abstract base class for guts bows * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/KindOfBow.java|KindOfBow.java]] - Parent class (base bow implementation) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/MeleeWeapon.java|MeleeWeapon.java]] - Grandparent class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/MissileWeapon.java|MissileWeapon.java]] - Related ranged weapon base ===== JSON Configuration ===== * No direct JSON configuration for this abstract class; concrete bows (CompoundBow, WoodenBow, RubyBow, etc.) are configured in their respective classes * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json|SpidersTreasury.json]] - Contains drop rates for concrete bows * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json|Treasury.json]] - Contains drop rates for concrete bows ===== String Resources ===== This bow requires arrows to be used. Select arrow kind Этот лук требует стрел для использования. Выберите вид стрел ===== Properties ===== // Bow.java constructor public Bow(int tier, float acu, float dly) { super(tier, acu, dly); animation_class = BOW_ATTACK; } // Inherited from KindOfBow: // tier - Weapon tier (affects damage, STR requirement) // acu - Base accuracy (e.g., 0.8f for Compound Bow) // dly - Base attack delay (e.g., 1.5f for Compound Bow) // arrowType - Type of arrow used (default: "Arrow") // acuFactor() - Accuracy multiplier (default: 1) // dmgFactor() - Damage multiplier (default: 1, overridden by subclasses) // dlyFactor() - Delay multiplier (default: 1, overridden by subclasses) ===== Concrete Implementations ===== * [[mr:compound_bow_item|Compound Bow]] - Tier 3, ACU 0.8, DLY 1.5, improved accuracy/damage * [[mr:wooden_bow_item|Wooden Bow]] - Base bow implementation * [[mr:ruby_bow_item|Ruby Bow]] - Fire-themed bow * [[mr:chaos_bow_item|Chaos Bow]] - Chaos-themed bow * [[mr:elven_bow_item|Elven Bow]] - Elf starting weapon * [[mr:crossbow_item|Crossbow]] - Crossbow variant ===== Modding Considerations ===== * Extend this class for custom bow types in the guts package * Override `acuFactor()`, `dmgFactor()`, `dlyFactor()` for custom scaling * Compatible with standard arrow mechanics * Uses `BOW_ATTACK` animation class * Requires arrows to function (handled by KindOfBow) ===== Related Entities ===== * [[mr:kindofbow_class|KindOfBow]] - Parent class with arrow management * [[mr:meleeweapon_class|MeleeWeapon]] - Grandparent class with tier-based damage * [[mr:arrow_class|Arrow]] - Ammunition base class * [[mr:compound_bow_item|Compound Bow]] - Concrete implementation * Ranged Weapons Category ===== Implementation Notes ===== * Abstract class - cannot be instantiated directly * Provides guts-package alternative to standard bow hierarchy * Sets animation_class to BOW_ATTACK for proper rendering * Delegates arrow selection/management to KindOfBow * Damage calculation follows MeleeWeapon tier formula modified by dmgFactor()