Weapon sprites are in <tt>TileSheets\Weapons.xnb</tt>, and weapon data (parsed by the <tt>MeleeWeapon</tt> constructor) is in <tt>Data\Weapons.xnb</tt>. The files can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
+
Weapon sprites are in <samp>TileSheets\Weapons.xnb</samp>, and weapon data (parsed by the <samp>MeleeWeapon</samp> constructor) is in <samp>Data\Weapons.xnb</samp>. The files can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
The weapon data in <tt>Data\Weapons.xnb</tt> contains fifteen fields for melee weapons:
+
The weapon data in <samp>Data\Weapons.xnb</samp> contains fifteen fields for melee weapons:
308/0/0/4/-1/-1/0/.02/3
308/0/0/4/-1/-1/0/.02/3
{| class="wikitable"
{| class="wikitable"
Line 147:
Line 147:
|}
|}
−
Weapons have a hardcoded category of -98 (<tt>Object.weaponCategory</tt>).
+
Weapons have a hardcoded category of -98 (<samp>Object.weaponCategory</samp>).
===Slingshot===
===Slingshot===
Line 182:
Line 182:
==Mine container drops==
==Mine container drops==
−
When the player breaks a container in [[The Mines|the mines]], there's a chance it will drop a weapon. Here's how the weapon to drop is chosen<ref>See <tt>Utility.getUncommonItemForThisMineLevel</tt> in the game code.</ref>:
+
When the player breaks a container in [[The Mines|the mines]], there's a chance it will drop a weapon. Here's how the weapon to drop is chosen<ref>See <samp>Utility.getUncommonItemForThisMineLevel</samp> in the game code.</ref>: