User Tools

Site Tools


mr:composite_crossbow_item

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 mikemr: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://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/guts/weapon/ranged/CompositeCrossbow.java|RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/guts/weapon/ranged/CompositeCrossbow.java]]
 +
 +===== 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;
 + }
 +}
 +</code>
 +
 +===== 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="CompositeCrossbow_Name">Composite Crossbow</string>
 +<string name="CompositeCrossbow_Info">A high-tech crossbow with enhanced accuracy and power.</string>
 +</code>
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
  
mr/composite_crossbow_item.txt · Last modified: by 127.0.0.1