mr:short_sword_item
Table of Contents
Short Sword Item - Code References
Java Classes
- ItemFactory.java - Registers ShortSword class
- Badges.java - Validates item level acquired for ShortSword
JSON Configuration
This entity is implemented in Java, no specific JSON configuration exists
String Resources
<string name="ShortSword_Name">short sword</string> <string name="ShortSword_Info">It is indeed quite short, just a few inches longer, than a dagger.</string> <string name="ShortSword_ACReforge">REFORGE</string> <string name="ShortSword_Select">Select a weapon to upgrade</string> <string name="ShortSword_Reforged">you reforged the short sword to upgrade your %s</string> <string name="ShortSword_NotBoomerang">you can\'t upgrade a boomerang this way</string> <string name="ShortSword_Gender">masculine</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Related Information
- The Short Sword is a basic melee weapon with 1-1 damage
- It has a required strength of 11 STR
- It has a special “REFORGE” action that can be used to upgrade another weapon using this sword and a Scroll of Upgrade
- When reforged, the Short Sword is consumed to upgrade another weapon and provide one level of upgrade
- Registered in ItemFactory for dynamic item creation
- Badge validation tracks ShortSword acquisition for level-based achievements
Key Implementation Details
- Base Damage: 1-1 (min-max)
- Animation: Uses SWORD_ATTACK animation
- STR Requirement: 11
- Max Level: 12
- Special Action: AC_REFORGE (“REFORGE”) - available when level > 0
- Image Sprite: ItemSpriteSheet.SHORT_SWORD
- Reforge Time: 2f seconds
- Reforge Logic: Removes ShortSword from inventory, applies upgrade to selected weapon via ScrollOfUpgrade.upgrade()
mr/short_sword_item.txt · Last modified: by 127.0.0.1
