mr:javelin_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:javelin_item [2026/04/06 08:20] – Fix wiki page issues: broken links, enhance mr: javelin page Qwen Assistant | mr:javelin_item [2026/04/06 08:25] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Javelin Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity does not use JSON configuration (implemented in Java) | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | * Entity Kind: javelin | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | * **Class**: `com.watabou.pixeldungeon.items.weapon.missiles.Javelin` | ||
| + | * **Extends**: | ||
| + | * **Package**: | ||
| + | * **Implementation Type**: Pure Java (no Lua/JSON) | ||
| + | |||
| + | ===== Constructor ===== | ||
| + | * Default constructor: | ||
| + | * Parameterized constructor: | ||
| + | * Sets image: `ItemSpriteSheet.JAVELIN` | ||
| + | * Sets strength requirement: | ||
| + | * Sets damage range: `MIN = 2`, `MAX = 15` | ||
| + | |||
| + | ===== Stats ===== | ||
| + | * Base Damage: 2-15 (MIN: 2, MAX: 15) | ||
| + | * Strength Required: 15 (setSTR: 15) | ||
| + | * Stackable: Yes, typically 5-15 quantity (Random.Int(5, | ||
| + | * Price: 15 gold per item (15 * quantity()) | ||
| + | |||
| + | ===== Special Abilities ===== | ||
| + | * Attack Proc: Applies Cripple status effect for Cripple.DURATION turns | ||
| + | * Method: `attackProc(Char attacker, Char defender, int damage)` | ||
| + | * Effect: `Buff.prolong(defender, | ||
| + | |||
| + | ===== Random Generation ===== | ||
| + | * Method: `random()` | ||
| + | * Quantity: Random between 5-15 javelins | ||
| + | * Returns: Modified item instance | ||
| + | |||
| + | ===== Price Calculation ===== | ||
| + | * Method: `price()` | ||
| + | * Formula: 15 * quantity() | ||
| + | * Example: Stack of 10 javelins = 150 gold | ||
| + | |||
| + | ===== Code References ===== | ||
| + | * Full Implementation: | ||
| + | * Sprite Definition: [[https:// | ||
| + | * String Resources: [[https:// | ||
mr/javelin_item.txt · Last modified: (external edit)
