mr:sword_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:sword_item [2026/08/26 11:43] – Fix broken links, expand mr pages, ground entity facts in code Bot | mr:sword_item [2026/08/26 11:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Sword Item - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | The Sword is not defined through a JSON configuration file; its properties are set directly in the Java constructor: | ||
| + | <code java> | ||
| + | public Sword() { | ||
| + | super( 3, 1f, 1f ); // tier 3, damage factor 1.0, delay factor 1.0 | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English strings (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== 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 | ||
| + | |||
| + | {{tag>mr items weapon code_reference}} | ||
mr/sword_item.txt · Last modified: by 127.0.0.1
