Changes

884 bytes added ,  19:24, 4 October 2019
→‎Format: + slingshot data
Line 67: Line 67:  
===Melee weapons===
 
===Melee weapons===
 
The weapon data in <tt>Data\Weapons.xnb</tt> contains fifteen fields for melee weapons:
 
The weapon data in <tt>Data\Weapons.xnb</tt> contains fifteen fields for melee weapons:
 
+
308/0/0/4/-1/-1/0/.02/3
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 136: Line 136:     
Weapons have a hardcoded category of -98 (<tt>Object.weaponCategory</tt>).
 
Weapons have a hardcoded category of -98 (<tt>Object.weaponCategory</tt>).
 +
 +
===Slingshot===
 +
The [[slingshot]] has initial ID 32 in the weapon data, which increases by one for each upgrade level (up to 34 in the weapon data, though only 32 and 33 are obtainable without mods). All [[#Melee weapons|weapon fields]] must be specified in the weapon data to avoid errors, but only these are actually used for slingshots:
 +
 +
{| class="wikitable"
 +
|-
 +
! index
 +
! example value
 +
! description
 +
|-
 +
| 0
 +
| ''Master Slingshot''
 +
| name
 +
|-
 +
| 1
 +
| ''Requires stones for ammo.''
 +
| description
 +
|-
 +
| 9
 +
| ''74''
 +
| The base mine level which affects the probability of [[#Mine container drops|mine container drops]].
 +
|-
 +
| 10
 +
| ''50''
 +
| The minimum mine level for [[#Mine container drops|mine container drops]].
 +
|-
 +
| 14
 +
|
 +
| display name (non-English files only)
 +
|}
 +
 +
Slingshot damage is [[Slingshot#Ammunition|calculated dynamically]] regardless of the weapon data.
    
==Mine container drops==
 
==Mine container drops==
translators
8,403

edits