mr:melee_weapon_item
Table of Contents
MeleeWeapon Item - Code References
Java Classes
- MeleeWeapon.java - Base melee weapon class
- Location: ``RemixedDungeon/src/main/java/com/watabou/pixeldungeon/items/weapon/melee/MeleeWeapon.java``
- Extends: ``Weapon`` class
- Constructor: ``MeleeWeapon(int tier, float acu, float dly)`` - tier, accuracy, delay
- Durability handling for melee weapons
Known MeleeWeapon Subclasses
- Swords: swords/ directory
- Axes: axes/ directory
- Maces: maces/ directory
- Daggers: Dagger.java
- Polearms: Polearm.java - Extended reach weapons
- Other: WarHammer, Quarterstaff, Kusarigama
JSON Configuration
This entity is implemented in Java, no JSON configuration exists for the base MeleeWeapon class. Individual melee weapons may have JSON configuration in Treasury.json for loot tables.
String Resources
English string resources (values/strings_all.xml) contain names and descriptions for all melee weapons. Example strings:
<string name="ShortSword_Name">short sword</string> <string name="ShortSword_Info">A well-balanced sword suitable for most situations.</string> <string name="Dagger_Name">dagger</string> <string name="Dagger_Info">A light, fast weapon designed for stabbing.</string>
Russian string resources (values-ru/strings_all.xml) provide localization for all melee weapons.
Lua Scripts
This entity is implemented in Java, no Lua script exists for the base MeleeWeapon class. Custom melee weapons may use Lua scripts in scripts/items/.
Weapon Stats
- Damage Range: Varies by weapon (e.g., ShortSword: 1-4, Dagger: 1-3)
- Speed: Varies by weapon (e.g., ShortSword: 1.0, Dagger: 1.3)
- Accuracy: Varies by weapon (e.g., ShortSword: 1.0, Dagger: 1.1)
- Required Strength: Calculated based on tier
- Durability: Degrades on use, can be repaired
- Upgradeable: Can be upgraded with Scroll of Upgrade
Related mr Entities
Wiki Pages
mr/melee_weapon_item.txt · Last modified: by 127.0.0.1

