User Tools

Site Tools


mr:sword_item

Sword Item - Code References

Java Classes

JSON Configuration

The Sword is not defined through a JSON configuration file; its properties are set directly in the Java constructor:

public Sword() {
    super( 3, 1f, 1f ); // tier 3, damage factor 1.0, delay factor 1.0
}

String Resources

English strings (values/strings_all.xml):

<string name="Sword_Name">sword</string>
<string name="Sword_Info">The razor-sharp steel blade shines reassuringly.</string>
<string name="Sword_Gender">masculine</string>

Lua Scripts

This entity is implemented in Java, no Lua script exists

Key Implementation Details

  • Tier: 3
  • Damage factor: 1.0
  • Delay factor: 1.0 (normal attack speed)
  • Image: ItemSpriteSheet.SWORD
  • Animation class: SWORD_ATTACK
  • Description source: R.string.Sword_Info via StringsManager
mr/sword_item.txt · Last modified: by 127.0.0.1