This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Weapon data

884 bytes added, 03:38, 4 October 2019
Format: Moved weapon format from objects page
==Format==
 Weapons (sprites taken from <<tt>TileSheets\Weapons.xnb</tt> and data taken from <tt>Data\Weapons.xnb</tt>) are parsed by the <tt>MeleeWeapon</tt> constructor and contain eleven fields: {| class="wikitable"|-! index! field! example value|-| 0| name| ''TODOGalaxy Sword''|-| 1| description| ''It's unlike anything you've ever seen.''|-| 2| minDamageValue| ''60''|-| 3| maxDamageValue| ''80''|-| 4| knockbackValue| ''1''|-| 5| speedValue| ''8''|-| 6| addedPrecisionValue| ''0''|-| 7| addedDefenseValue| ''0''|-| 8| weaponType<br /><small>("0" for sword, "1" for dagger, "2" for club/hammer, "4" for slingshot)</small>| ''0''|-| 9| addedAreaOfEffect| ''-1''|-| 8| critChanceValue| ''-1''|-| 9| critMultiplierValue| ''-0''|-| 9| ???| ''.02''|-| 10| ???| ''3''|} Weapons have a hardcoded category of -98 (<tt>Object.weaponCategory</tt>).
[[Category:Modding]]
158
edits

Navigation menu