mr:composite_crossbow_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:composite_crossbow_item [2026/01/08 16:48] – Fix wiki pages based on documentation standards - Corrected scroll_of_fire_item.txt to note that the item doesn't exist in current game - Updated composite_crossbow_item.txt with actual implementation details mike | mr:composite_crossbow_item [2026/01/08 16:54] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Composite Crossbow Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | Actual implementation found in: | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.items.guts.weapon.ranged; | ||
| + | |||
| + | public class CompositeCrossbow extends Crossbow { | ||
| + | |||
| + | public CompositeCrossbow() { | ||
| + | super(4, 1.1f, 1.6f); // tier, min damage factor, max damage factor | ||
| + | image = 3; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public double acuFactor() { // Accuracy factor | ||
| + | return 1 + level() * 0.5; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public double dmgFactor() { // Damage factor | ||
| + | return 1 + level() * 0.75; | ||
| + | } | ||
| + | |||
| + | public double dlyFactor() { // Delay factor (speed) | ||
| + | return 1.1; | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Notes ===== | ||
| + | * Inherits from Crossbow class | ||
| + | * Tier 4 ranged weapon | ||
| + | * Damage factors: 1.1 (min) to 1.6 (max) | ||
| + | * Accuracy improves with level: 1 + level * 0.5 | ||
| + | * Damage improves with level: 1 + level * 0.75 | ||
| + | * Delay factor is 1.1 (making it slightly slower than base speed) | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | None found - implemented purely in Java | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
mr/composite_crossbow_item.txt · Last modified: by 127.0.0.1
