====== Longsword Item - Code References ====== {{ rpd:images:longsword_item.png|Longsword }} ===== Java Classes ===== * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/Longsword.java|Longsword.java]] **Key Implementation Details:** * Extends: `MeleeWeapon` class * Package: `com.watabou.pixeldungeon.items.weapon.melee` * Base damage: 4 * Attack speed factor: 1.0f * Accuracy factor: 1.0f * Animation class: `HEAVY_ATTACK` * Sprite: `ItemSpriteSheet.LONG_SWORD` * Slot: `WEAPON` (main hand) * Block slot: `LEFT_HAND` (can be used for blocking) **Core Methods:** * `desc()` - Returns weapon description from string resources * `slot(Belongings belongings)` - Returns WEAPON slot * `blockSlot()` - Returns LEFT_HAND slot for blocking ===== JSON Configuration ===== This entity is implemented in Java, no JSON configuration exists ===== String Resources ===== longsword This towering blade inflicts heavy damage by investing its heft into every cut. masculine ===== Lua Scripts ===== This entity is implemented in Java, no Lua script exists