Skip to content

Commit

Permalink
fixes and regulation for resolve #98
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed Feb 15, 2024
1 parent e1965bc commit 6183302
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
5 changes: 4 additions & 1 deletion i18n/locales/en/game.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,8 @@
"COOLDOWN_AFTER_JUMPING_TO_ANOTHER_SHIP_TYPE": "Cooldown after jumping to another ship type",
"MOONS": "Moons",
"TURRET": "Turret",
"BLUEPRINTS_GRANTED": "Blueprints granted"
"BLUEPRINTS_GRANTED": "Blueprints granted",
"MINIMUM_RANGE": "Minimum range",
"HYDRO_COST_MODIFIER": "Hydro cost modifier",
"ARTIFACT_DRS_POINTS": "Points for DRS artifact"
}
2 changes: 1 addition & 1 deletion src/components/DataStatByStar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const table = computed<Table>(() => {
});
});
if (!Object.keys(props.items).some((k) => BS_REGEX.test(k))) {
if (!Object.keys(props.items).some((k) => BS_REGEX.test(k)) && usedStars.includes('BS')) {
usedStars.splice(usedStars.indexOf('BS'), 1);
}
usedStars = usedStars.sort((a, b) => Object.keys(STARS).indexOf(a) - Object.keys(STARS).indexOf(b));
Expand Down
16 changes: 11 additions & 5 deletions src/regulation/hideKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export default {
'InitialModule',
'InitialModuleLevels',
'BarrierPreventsTeleport',
'SeparateBuildingPerLevel',
'PrefabModel_WithStarHarvester',
'StarScannerType',

// временно ?
'BSPenaltyPerSec',
Expand Down Expand Up @@ -141,7 +144,7 @@ export default {

// Ships.FlagmanModules
/(Recoil|Immolation|EMPRocket|FlagshipWeaponModule|FlagshipDartBarrage|FlagshipShieldModule|FlagshipAreaShield|FlagshipDroneSwarm|FlagshipRocketCluster)\.RSLevel/,
/(Recoil|Immolation|EMPRocket|FlagshipWeaponModule|FlagshipDartBarrage|FlagshipShieldModule|FlagshipAreaShield|FlagshipDroneSwarm|FlagshipRocketCluster)\.UnlockBlueprints/,
/(Recoil|Immolation|EMPRocket|FlagshipWeaponModule|FlagshipDartBarrage|FlagshipShieldModule|FlagshipAreaShield|FlagshipDroneSwarm|FlagshipRocketCluster|FlagshipStealth)\.UnlockBlueprints/,
'FlagshipDartBarrage.SingleTarget',
'FlagshipDartBarrage.SingleTarget',
'FlagshipDroneSwarm.NewModuleSlots',
Expand Down Expand Up @@ -224,7 +227,7 @@ export default {
'HydroStorageCapacity.FuelUseIncrease',

// Weapons
/(WeakBattery|GuardianBattery|InterceptorMBattery|ColossusLaser|DestroyerVengeance|BomberLauncher|PhoenixShield|DartBarrage)\.(UnlockPrice|UnlockBlueprints|UnlockTime|ShowWSInfo|Install|BCCost)/, // В небуле не неужно модулям церберов
/(WeakBattery|GuardianBattery|InterceptorMBattery|ColossusLaser|DestroyerVengeance|BomberLauncher|PhoenixShield|DartBarrage|ColossusSalvage|StormDarts|HydraBarrage)\.(UnlockPrice|UnlockBlueprints|UnlockTime|ShowWSInfo|Install|BCCost|RSLevel)/,
'PlayerRocketLauncher.MinEffectRadius',
'ChainRay.MaxIncomingLinks', // хз что это

Expand All @@ -240,16 +243,19 @@ export default {
'Bond.BondMinPullVector',
'Bond.BondMaxPullListSize',
'Bond.BondWorksOnLoadingTransport',
/((\w+)Drone|LaserTurret|DroneSquad)\.(BuildCost|DesignUpgradeCost|DesignUpgradeTime|NewModuleSlots)/,
/((\w+)Drone|LaserTurret|DroneSquadShip)\.(BuildCost|DesignUpgradeCost|DesignUpgradeTime|NewModuleSlots)/,
'RemoteBomb.SpeedPVE',
'RemoteBomb.SpeedPVP',
'RemoteBomb.Speed_WS',
'RemoteBomb.Speed_BS',
'LaserTurret.Speed',
'LaserTurret.MaxPerRS',
'DeltaRocket.PreventUseOnWsJumpgate',
/^\w+\.Is\w+/,

// Drone
'DecoyDrone.HasTaunt',
'DeltaDrones.NewModuleSlots',
/(DroneRocketLauncher|ChainRayForDrone)\.UnlockBlueprints/,
'LaserTurret.MaxPerRS',
/(LaserTurret|DeltaDroneBattery|DeltaDroneTeleport|DroneSquadBattery)\.(RSLevel|UnlockBlueprints)/,
],
};
7 changes: 5 additions & 2 deletions src/regulation/locKeys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ export const gameCharsLocKeys = {
JumpCostMiner: 'TID_SHIP_MINER',
JumpCostBattleship: 'TID_SHIP_BATTLESHIP',
Sentinel: 'TID_SHIP_CERB_FIGHTER',
Guardian: 'TID_SHIP_CERB_COLOSSUS',
Colossu: 'TID_SHIP_CERB_SECTOR_GUARDIAN',
Guardian: 'TID_SHIP_CERB_SECTOR_GUARDIAN',
Colossu: 'TID_SHIP_CERB_COLOSSUS',
TimeToResearch: 'TID_OBJ_RESEARCH_ARTIFACTS',
ShipmentsCRValuePerDay: 'TID_PLANET_UPG_SHIPMENT_YIELD',
TINDMG: 'TID_MODULE_STAT_TELEPORT_DAMAGE',
Expand Down Expand Up @@ -330,6 +330,9 @@ export default {
TimeToUpgradeParallel: 'UPGRADE_TIME_IN_PARALLEL',
turret: 'TURRET',
BlueprintsGranted: 'BLUEPRINTS_GRANTED',
MinEffectRadius: 'MINIMUM_RANGE',
HydroCostModifierPct: 'HYDRO_COST_MODIFIER',
ArtifactDRSPoints: 'ARTIFACT_DRS_POINTS',

...gameCharsLocKeys,
...gameSlostLocKeys,
Expand Down

0 comments on commit 6183302

Please sign in to comment.