====== 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}}