mr:fire_arrow_item
Table of Contents
Fire Arrow Item - Code References
Entity Kind
fire_arrow
Java Classes
- FireArrow.java - Main implementation class
- Arrow.java - Base class
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
mr/fire_arrow_item.txt · Last modified: by 127.0.0.1
