Adding AX modules

This commit is contained in:
Sean McIntyre
2018-01-22 15:20:41 -05:00
parent 7d569f9036
commit bf20d32364
5 changed files with 19 additions and 7 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "coriolis_shipyard",
"version": "2.4.1",
"version": "2.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -96,7 +96,7 @@
"babel-polyfill": "*",
"browserify-zlib-next": "^1.0.1",
"classnames": "^2.2.5",
"coriolis-data": "../coriolis-data",
"coriolis-data": "file:../coriolis-data",
"d3": "4.8.0",
"detect-browser": "^1.7.0",
"fbemitter": "^2.1.1",

View File

@@ -37,10 +37,12 @@ const GRPCAT = {
'ml': 'lasers',
'c': 'projectiles',
'mc': 'projectiles',
'axmc': 'projectiles',
'fc': 'projectiles',
'pa': 'projectiles',
'rg': 'projectiles',
'mr': 'ordnance',
'axmr': 'ordnance',
'tp': 'ordnance',
'nl': 'ordnance',
'sc': 'scanners',
@@ -49,9 +51,11 @@ const GRPCAT = {
'cs': 'scanners',
'kw': 'scanners',
'ws': 'scanners',
'xs': 'scanners',
'ch': 'defence',
'po': 'defence',
'ec': 'defence',
'sfn': 'defence'
};
// Order here is the order in which items will be shown in the modules menu
const CATEGORIES = {
@@ -69,13 +73,13 @@ const CATEGORIES = {
'dc': ['dc'],
// Hardpoints
'lasers': ['pl', 'ul', 'bl', 'ml'],
'projectiles': ['mc', 'c', 'fc', 'pa', 'rg'],
'ordnance': ['mr', 'tp', 'nl'],
'projectiles': ['mc', 'axmc', 'c', 'fc', 'pa', 'rg'],
'ordnance': ['mr', 'axmr', 'tp', 'nl'],
// Utilities
'sb': ['sb'],
'hs': ['hs'],
'defence': ['ch', 'po', 'ec'],
'scanners': ['sc', 'ss', 'cs', 'kw', 'ws'], // Overloaded with internal scanners
'defence': ['ch', 'po', 'ec', 'sfn'],
'scanners': ['sc', 'ss', 'cs', 'kw', 'ws', 'xs'], // Overloaded with internal scanners
};
/**

View File

@@ -98,8 +98,10 @@
"kw": "Kill Warrant Scanner",
"ls": "Life Support",
"mc": "Multi-cannon",
"axmc": "AX Multi-cannon",
"ml": "Mining Laser",
"mr": "Missile Rack",
"axmr": "AX Missile Rack",
"mrp": "Module Reinforcement Package",
"nl": "Mine Launcher",
"pa": "Plasma Accelerator",
@@ -121,6 +123,7 @@
"sb": "Shield Booster",
"sc": "Stellar Scanners",
"scb": "Shield Cell Bank",
"sfn": "Shutdown Field Neutraliser",
"sg": "Shield Generator",
"ss": "Surface Scanners",
"t": "thrusters",
@@ -128,6 +131,7 @@
"ul": "Burst Laser",
"ws": "Frame Shift Wake Scanner",
"rpl": "Repair Limpet Controller",
"xs": "Xeno Scanner",
"emptyrestricted": "empty (restricted)",
"damage dealt to": "Damage dealt to",
"damage received from": "Damage received from",

View File

@@ -64,13 +64,17 @@ export const ModuleGroupToName = {
nl: 'Mine Launcher',
ml: 'Mining Laser',
mr: 'Missile Rack',
axmr: 'AX Missile Rack',
pa: 'Plasma Accelerator',
po: 'Point Defence',
mc: 'Multi-cannon',
axmc: 'AX Multi-cannon',
pl: 'Pulse Laser',
rg: 'Rail Gun',
sb: 'Shield Booster',
tp: 'Torpedo Pylon'
tp: 'Torpedo Pylon',
sfn: 'Shutdown Field Neutraliser',
xs: 'Xeno Scanner'
};
let GrpNameToCodeMap = {};