Skip to content

Commit

Permalink
fix loot discoveries
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Jun 25, 2024
1 parent c07c2d3 commit eb5255c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const VRF_FEE_LIMIT = 5000000000000000; // 0.005 ETH
// UI PARAMS
export const MIN_BALANCE = 100000000000000; // 0.00001ETH or $0.15
export const getWaitRetryInterval = (network: string) =>
network === "mainnet" || network === "sepolia" ? 6000 : 10; // 6 seconds on sepolia + mainnet, 10ms on katana
network === "mainnet" || network === "sepolia" ? 4000 : 10; // 6 seconds on sepolia + mainnet, 10ms on katana
export const ETH_INCREMENT = 0.001;
export const LORDS_INCREMENT = 5;
export const getMaxFee = (network: string) =>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/app/lib/data/GameData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,8 @@ export class GameData {
AdventurerUpgraded: hash.getSelectorFromName("AdventurerUpgraded"),
DiscoveredHealth: hash.getSelectorFromName("DiscoveredHealth"),
DiscoveredGold: hash.getSelectorFromName("DiscoveredGold"),
DiscoveredXP: hash.getSelectorFromName("DiscoveredXP"),
DiscoveredLoot: hash.getSelectorFromName("DiscoveredLoot"),
EquipmentChanged: hash.getSelectorFromName("EquipmentChanged"),
DodgedObstacle: hash.getSelectorFromName("DodgedObstacle"),
HitByObstacle: hash.getSelectorFromName("HitByObstacle"),
DiscoveredBeast: hash.getSelectorFromName("DiscoveredBeast"),
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/lib/utils/processData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,12 @@ export function processData(
}

const processedEquippedItems = processLootDiscovery(
formattedEquipmentChangedEquippedItems,
equipmentChangedEvent.equippedItems,
true,
equipmentChangedEvent.adventurerStateWithBag.adventurerState
);
const processedBaggedItems = processLootDiscovery(
formattedEquipmentChangedBaggedItems,
equipmentChangedEvent.baggedItems,
false,
equipmentChangedEvent.adventurerStateWithBag.adventurerState
);
Expand Down

0 comments on commit eb5255c

Please sign in to comment.