User Tools

Site Tools


mr:tomahawk2_item

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
mr:tomahawk2_item [2025/12/31 01:34] – Update mr: namespace page for Tomahawk2 with complete information from Lua script mikemr:tomahawk2_item [2025/12/31 01:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Tomahawk2 Item - Code References ======
 +
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/Tamahawk.java|Tamahawk.java]] - Standard Tomahawk implementation
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/GnollTamahawk.java|GnollTamahawk.java]] - Gnoll-specific variant
 +
 +===== Lua Script Implementation =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/Tomahawk2.lua|Tomahawk2.lua]] - Lua script implementation
 +
 +===== JSON Configuration =====
 +No specific JSON configuration for this item found.
 +
 +===== String Resources =====
 +  * Uses generic name reference "Tomahawk_name" (no direct string resource)
 +  * Uses generic info reference "Tomahawk_desc" (no direct string resource)
 +  * Falls back to standard tomahawk strings if needed:
 +<code xml>
 +<string name="Tamahawk_Name">tomahawk</string>
 +<string name="Tamahawk_Info">While this throwing axe is not that heavy, yet still it requires significant strength to be used effectively.</string>
 +</code>
 +
 +===== Additional Information =====
 +  * Entity Kind: "Tomahawk2" (registered in ItemFactory from Lua filename)
 +  * Sprite: Uses sprites from gnoll_tomahawks.png sprite sheet
 +  * Equipment slot: "left_hand"
 +  * Price: 20 gold
 +  * Created via Lua scripting system: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java|ItemFactory.java]] automatically registers all Lua scripts in scripts/items/ directory