From 2986efee3475e4ac6a483e51d0e59ed899035f3d Mon Sep 17 00:00:00 2001 From: Razzmatazz Date: Tue, 21 Jun 2022 08:56:05 -0500 Subject: [PATCH] add stim effects to item props --- resolvers/itemResolver.js | 8 ++++++++ schema.js | 19 ++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/resolvers/itemResolver.js b/resolvers/itemResolver.js index 1c7de634..e6de1ed5 100644 --- a/resolvers/itemResolver.js +++ b/resolvers/itemResolver.js @@ -238,6 +238,14 @@ module.exports = { return data.count; } }, + StimEffect: { + type(data, args, context, info) { + return context.util.getLocale(data, 'type', info); + }, + skillName(data, args, context, info) { + return context.util.getLocale(data, 'skillName', info); + } + }, Vendor: { __resolveType(data, args, context) { if (data.trader) return 'TraderOffer'; diff --git a/schema.js b/schema.js index 66369d01..7730aafc 100644 --- a/schema.js +++ b/schema.js @@ -352,6 +352,12 @@ type ItemPropertiesScope { zoomLevels: [[Float]] } +type ItemPropertiesStim { + useTime: Int + cures: [String] + stimEffects: [StimEffect]! +} + type ItemPropertiesSurgicalKit { uses: Int useTime: Int @@ -390,7 +396,8 @@ union ItemProperties = ItemPropertiesScope | ItemPropertiesSurgicalKit | ItemPropertiesWeapon | - ItemPropertiesWeaponMod + ItemPropertiesWeaponMod | + ItemPropertiesStim enum ItemSourceName { prapor @@ -562,6 +569,16 @@ type StatusMessage { statusCode: String! } +type StimEffect { + type: String! + chance: Float! + delay: Int! + duration: Int! + value: Float! + percent: Boolean! + skillName: String +} + type Task { id: ID tarkovDataId: Int