Module:Data/WeaponsSchema.json

From MENACE Official Wiki
Revision as of 02:42, 3 October 2025 by joljaycups (talk | contribs) (Created page with "{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Weapons Array", "description": "Array of weapon objects", "type": "array", "items": { "$ref": "#/$defs/weapon" }, "$defs": { "weapon": { "type": "object", "description": "A weapon that can be equipped by units", "required": [ "Name", "Title", "ShortName", "Description", "Rarity", "TradeValue", "DeployCosts"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
$schema"https://json-schema.org/draft/2020-12/schema"
title"Weapons Array"
description"Array of weapon objects"
type"array"
items
$ref"#/$defs/weapon"
$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"
minLength1
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
type"string"
default
Empty array
Rarity
type"integer"
description"Rarity level of the weapon (higher = more rare)"
minimum0
maximum100
MinCampaignProgress
type"integer"
description"Minimum campaign progress required to unlock"
minimum0
default0
TradeValue
type"integer"
description"Base trade value on the black market"
minimum0
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"
minimum0
SkillsGranted
type"array"
description"List of skill identifiers granted by this weapon"
items
type"string"
default
Empty array
MinRange
type"integer"
description"Minimum effective range in tiles"
minimum0
IdealRange
type"integer"
description"Ideal range for maximum effectiveness in tiles"
minimum0
MaxRange
type"integer"
description"Maximum range in tiles"
minimum0
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"
maximum0
Damage
type"number"
description"Base damage per shot at ideal range"
minimum0
DamageDropoff
type"number"
description"How much damage decreases per tile beyond ideal range"
DamagePctCurrentHitpoints
type"number"
description"Percentage damage based on current hitpoints"
minimum0
maximum100
default0
DamagePctCurrentHitpointsMin
type"number"
description"Minimum percentage damage based on current hitpoints"
minimum0
maximum100
default0
DamagePctMaxHitpoints
type"number"
description"Percentage damage based on maximum hitpoints"
minimum0
maximum100
default0
DamagePctMaxHitpointsMin
type"number"
description"Minimum percentage damage based on maximum hitpoints"
minimum0
maximum100
default0
ArmorPenetration
type"number"
description"Armor penetration value at ideal range"
minimum0
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"
minimum0
DamageToArmorDurabilityMult
type"number"
description"Multiplier for armor durability damage"
minimum0
default1
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"
default1
Suppression
type"number"
description"Suppression value applied to targets"
minimum0
additionalPropertiesfalse