Changes

Jump to navigation Jump to search
884 bytes added ,  03:38, 4 October 2019
→‎Format: Moved weapon format from objects page
Line 65: Line 65:     
==Format==
 
==Format==
''TODO''
+
 
 +
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
 +
| ''Galaxy 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]]
 
[[Category:Modding]]
153

edits

Navigation menu