Module:Data/WeaponsSchema.json
From MENACE Official Wiki
| $schema | "https://json-schema.org/draft/2020-12/schema" |
|---|
| title | "Weapons Array" |
|---|
| description | "Array of weapon objects" |
|---|
| type | "array" |
|---|
| items | |
|---|
| $defs | | weapon | | type | "object" |
|---|
| description | "A weapon that can be equipped by units" |
|---|
| required | | "Name" |
| "Title" |
| "ShortName" |
| "Description" |
| "Rarity" |
| "TradeValue" |
| "DeployCosts" |
| "MinRange" |
| "IdealRange" |
| "MaxRange" |
|
|---|
| properties | | Name | | type | "string" |
|---|
| description | "Unique identifier for the weapon" |
|---|
| pattern | "^weapon\." |
|---|
| examples | | "weapon.generic_assault_rifle_tier1_kpac" |
|
|---|
|
|---|
| Title | | type | "string" |
|---|
| description | "Display name of the weapon" |
|---|
| minLength | 1 |
|---|
| examples | | "R10A6 K-PAC" |
| "R14A2 ARC" |
|
|---|
|
|---|
| ShortName | | type | "string" |
|---|
| description | "Short category name for the weapon" |
|---|
| examples | | "Assault Rifle" |
| "Battle Rifle" |
| "SMG" |
| "Shotgun" |
|
|---|
|
|---|
| Description | | type | "string" |
|---|
| description | "Detailed description of the weapon" |
|---|
|
|---|
| Icon | | type | "string" |
|---|
| description | "Path or identifier for the weapon icon" |
|---|
|
|---|
| Tags | | type | "array" |
|---|
| description | "Tags for categorizing or filtering weapons" |
|---|
| items | |
|---|
| default | |
|---|
|
|---|
| Rarity | | type | "integer" |
|---|
| description | "Rarity level of the weapon (higher = more rare)" |
|---|
| minimum | 0 |
|---|
| maximum | 100 |
|---|
|
|---|
| MinCampaignProgress | | type | "integer" |
|---|
| description | "Minimum campaign progress required to unlock" |
|---|
| minimum | 0 |
|---|
| default | 0 |
|---|
|
|---|
| TradeValue | | type | "integer" |
|---|
| description | "Base trade value on the black market" |
|---|
| minimum | 0 |
|---|
|
|---|
| IconEquipment | | type | "string" |
|---|
| description | "Equipment icon identifier" |
|---|
|
|---|
| IconSkillBar | | type | "string" |
|---|
| description | "Skill bar icon identifier" |
|---|
|
|---|
| IconSkillBarAlternative | | type | "string" |
|---|
| description | "Alternative skill bar icon identifier" |
|---|
|
|---|
| DeployCosts | | type | "integer" |
|---|
| description | "Supply cost to deploy this weapon" |
|---|
| minimum | 0 |
|---|
|
|---|
| SkillsGranted | | type | "array" |
|---|
| description | "List of skill identifiers granted by this weapon" |
|---|
| items | |
|---|
| default | |
|---|
|
|---|
| MinRange | | type | "integer" |
|---|
| description | "Minimum effective range in tiles" |
|---|
| minimum | 0 |
|---|
|
|---|
| IdealRange | | type | "integer" |
|---|
| description | "Ideal range for maximum effectiveness in tiles" |
|---|
| minimum | 0 |
|---|
|
|---|
| MaxRange | | type | "integer" |
|---|
| description | "Maximum range in tiles" |
|---|
| minimum | 0 |
|---|
|
|---|
| AccuracyBonus | | type | "number" |
|---|
| description | "Bonus or penalty to accuracy at ideal range" |
|---|
|
|---|
| AccuracyDropoff | | type | "number" |
|---|
| description | "How much accuracy decreases per tile beyond ideal range" |
|---|
| maximum | 0 |
|---|
|
|---|
| Damage | | type | "number" |
|---|
| description | "Base damage per shot at ideal range" |
|---|
| minimum | 0 |
|---|
|
|---|
| DamageDropoff | | type | "number" |
|---|
| description | "How much damage decreases per tile beyond ideal range" |
|---|
|
|---|
| DamagePctCurrentHitpoints | | type | "number" |
|---|
| description | "Percentage damage based on current hitpoints" |
|---|
| minimum | 0 |
|---|
| maximum | 100 |
|---|
| default | 0 |
|---|
|
|---|
| DamagePctCurrentHitpointsMin | | type | "number" |
|---|
| description | "Minimum percentage damage based on current hitpoints" |
|---|
| minimum | 0 |
|---|
| maximum | 100 |
|---|
| default | 0 |
|---|
|
|---|
| DamagePctMaxHitpoints | | type | "number" |
|---|
| description | "Percentage damage based on maximum hitpoints" |
|---|
| minimum | 0 |
|---|
| maximum | 100 |
|---|
| default | 0 |
|---|
|
|---|
| DamagePctMaxHitpointsMin | | type | "number" |
|---|
| description | "Minimum percentage damage based on maximum hitpoints" |
|---|
| minimum | 0 |
|---|
| maximum | 100 |
|---|
| default | 0 |
|---|
|
|---|
| ArmorPenetration | | type | "number" |
|---|
| description | "Armor penetration value at ideal range" |
|---|
| minimum | 0 |
|---|
|
|---|
| ArmorPenetrationDropoff | | type | "number" |
|---|
| description | "How much armor penetration decreases per tile beyond ideal range" |
|---|
|
|---|
| DamageToArmorDurability | | type | "number" |
|---|
| description | "Damage dealt to armor durability when armor stops the shot" |
|---|
| minimum | 0 |
|---|
|
|---|
| DamageToArmorDurabilityMult | | type | "number" |
|---|
| description | "Multiplier for armor durability damage" |
|---|
| minimum | 0 |
|---|
| default | 1 |
|---|
|
|---|
| DamageToArmorDurabilityDropoff | | type | "number" |
|---|
| description | "How much armor durability damage decreases per tile beyond ideal range" |
|---|
|
|---|
| DamageToArmorDurabilityDropoffMult | | type | "number" |
|---|
| description | "Multiplier for armor durability damage dropoff" |
|---|
| default | 1 |
|---|
|
|---|
| Suppression | | type | "number" |
|---|
| description | "Suppression value applied to targets" |
|---|
| minimum | 0 |
|---|
|
|---|
|
|---|
| additionalProperties | false |
|---|
|
|---|
|
|---|