longsword_item - Code References
Java Classes
Key Implementation Details:
Package: com.watabou.pixeldungeon.items.weapon.melee
Extends: MeleeWeapon class
Constructor: Longsword() - calls super(4, 1f, 1f)
Base damage: 4
Attack speed factor: 1.0f
Accuracy factor: 1.0f
image: ItemSpriteSheet.LONG_SWORD (sprite index)
animation_class: HEAVY_ATTACK (animation type)
slot(): Returns Belongings.Slot.WEAPON (main hand slot)
blockSlot(): Returns Belongings.Slot.LEFT_HAND (can be used for blocking)
desc(): Returns description from R.string.Longsword_Info via StringsManager
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources
<string name="Longsword_Name">longsword</string>
<string name="Longsword_Info">This towering blade inflicts heavy damage by investing its heft into every cut.</string>
<string name="Longsword_Gender">masculine</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Entity Kind
Entity Kind: Longsword (returns class simple name via getEntityKind())
Item Type: Melee Weapon
Weapon Tier: Based on damage value (4)
Slot: WEAPON (main hand)
Block Slot: LEFT_HAND (can block with weapon)
Animation: HEAVY_ATTACK
Weapon Stats
Base Damage: 4
Speed Factor: 1.0f (normal attack speed)
Accuracy Factor: 1.0f (normal accuracy)
Animation Class: HEAVY_ATTACK