From 86ef2b5ff44b68c9c92cae4f67224a859f1340e1 Mon Sep 17 00:00:00 2001 From: Razzmatazz Date: Thu, 6 Apr 2023 06:48:52 -0500 Subject: [PATCH 1/2] add Fence rep, hideout bonuses --- resolvers/hideoutResolver.js | 14 ++++++++++++++ schema.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/resolvers/hideoutResolver.js b/resolvers/hideoutResolver.js index f1dfd1a6..c2ef401a 100644 --- a/resolvers/hideoutResolver.js +++ b/resolvers/hideoutResolver.js @@ -16,6 +16,20 @@ module.exports = { return context.util.getLocale(data, 'name', info); } }, + HideoutStationBonus: { + name(data, args, context, info) { + return context.util.getLocale(data, 'name', info); + }, + skillName(data, args, context, info) { + return context.util.getLocale(data, 'skillName', info); + }, + slotItems(data, args, context, info) { + if (!data.slotItems || data.slotItems.length === 0) { + return []; + } + return context.data.item.getItemsByIDs(context.requestId, data.slotItems); + } + }, HideoutStationLevel: { crafts(data, args, context, info) { context.util.testDepthLimit(info, 2); diff --git a/schema.js b/schema.js index fbf8630a..0dab105e 100644 --- a/schema.js +++ b/schema.js @@ -175,6 +175,16 @@ type HideoutStation { crafts: [Craft]! } +type HideoutStationBonus { + type: String! + name: String! + value: Float + passive: Boolean + production: Boolean + slotItems: [Item] + skillName: String +} + type HideoutStationLevel { id: ID! #name: String! @@ -188,6 +198,7 @@ type HideoutStationLevel { tarkovDataId: Int "crafts is only available via the hideoutStations query." crafts: [Craft]! + bonuses: [HideoutStationBonus] } type historicalPricePoint { @@ -998,6 +1009,7 @@ type Trader { currency: Item! discount: Float! levels: [TraderLevel!]! + reputationLevels: [TraderReputationLevel]! "barters and cashOffers are only available via the traders query." barters: [Barter]! cashOffers: [TraderCashOffer]! @@ -1054,6 +1066,22 @@ type TraderOffer implements Vendor { taskUnlock: Task } +union TraderReputationLevel = TraderReputationLevelFence + +type TraderReputationLevelFence { + minimumReputation: Int! + scavCooldownModifier: Float + scavCaseTimeModifier: Float + extractPriceModifier: Float + scavFollowChance: Float + scavEquipmentSpawnChanceModifier: Float + priceModifier: Float + hostileBosses: Boolean + hostileScavs: Boolean + scavAttackSupport: Boolean + availableScavExtracts: Int +} + type TraderStanding { trader: Trader! standing: Float! From 65d1f543896ba0a1c87020be5b7c82b052c30ec5 Mon Sep 17 00:00:00 2001 From: Razzmatazz Date: Sat, 8 Apr 2023 15:20:15 -0500 Subject: [PATCH 2/2] add ItemPropertiesResource --- schema.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schema.js b/schema.js index 0dab105e..b7923219 100644 --- a/schema.js +++ b/schema.js @@ -499,6 +499,10 @@ type ItemPropertiesPreset { default: Boolean } +type ItemPropertiesResource { + units: Int +} + type ItemPropertiesScope { ergonomics: Float sightModes: [Int] @@ -583,6 +587,7 @@ union ItemProperties = ItemPropertiesNightVision | ItemPropertiesPainkiller | ItemPropertiesPreset | + ItemPropertiesResource | ItemPropertiesScope | ItemPropertiesSurgicalKit | ItemPropertiesWeapon |