====== Blacksmith Mob - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/mobs/npcs/Blacksmith.java|Blacksmith.java]] - Main implementation ===== JSON Configuration ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/Blacksmith.json|Blacksmith.json]] - Sprite configuration ===== String Resources ===== I can forge a special item for you, but I need 15 dark gold coins and a pickaxe for the process I can forge a special item for you, but I need a pickaxe covered with fresh blood of the cave dweller Bring me a pickaxe! Forged in the depths of the dungeon! These dark gold coins are of good quality. Now I can start the forging process! Good blood! Fresh and warm! Now I can start forging! Great! The item is ready! I've done my job, now leave me alone! The items should be different! The items should be of the same type! I need to know exactly what I'm working with! I don't work with cursed items! This item is not suitable for reforge! This item can't be upgraded! %s looks better now! ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Implementation Notes ===== * **Class:** Extends NPC (Non-Player Character) * **Role:** Provides item reforge service * **Spawn:** Appears in Caves level (depth > 11) with probability (15 - depth) * **Quest:** Has a quest system requiring either dark gold coins or blood-stained pickaxe * **Functionality:** Can upgrade two items of the same type to create a higher-level item, with a chance of receiving a Scroll of Upgrade * **Sprite:** Uses sprite configuration defined in spritesDesc/Blacksmith.json * **Quest States:** Has multiple quest states - given, completed, reforged ===== Entity Kind ===== * Entity Kind: Blacksmith ===== Related Files ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/levels/painters/BlacksmithPainter.java|BlacksmithPainter.java]] - Room painter for Blacksmith room type * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/windows/WndBlacksmith.java|WndBlacksmith.java]] - Window for the Blacksmith interaction