Skip to content

Commit

Permalink
fix: (season 7) Fix typing for abandoned resources in score containers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirroar committed Sep 8, 2024
1 parent 58313aa commit 76e7514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/room-intel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ export default class RoomIntel {

// @todo Also consider dropped resources or other structures.
const resources: Partial<Record<ResourceConstant, number>> = {};
const collections = [structures[STRUCTURE_STORAGE], structures[STRUCTURE_TERMINAL], ruins] as Array<Array<AnyStoreStructure | Ruin>>;
const collections = [structures[STRUCTURE_STORAGE], structures[STRUCTURE_TERMINAL], ruins] as Array<Array<AnyStoreStructure | Ruin | ScoreContainer>>;
if (Game.shard.name === 'shardSeason') {
collections.push(room.find(FIND_SCORE_CONTAINERS));
}
Expand Down

0 comments on commit 76e7514

Please sign in to comment.