====== Barrel ====== {{ rpd:images:barrel_level_object.png|Barrel }} ==== Description ==== Barrels are environmental objects found throughout the dungeon. They are wooden containers that can be pushed by the player. When ignited or impacted, they explode and create a pool of fire in the surrounding area. ==== Properties ==== * **Flammable**: Barrels can catch fire and explode * **Pushable**: Can be moved by the player and some NPCs * **Destructible**: Destroyed when ignited or impacted * **Explosive**: Creates fire in adjacent cells when destroyed ==== Effects ==== When a barrel is ignited or impacted: * The barrel is destroyed * An explosion occurs at the location * Fire spreads to adjacent cells (8-directional) * Damage is dealt to characters in the area ==== Strategy ==== * Barrels can be used strategically to create fire barriers * They're effective against groups of enemies when ignited * Can be pushed to block passages or create pathways * During Halloween events, some barrels transform into pumpkins with similar properties but increased danger ==== Code References ==== * **Java Class**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/levels/objects/Barrel.java|Barrel.java]] - Main implementation of the barrel object * **Level Objects Base**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/levels/objects/LevelObject.java|LevelObject.java]] - Base class for all level objects * **Explosion Mechanics**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/blobs/LiquidFlame.java|LiquidFlame.java]] - Fire effect created by exploding barrels * **String Resources (English)**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L125-L126|Barrel_Name and Barrel_Desc]] * **String Resources (Russian)**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml#L125-L126|Barrel_Name and Barrel_Desc in Russian]] * **Sprite Definition**: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/Barrel.json|Barrel.json]] - Sprite configuration for barrels ==== Related ==== * [[en:rpd:trap|Traps]] - Other environmental hazards in the dungeon * [[en:rpd:level_objects|Level Objects]] - General information about interactive objects * [[en:rpd:liquid_flame|Liquid Flame]] - The fire effect created by exploding barrels * [[en:rpd:explosive|Explosive Objects]] - Objects that can cause explosions {{tag> rpd environment objects interactive explosive}}