====== Boomerang Item ====== {{ rpd:images:boomerang_item.png|Boomerang }} ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/Boomerang.java|Boomerang.java]] - Main Boomerang class implementation * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/MissileWeapon.java|MissileWeapon.java]] - Base class for Boomerang * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/Weapon.java|Weapon.java]] - Weapon base class * Item factory: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java#L344|ItemFactory.java]] (registerItemClass) * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/sprites/ItemSpriteSheet.java#L48|ItemSpriteSheet.java]] - Sprite definition ===== JSON Configuration ===== * Starting items: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/hero/initHeroes.json#L90-L96|initHeroes.json#L90-L96]] (Huntress starts with Boomerang) * Starting items (debug): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/hero/initHeroesDebug.json#L124-L130|initHeroesDebug.json#L124-L130]] (Huntress starts with Boomerang) * Treasury: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/Treasury.json#L152|Treasury.json#L152]] (Boomerang drop chance) * Spiders Treasury: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/levelsDesc/SpidersTreasury.json#L149|SpidersTreasury.json#L149]] (Boomerang drop chance) * Missile weapons: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/itemsDesc/MissileWeapons.json|MissileWeapons.json]] - Damage and properties configuration ===== String Resources (All Languages) ===== * English: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml#L1157-L1158|strings_all.xml#L1157-L1158]] - Boomerang_Name, Boomerang_Info * Spanish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-es/strings_all.xml#L298-L299|strings_all.xml#L298-L299]] - Boomerang_Name, Boomerang_Info * Portuguese (Brazilian): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pt-rBR/strings_all.xml#L288-L289|strings_all.xml#L288-L289]] - Boomerang_Name, Boomerang_Info * Russian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ru/strings_all.xml#L306-L307|strings_all.xml#L306-L307]] - Boomerang_Name, Boomerang_Info * Chinese (Simplified): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rCN/strings_all.xml|strings_all.xml]] - Boomerang_Name, Boomerang_Info * Chinese (Traditional): [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-zh-rTW/strings_all.xml#L281-L282|strings_all.xml#L281-L282]] - Boomerang_Name, Boomerang_Info * French: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-fr/strings_all.xml#L299-L300|strings_all.xml#L299-L300]] - Boomerang_Name, Boomerang_Info * German: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-de/strings_all.xml#L297-L298|strings_all.xml#L297-L298]] - Boomerang_Name, Boomerang_Info * Italian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-it/strings_all.xml#L257-L258|strings_all.xml#L257-L258]] - Boomerang_Name, Boomerang_Info * Japanese: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ja/strings_all.xml#L294-L295|strings_all.xml#L294-L295]] - Boomerang_Name, Boomerang_Info * Korean: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ko/strings_all.xml#L263-L264|strings_all.xml#L263-L264]] - Boomerang_Name, Boomerang_Info * Polish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-pl/strings_all.xml|strings_all.xml]] - Boomerang_Name, Boomerang_Info * Ukrainian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-uk/strings_all.xml#L295-L296|strings_all.xml#L295-L296]] - Boomerang_Name, Boomerang_Info * Hungarian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-hu/strings_all.xml|strings_all.xml]] - Boomerang_Name, Boomerang_Info * Turkish: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-tr/strings_all.xml#L293-L294|strings_all.xml#L293-L294]] - Boomerang_Name, Boomerang_Info * Greek: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-el/strings_all.xml#L302-L303|strings_all.xml#L302-L303]] - Boomerang_Name, Boomerang_Info * Indonesian: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-in/strings_all.xml#L293-L294|strings_all.xml#L293-L294]] - Boomerang_Name, Boomerang_Info * Malay: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values-ms/strings_all.xml#L277-L278|strings_all.xml#L277-L278]] - Boomerang_Name, Boomerang_Info ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists ===== Related Files ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/missiles/MissileWeapon.java|MissileWeapon.java]] - Base class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/sprites/ItemSpriteSheet.java#L48|ItemSpriteSheet.java]] - Sprite definition * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/Weapon.java|Weapon.java]] - Weapon base class * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/hero/Hero.java|Hero.java]] - Hero class that uses Boomerang * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/ui/QuickSlot.java|QuickSlot.java]] - Quick slot for Boomerang ===== Key Methods ===== * `throwIt(Hero hero)` - Throws the boomerang at target * `returnToHero()` - Returns boomerang to hero after throw * `getEntityKind()` - Returns "Boomerang" for identification {{tag> mr items reference}}