====== Scarecrow NPC - Code References ====== ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ScarecrowNPC.java|ScarecrowNPC.java]] ===== JSON Configuration ===== This entity is implemented in Java, no JSON configuration exists ===== String Resources ===== scarecrow neuter scarecrow There is no doubt... this scarecrow is watching your every move. It's red glowing eyes pierce right through you, but surprisingly enough, you don't feel threatened by it. Why hello little boy, how do you do?\nI've got something exciting for you!\n\nOh how grateful would I be,\nIf you go and collect some candies for me!\n\n Why hello little girl, how do you do?\nI've got something exciting for you!\n\nOh how grateful would I be,\nIf you go and collect some candies for me!\n\n Five candies is all I need.\nOh, the reward will be so sweet! Oh jolly, oh my!\nFor this, you'll get a sweet slice of pie! ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Related mr Entities ===== * [[mr:candy_item|Candy_Item]] * [[mr:pumpkin_pie_item|Pumpkin_Pie_Item]] ===== Entity Implementation Details ===== * **Package:** com.nyrds.pixeldungeon.mobs.npc * **Base Class:** ImmortalNPC * **Entity Kind:** ScarecrowNPC * **Type:** NPC (Non-Player Character) * **Behavior:** Immortal (cannot be killed), Quest-giver * **Purpose:** Gives candy collection quest in early dungeon levels * **Quest Mechanics:** Collect 5 candies from enemy drops, receive 5 Pumpkin Pies as reward * **Candy Generation:** 1 candy per 5 kills after quest initiation, stops after 25 kills total * **Gender-specific Dialogue:** Uses different dialogue based on hero gender ===== Related Files ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/mobs/npc/ImmortalNPC.java|ImmortalNPC.java]] - base class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/Actor.java|Actor.java]] - actor system * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/entities/Entity.java|Entity.java]] - entity system