mr:compound_bow_item
Table of Contents
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: Bow
- Category: Ranged Weapons
Java Classes
- CompoundBow.java - Main item implementation
- Bow.java - Base class for bow weapons
- ItemFactory.java - Item registration
- MissileWeapon.java - Base class for ranged weapons
JSON Configuration
- SpidersTreasury.json - Contains drop rate information (“CompoundBow”: 3)
- Treasury.json - Contains drop rate information (“CompoundBow”: 3)
String Resources
<!-- 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>
Lua Scripts
No custom Lua scripts exist for this item; implemented in Java
Properties
// Weapon Stats (from CompoundBow.java constructor) tier = 3; ACU = 0.8f; // Base accuracy DLY = 1.5f; // Attack delay (slower than basic bow) // Damage calculation (via Arrow.dmgFactor): // dmgFactor() = 1 + level() * 0.5 // With Common Arrow (baseMin=2, baseMax=5): // Level 0: MIN=2, MAX=5 // Level 1: MIN=3, MAX=7 // Level 2: MIN=4, MAX=10 // Level 3: MIN=5, MAX=12 // Accuracy calculation (via Arrow.acuFactor): // acuFactor() = 1 (inherited from KindOfBow) // Arrow ACU = baseAcu * acuFactor() = 1 * 1 = 1 // Bow ACU for hero attacks = 0.8f
Modding Considerations
- Extends the base Bow class
- Compatible with arrow-based mechanics
- Can be enhanced with standard weapon upgrades
- Suitable for DEX-based hero classes
Related Entities
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
mr/compound_bow_item.txt · Last modified: by 127.0.0.1
