User Tools

Site Tools


rpd:item_action_interface

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
rpd:item_action_interface [2025/12/28 10:40] – Rename item_action_buff.txt to item_action_interface.txt and update content to accurately reflect interface, not a buff mikerpd:item_action_interface [2025/12/28 10:45] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Item Action ======
  
 +==== Description ====
 +ItemAction is not a buff but an interface in the game code that defines actions that can be performed with items. The interface is used in specific scenarios where items need to perform special actions when carried by a character. Two implementations exist: burnItem used by Burning buff and freezeItem used by Frost buff to affect items carried by the player.
 +
 +==== Code Reference ====
 +  * Interface: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/ItemAction.java|ItemAction.java]]
 +  * Usage in Burning buff: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Burning.java#L33|Burning.java - burnItem]]
 +  * Usage in Frost buff: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Frost.java#L19|Frost.java - freezeItem]]
 +
 +==== Related ====
 +  * [[rpd:items|Items]] - The core game element that can be affected by this interface
 +  * [[rpd:inventory|Inventory]] - Where items are stored and managed
 +  * [[rpd:burning_buff|Burning Buff]] - Applies special actions to carried items
 +  * [[rpd:frost_buff|Frost Buff]] - Applies special actions to carried items
 +  * [[rpd:hero|Hero]] - The character carrying items that may be affected
 +
 +{{tag> rpd code interface items}}