User Tools

Site Tools


mr:weapon_item

mr:weapon_item - Weapon (Item) Code References

Java Classes

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/.

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