Module:VehicleHardpoint/data.json

{   "%matches": "", "matches": { "Armor": { "class": "Facilities", "matches": [], "type": "Armor" },       "ArmorLocker": { "class": "CargoGrid", "matches": [ "hardpoint_armory_cargo_%d+" ],           "type": "ArmorStorage" },       "Battery": { "class": "Systems", "matches": [ "hardpoint_battery" ],           "type": "Battery" },       "Bed": { "class": "Facilities", "matches": [ "hardpoint_bed", "hardpoint_bed_.+" ],           "type": "Bed" },       "Bomb": { "class": "Weapons", "type": "Ordnance", "subtype": "Bomb" },       "BombLauncher": { "class": "Weapons", "type": "Ordnance", "subtype": "BombLauncher" },       "BombRack": { "class": "Weapons", "type": "Ordnance", "subtype": "BombRack" },       "Cargo": { "class": "Cargo", "matches": [ "hardpoint_personal_inventory.*", "hardpoint_personal_storage.*", "hardpoint_storage_%d", "hardpoint_general_cargo_%d+", "hardpoint_medical_storage" ],           "type": "PersonalStorage" },       "CargoGrid": { "class": "Cargo", "matches": [ "hardpoint_cargo.*", "hardpoint_cargogrid.*" ],           "type": "CargoGrid" },       "Computer": { "class": "Avionics", "matches": [ "hardpoint_avionics", "hardpoint_computer" ],           "type": "Computer" },       "Container": { "class": "Cargo", "matches": [ "hardpoint_mining_pod.*" ],           "type": "CargoPod" },       "Cooler": { "class": "Systems", "matches": [ "hardpoint_cooler_.+", "hardpoint_cooler" ],           "type": "Cooler" },       "DecoyLauncher": { "class": "Weapons", "matches": [], "type": "DefensiveDevices", "subtype": "DecoyLauncher" },       "DecoyLauncherMagazine": { "class": "Weapons", "matches": [], "type": "DecoyLauncherMagazine" },       "DockingCollar": { "class": "Facilities", "matches": [], "type": "DockingCollar" },       "DriveUnit": { "class": "Propulsion", "matches": [ "hardpoint_controller_wheel" ],           "type": "DriveUnit" },       "EMP": { "class": "Utility", "matches": [], "type": "OffensiveDevices", "subtype": "EMP" },       "ExternalFuelTank": { "class": "Cargo", "matches": [], "type": "CargoPod", "subtype": "FuelPod" },       "FireExtinguisher": { "class": "Facilities", "matches": [ "hardpoint_cabinet_extinguisher.*", "hardpoint_fire_extinguisher.*" ],           "type": "FireExtinguisher" },       "FuelIntake": { "class": "Propulsion", "matches": [ "hardpoint_fuel_intake.*" ],           "type": "FuelIntake" },       "FuelPort": { "class": "Propulsion", "matches": [], "type": "FuelPort" },       "FuelRefinery": { "class": "Utility", "matches": [ "hardpoint_fuel_refinery.*" ],           "type": "UtilityDevices", "subtype": "FuelRefinery" },       "FuelTank": { "class": "Propulsion", "matches": [ "hardpoint_fuel_tank.*" ],           "type": "FuelTank" },       "GimbalMount": { "class": "Weapons", "type": "Weapons", "subtype": "GimbalMount" },       "GravityGenerator": { "class": "Systems", "matches": [ "hardpoint_gravity_generator" ],           "type": "GravityGenerator" },       "GravLev": { "class": "Thrusters", "type": "ManneuverThruster", "subtype": "GravLev" },       "LifeSupportGenerator": { "class": "Systems", "matches": [ "hardpoint_lifesupport", "hardpoint_life_support" ],           "type": "LifeSupportGenerator" },       "Magazine": { "class": "Weapons", "matches": [], "type": "Magazine" },       "MainThruster": { "class": "Thrusters", "matches": [ "hardpoint_engine_.+", "hardpoint_thrusters?.*_main.*", "hardpoint_Main_.+", "hardpoint_mainthruster_.+" ],           "type": "MainThruster" },       "ManneuverThruster": { "class": "Thrusters", "matches": [ "hardpoint_thrusters?_front_top_.+", "hardpoint_thrusters?_front_bottom_.+", "hardpoint_thrusters?_rear_top_.+", "hardpoint_thrusters?_rear_bottom_.+", "hardpoint_thrusters?_side_forward_.+", "hardpoint_thrusters?_side_back_.+", "hardpoint_thrusters?_top_forward_.+", "hardpoint_thrusters?_top_back_.+", "hardpoint_thrusters?_bottom_forward_.+", "hardpoint_thrusters?_bottom_back_.+", "hardpoint_thrusters?_left_upper_.+", "hardpoint_thrusters?_right_upper_.+", "hardpoint_thrusters?_left_lower_.+", "hardpoint_thrusters?_right_lower_.+", "hardpoint_thrusters?_left_retro", "hardpoint_thrusters?_right_retro", "hardpoint_Man_Thruster_.+", "hardpoint_thrusters?_mav.+", "hardpoint_thrusters?_maneuver_.+", "hardpoint_grav_.+", "hardpoint_gravplate_.+", "hardpoint_gravlev_.+" ],           "type": "ManneuverThruster" },       "MiningArm": { "class": "Utility", "matches": [], "type": "UtilityDevices", "subtype": "MiningArm" },       "Missile": { "class": "Weapons", "matches": [ "missile_.+_attach", "missile_attach_.+" ],           "type": "Ordnance", "subtype": "Missile" },       "MissileLauncher": { "class": "Weapons", "matches": [ "hardpoint_missile_+" ],           "type": "Ordnance", "subtype": "MissileLauncher" },       "NoiseLauncher": { "class": "Weapons", "matches": [], "type": "DefensiveDevices", "subtype": "NoiseLauncher" },       "NoiseLauncherMagazine": { "class": "Weapons", "matches": [], "type": "NoiseLauncherMagazine" },       "Paint": { "class": "Facilities", "matches": [ "hardpoint_paint" ],           "type": "Paint" },       "PersonalInventory": { "class": "Cargo", "matches": [ "hardpoint_personal_inventory.*", "hardpoint_personal_storage.*", "hardpoint_storage_%d", "hardpoint_general_cargo_%d+" ],           "type": "PersonalStorage" },       "PowerPlant": { "class": "Systems", "matches": [ "hardpoint_engine_attach.*", "hardpoint_power_plant" ],           "type": "PowerPlant" },       "QuantumDrive": { "class": "Propulsion", "matches": [ "hardpoint_quantum_drive" ],           "type": "QuantumDrive" },       "QuantumFuelTank": { "class": "Propulsion", "matches": [ "hardpoint_quantum_fuel.*" ],           "type": "QuantumFuelTank" },       "QuantumInterdictionGenerator": { "class": "Utility", "matches": [], "type": "OffensiveDevices", "subtype": "QuantumInterdictionGenerator" },       "Radar": { "class": "Avionics", "matches": [ "hardpoint_radar.*" ],           "type": "Radar" },       "RetroThruster": { "class": "Thrusters", "type": "ManneuverThruster", "subtype": "RetroThruster" },       "SalvageArm": { "class": "Utility", "matches": [], "type": "UtilityDevices", "subtype": "SalvageArm" },       "SalvageFillerStation": { "class": "Facilities", "matches": [ "hardpoint_refill_station" ],           "type": "FillerStation" },       "SalvageHead": { "class": "Utility", "matches": [ "hardpoint_salvage_laser" ],           "type": "SalvageHead" },       "SalvageModifier": { "class": "Utility", "matches": [], "type": "SalvageModifier" },       "Scanner": { "class": "Avionics", "matches": [ "hardpoint_scanner", "hardpoint_controller_scanner" ],           "type": "Scanner" },       "SeatAccess": { "class": "Cargo", "matches": [], "type": "PersonalStorage" },       "SelfDestruct": { "class": "Systems", "matches": [], "type": "SelfDestruct" },       "Shield": { "class": "Systems", "matches": [ "hardpoint_shield_generator.*" ],           "type": "Shield" },       "ToolArm": { "class": "Utility", "matches": [], "type": "UtilityDevices", "subtype": "ToolArm" },       "Turret": { "class": "Weapons", "matches": [ "TurretBase", "hardpoint_front_turret", "^hardpoint_turret_top_front$", "^hardpoint_turret_top_back$", "^hardpoint_turret_bottom_left$", "^hardpoint_turret_bottom_right$" ],           "type": "Turret" },       "UtilityTurret": { "class": "Utility", "matches": [], "type": "UtilityDevices" },       "VehiclePart": { "class": "Parts", "matches": [], "type": "VehiclePart" },       "VtolThruster": { "class": "Thrusters", "type": "ManneuverThruster", "subtype": "VtolThruster" },       "WeaponDefensive": { "class": "Utility", "matches": [], "type": "DefensiveDevices", "subtype": "CountermeasureLauncher" },       "WeaponGun": { "class": "Weapons", "matches": [ "hardpoint_weapon_left", "hardpoint_weapon_right" ],           "type": "Weapons", "subtype": "WeaponGun" },       "WeaponRack": { "class": "Cargo", "matches": [ "hardpoint_.*weapon_?locker.*", "hardpoint_weapon_?rack.*", "hardpoint_weapon_rack", "hardpoint_weapon_seat_rack.*", "hardpoint_gun_rack", "hardpoint_gunrack", "hardpoint_rack_FL", "hardpoint_rack_FR", "hardpoint_rack_RL", "hardpoint_rack_RR", "hardpoint_weaponlocker" ],           "type": "WeaponRack" },       "WeaponMining": { "class": "Utility", "matches": [ "hardpoint_weapon_mining" ],           "type": "UtilityDevices", "subtype": "WeaponMining" },       "WeaponPort": { "class": "Weapons", "matches": [], "type": "WeaponPort" }   },    "%hardpoint_type_fixes": "List of hardpoint names that should be checked against all matchers to retrieve the correct item type", "hardpoint_type_fixes": [ "PersonalInventory", "ArmorLocker", "WeaponRack", "Bed", "Container", "FuelRefinery", "Battery", "Computer", "DriveUnit", "GravityGenerator", "LifeSupportGenerator", "FireExtinguisher" ],   "%icons": "Define override for icons. Empty string equals to no icon.", "icons": { "Armor": "", "ArmorStorage": "", "Battery": "", "Bed": "", "CargoGrid": "", "CargoPod": "", "DefensiveDevices": "", "DockingCollar": "", "DriveUnit": "", "FillerStation": "", "FireExtinguisher": "", "FuelPort": "", "FuelRefinery": "", "GravLev": "", "LifeSupportGenerator": "lifesupport", "ManneuverThruster": "maneuveringthruster", "OffensiveDevices": "", "Ordnance": "missile", "Paint": "", "PersonalStorage": "container", "Shield": "shieldgenerator", "UtilityDevices": "", "Weapons": "weapon", "WeaponRack": "pistol-s38", "VehiclePart": "" },   "%class_groupings": "This defines the order and the grouping of the defined classes. The key is used to retrieve the tabber translation", "class_groupings": [ [           "avionic_systems", [               "Avionics", "Systems" ]       ],        [            "propulsion_thrusters", [               "Propulsion", "Thrusters" ]       ],        [            "weapons_utility", [               "Weapons", "Utility" ]       ],        [            "cargo_facilities", [               "Cargo", "Facilities" ]       ],        [            "vehicle_parts", [               "VehiclePart" ]       ]    ],    "%section_label_fixes": "Hardcoded list of types that needs to be fixed for section label", "section_label_fixes": {}, "%fixes": "Manually fix some (sub_)types by checking the hardpoint type", "fixes": [ {           "type": [ "ManneuverThruster", "MainThruster" ],           "modification": [ {                   "if": [ [                           "sub_type:FixedThruster", "or", "sub_type:UNDEFINED" ],                       "and", [                           "name:match:vtol" ]                   ],                    "then": "sub_type=VtolThruster" },               {                    "if": [ [                           "sub_type:FixedThruster", "or", "sub_type:UNDEFINED" ],                       "and", [                           "name:match:retro" ]                   ],                    "then": "sub_type=RetroThruster" },               {                    "if": [ [                           "sub_type:JointThruster", "or", "sub_type:UNDEFINED" ],                       "and", [                           "name:match:grav" ]                   ],                    "then": "sub_type=GravLev" },               {                    "if": [ "type:MainThruster" ],                   "then": "sub_type=Main+sub_type" }           ]        },        {            "type": "WeaponDefensive", "modification": [ {                   "if": [ [                           "sub_type:CountermeasureLauncher", "or", "sub_type:UNDEFINED" ],                       "and", [                           [                                "class_name:match:decoy" ],                           "or", [                               "class_name:match:flare" ]                       ]                    ],                    "then": "sub_type=DecoyLauncher" },               {                    "if": [ [                           "sub_type:CountermeasureLauncher", "or", "sub_type:UNDEFINED" ],                       "and", [                           [                                "class_name:match:chaff" ],                           "or", [                               "class_name:match:noise" ]                       ]                    ],                    "then": "sub_type=NoiseLauncher" }           ]        },        {            "type": "FuelTank", "modification": [ {                   "if": [ "class_name:match:small" ],                   "then": "sub_type=FuelTankSmall" },               {                    "if": [ "class_name:match:large" ],                   "then": "sub_type=FuelTankLarge" }           ]        },        {            "type": "QuantumFuelTank", "modification": [ {                   "if": [ "class_name:match:small" ],                   "then": "sub_type=QuantumFuelTankSmall" },               {                    "if": [ "class_name:match:small" ],                   "then": "sub_type=QuantumFuelTankLarge" }           ]        },        {            "type": "Turret", "modification": [ {                   "if": [ "sub_type:GunTurret", "and", "class_name:match:mount_gimbal" ],                   "then": [ "type=WeaponGun", "sub_type=GimbalMount" ]               },                {                    "if": [ "sub_type:BallTurret", "or", "sub_type:CanardTurret" ],                   "then": [ "type=WeaponGun" ]               },                {                    "if": [ "sub_type:Utility", "and", "class_name:match:salvage" ],                   "then": [ "type=UtilityTurret", "sub_type=GunTurret" ]               },                {                    "if": [ "sub_type:Turret", "and", "class_name:match:remote" ],                   "then": [ "sub_type=RemoteTurret" ]               }            ]        },        {            "type": "ToolArm", "modification": [ {                   "if": [ "sub_type:UNDEFINED", "and", "class_name:match:mining" ],                   "then": [ "sub_type=MiningArm" ]               },                {                    "if": [ "sub_type:UNDEFINED", "and", "class_name:match:salvage" ],                   "then": [ "sub_type=SalvageArm" ]               }            ]        },        {            "type": "DockingCollar", "modification": [ {                   "if": [ "sub_type:UNDEFINED", "and", "class_name:match:fuel_port" ],                   "then": [ "type=FuelPort" ]               },                {                    "if": [ "sub_type:UNDEFINED", "and", "class_name:match:nozzle_fuel" ],                   "then": [ "type=FuelNozzle" ]               }            ]        }    ] }