mr:weapon_item
Table of Contents
mr:weapon_item - Weapon (Item) Code References
Java Classes
- Weapon.java - Base weapon class
- MeleeWeapon.java - Melee weapon base class
- Polearm.java - Polearm weapon base class
- RangedWeapon.java - Ranged weapon base class
- WeaponGuts.java - Enhanced weapon mechanics
JSON Configuration
This entity is implemented in Java, no JSON configuration exists for the base weapon class. Individual weapons may have JSON configuration in Treasury.json and SpidersTreasury.json for loot tables.
String Resources
- strings_all.xml - Contains weapon-related strings (names, descriptions, gender)
Lua Scripts
This entity is implemented in Java, no Lua script exists for the base weapon class. Custom weapons may use Lua scripts in scripts/items/.
Related mr Entities
Key Properties from Code
Weapon.java Base Properties:
- Damage range (min/max)
- Speed multiplier
- Accuracy modifier
- Required strength
- Weight
- Tier
- Image reference from sprite sheet
- Upgradeable flag
- Enchantment compatibility
MeleeWeapon.java:
- Extends Weapon
- Melee-specific attack logic
- Durability handling (if applicable)
Polearm.java:
- Extends MeleeWeapon
- Polearm-specific mechanics (reach, etc.)
RangedWeapon.java:
- Extends Weapon
- Projectile-based attack logic
- Ammo handling
Wiki Pages
mr/weapon_item.txt · Last modified: by 127.0.0.1
