User Tools

Site Tools


rpd:tomahawk2_item

Differences

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

Link to this comparison view

rpd:tomahawk2_item [2025/12/31 01:34] – Add Tomahawk2 item page with Lua script implementation details mikerpd:tomahawk2_item [2025/12/31 01:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Tomahawk2 Item ======
  
 +{{ rpd:images:item_Tomahawk2.png|Tomahawk2 }}
 +
 +**Tomahawk2** is a custom throwing weapon implemented via Lua script in Remixed Dungeon. It's a unique variant that appears to be related to gnoll-themed items based on its sprite and configuration.
 +
 +==== Item Properties ====
 +  * **Type**: Throwing weapon (missile)
 +  * **Sprite**: Uses images from gnoll_tomahawks.png sprite sheet
 +  * **Name Reference**: Uses "Tomahawk_name" string reference (likely falls back to default)
 +  * **Info Reference**: Uses "Tomahawk_desc" string reference (likely falls back to default)
 +  * **Price**: 20 gold per item
 +  * **Equipable**: Can be equipped in left hand
 +
 +==== Description ====
 +The Tomahawk2 item is implemented as a Lua script (Tomahawk2.lua) and represents a special variant of tomahawk-style weapons. Based on its Lua implementation, it uses gnoll-themed sprites and follows the naming convention of other tomahawk variants in the game.
 +
 +==== Implementation ====
 +This item is implemented through the Lua script system in Remixed Dungeon, demonstrating the moddability of the game. The script defines:
 +
 +  * Uses sprites from the gnoll_tomahawks.png sprite sheet
 +  * Implements a unique name and description system
 +  * Uses "left_hand" equipment slot
 +  * Has a default price of 20 gold
 +
 +==== Code References ====
 +  * **Lua Implementation**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/items/Tomahawk2.lua|Tomahawk2.lua]]
 +  * **Sprite Sheet**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/items/gnoll_tomahawks.png|gnoll_tomahawks.png]]
 +  * **Related Items**:
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/Tamahawk.java|Tamahawk.java]] - Base 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
 +  * **String Resources**:
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L1170-L1172|Tamahawk_Name, Tamahawk_Info]] - Default tomahawk strings
 +    * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L2165-L2167|GnollTamahawk strings]] - Gnoll variant strings
 +
 +==== Related ====
 +  * [[rpd:tomahawk_item|Tomahawk]] - Standard Tomahawk throwing weapon
 +  * [[rpd:gnoll_tomahawk_item|Gnoll Tomahawk]] - Gnoll class-specific variant
 +  * [[rpd:throwing_weapons|Throwing Weapons]] - Other ranged missile weapons
 +  * [[rpd:missile_weapons|Missile Weapons]] - General category of throwing items
 +  * [[rpd:lua_modding|Lua Modding]] - Information about Lua-based item creation
 +
 +{{tag> rpd items weapons throwing missile tomahawk lua custom}}