Skip to content

Commit aa40c0a

Browse files
committed
Add loose loot to Map
1 parent 4adb471 commit aa40c0a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

resolvers/mapResolver.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ export default {
7777
return context.data.worker.map.getLootContainer(context, info, data.lootContainer);
7878
},
7979
},
80+
LootLoosePosition: {
81+
items(data, args, context, info) {
82+
return context.data.worker.item.getItemsByIDs(context, info, data.items);
83+
},
84+
},
8085
Map: {
8186
accessKeys(data, args, context, info) {
8287
return context.data.worker.item.getItemsByIDs(context, info, data.accessKeys);

schema-static.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,11 @@ type LootContainerPosition {
724724
position: MapPosition
725725
}
726726
727+
type LootLoosePosition {
728+
items: [Item]
729+
position: MapPosition
730+
}
731+
727732
type Map {
728733
id: ID!
729734
tarkovDataId: ID
@@ -747,6 +752,7 @@ type Map {
747752
switches: [MapSwitch]
748753
hazards: [MapHazard]
749754
lootContainers: [LootContainerPosition]
755+
lootLoose: [LootLoosePosition]
750756
stationaryWeapons: [StationaryWeaponPosition]
751757
artillery: MapArtillerySettings
752758
#svg: MapSvg

0 commit comments

Comments
 (0)