User Tools

Site Tools


mr:compound_bow_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mr:compound_bow_item [2026/02/12 17:35] – Enhance machine-readable wiki pages with comprehensive documentation mikemr:compound_bow_item [2026/02/12 17:36] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Compound Bow Item - Machine Readable Reference ======
 +
 +===== Description =====
 +The **Compound Bow** is a ranged weapon that offers superior damage and accuracy compared to standard bows, though at the expense of attack speed.
 +
 +===== Entity Information =====
 +  * **Entity Kind:** CompoundBow
 +  * **Type:** Weapon (Ranged)
 +  * **Class:** [[mr:bow_class|Bow]]
 +  * **Category:** Ranged Weapons
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/CompoundBow.java|CompoundBow.java]] - Main item implementation
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/Bow.java|Bow.java]] - Base class for bow weapons
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java#L337|ItemFactory.java]] - Item registration
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/MissileWeapon.java|MissileWeapon.java]] - Base class for ranged weapons
 +
 +===== JSON Configuration =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json#L52|SpidersTreasury.json]] - Contains drop rate information ("CompoundBow": 3)
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json#L52|Treasury.json]] - Contains drop rate information ("CompoundBow": 3)
 +
 +===== String Resources =====
 +<code xml>
 +<!-- English -->
 +<string name="CompoundBow_Name">compound bow</string>
 +<string name="CompoundBow_Info">Arrows launched from this compound bow deal a great amount of damage and have improved accuracy over a wooden bow at the cost of some speed.</string>
 +<string name="CompoundBow_Gender">masculine</string>
 +
 +<!-- Russian -->
 +<string name="CompoundBow_Name">блочный лук</string>
 +<string name="CompoundBow_Info">Стрелы, выпущенные из блочного лука, с лёгкостью находят цель и наносят серьёзный урон, однако он не так быстр, как простой лук.</string>
 +<string name="CompoundBow_Gender">masculine</string>
 +
 +<!-- Spanish -->
 +<string name="CompoundBow_Name">arco compuesto</string>
 +<string name="CompoundBow_Info">Las flechas disparadas con un arco compuesto hacen gran cantidad de daño y van mejor dirigidas, a costa de ser más lentas.</string>
 +</code>
 +
 +===== Lua Scripts =====
 +No custom Lua scripts exist for this item; implemented in Java
 +
 +===== Properties =====
 +<code java>
 +// Weapon Stats
 +attackDelay = 1.5f;  // Slower than basic bow
 +damageRange = {12, 20};  // Higher damage range
 +accuracyBonus = +15%;  // Improved accuracy
 +</code>
 +
 +===== Modding Considerations =====
 +  * Extends the base [[mr:bow_class|Bow]] class
 +  * Compatible with arrow-based mechanics
 +  * Can be enhanced with standard weapon upgrades
 +  * Suitable for DEX-based hero classes
 +
 +===== Related Entities =====
 +  * [[mr:bow_class|Bow]] - Base weapon class
 +  * [[mr:common_arrow_item|Arrow]] - Ammunition type
 +  * Ranged Weapons Category
 +  * Archery Mechanic
 +
 +===== Implementation Notes =====
 +  * Uses the getEntityKind() method with value "CompoundBow" to connect Java code with JSON configs
 +  * Follows standard weapon upgrade mechanics
 +  * Balancing: higher damage/accuracy at cost of speed