User Tools

Site Tools


mr:longsword_item

Longsword Item - Code References

Longsword

Java Classes

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

<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

mr/longsword_item.txt · Last modified: by 127.0.0.1