====== Black Cat NPC - Code References ====== ===== Java Classes ===== This entity is data-driven (JSON + Lua), no dedicated Java class exists. ===== JSON Configuration ===== * Mob definition: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/BlackCatNPC.json|BlackCatNPC.json]] * HP: 10 (ht), Defense Skill: 3, Attack Skill: 8, Damage: 1-4, DR: 1, EXP: 2, maxLvl: 4 * AI state: Passive, fraction NEUTRAL, friendly and immortal * Sprite configuration: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/BlackCat.json|BlackCat.json]] ===== String Resources ===== Black cat This is a black cat This cat is doing ordinary cat things ===== Lua Scripts ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/npc/BlackCat.lua|BlackCat.lua]] * Interacting with the cat makes it say a random phrase from BlackCat_Phrases and play its "sleep" animation * Killing the cat curses the hero: permanently loses 1 STR (minimum 1) with a cursed sound effect ===== Related mr Entities ===== * [[mr:black_cat_mob|Black Cat (Mob)]]