Table of Contents

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

Java Classes

JSON Configuration

String Resources

<!-- English -->
<string name="Bow_Info1">This bow requires arrows to be used.</string>
<string name="KindOfBow_SelectArrowKind">Select arrow kind</string>
 
<!-- Russian -->
<string name="Bow_Info1">Этот лук требует стрел для использования.</string>
<string name="KindOfBow_SelectArrowKind">Выберите вид стрел</string>

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

Modding Considerations

Implementation Notes