User Tools

Site Tools


mr:chaos_bow_item

Chaos Bow Item - Code References

Lua Scripts

  • ChaosBow.lua - Main chaos bow implementation (migrated from Java Nov 2026)
  • weapon.lua - Shared weapon library with chaos mechanics (chaosState, chaosChargeForLevel, chaosOwnerTakesDamage, chaosOwnerDoesDamage, chaosSelectImage)
  • commonClasses.lua - RPD wrapper for Java interop

Java Classes

JSON Configuration

This entity is implemented via Lua script, no JSON configuration exists

String Resources

<string name="ChaosBow_Name">chaos bow</string>
<string name="ChaosBow_Info">A dreadful Bow filled with the power of Chaos. Each arrow it shoots will carry piece of chaos energy within it. But if you miss...</string>
<string name="ChaosBow_Gender">masculine</string>

Code Details

  • Image: `items/chaosBow.png` (image index 0, 5 variants based on level)
  • Tier: 3
  • Accuracy: 1.0
  • Delay: 1.0
  • Damage factor: 1 + 0.30 * level
  • Upgradable: False (manual upgrades disabled)
  • Charge mechanic: Accumulates charge on hit (factor 5), loses 1 charge on taking damage
  • Level threshold: Charge required = floor(5 × level^1.5)
  • Degradation: At level > 5 and charge == 0, item degrades and loses enchantment
  • Visual states: 5 image variants based on level (floor(level/3), capped at 4)
  • Chaos Mark: On miss, creates chaos mark at user position with intensity = charge + 3*level
  • Save/Load: Uses serpent serialization for charge data
mr/chaos_bow_item.txt · Last modified: by 127.0.0.1