User Tools

Site Tools


mr:mace_item

Mace Item - Code References

Java Classes

Entity Kind

Mace

Stats

  • Damage: 3 (base damage)
  • Speed: 1.0x (normal weapon speed)
  • Accuracy: 0.8x (reduced accuracy compared to standard weapons)
  • Type: Melee Weapon (uses sword attack animation)
  • Parent Class: MeleeWeapon

JSON Configuration

This entity is implemented directly in Java without separate JSON configuration. The item properties are defined in the Mace.java class constructor:

  • Constructor call: super(3, 1f, 0.8f)
  • Image: ItemSpriteSheet.MACE
  • Animation: SWORD_ATTACK

String Resources

  • Name Key: Mace_Name
  • Description Key: Mace_Info
  • Gender Key: Mace_Gender
  • Values in strings_all.xml:
    • <string name="Mace_Name">mace</string>
      <string name="Mace_Info">The iron head of this weapon inflicts substantial damage.</string>
      <string name="Mace_Gender">feminine</string>
          * 

Lua Scripts

This entity is implemented entirely in Java, no Lua script exists

Implementation Details

  • The Mace is a basic melee weapon in the weapon category
  • It uses the sword attack animation (animation_class = SWORD_ATTACK)
  • Lower accuracy (0.8x) is balanced by normal speed and moderate damage
  • The sprite is defined in ItemSpriteSheet as MACE
mr/mace_item.txt · Last modified: by 127.0.0.1