Fire Arrow Item - Code References
Entity Kind
Java Classes
Item Factory Registration
JSON Configuration
(No specific JSON config for this item)
String Resources
<string name="FireArrow_Name">fire arrow</string>
<string name="FireArrow_Info">This arrow looks just like a normal one, other than a warm red light radiating from its head.</string>
<string name="FireArrow_Gender">feminine</string>
Lua Scripts
(No specific Lua script for this item)
Code Implementation
This item inherits from Arrow class. It has the following key properties:
baseMin: 1 (minimum damage)
baseMax: 6 (maximum damage)
baseDly: 0.75 (base delay)
image: FIRE_ARROW_IMAGE (arrow sprite)
price(): quantity() * 5 (costs 5 gold per arrow)
attackProc(): Applies Burning effect with “reignite” method when hitting an enemy
Burning Effect Mechanics
When a Fire Arrow hits an enemy:
Buff.affect(defender, Burning.class).reignite(defender)
This applies the Burning status effect to the target
Burning causes damage over time to the affected character