Skip to content

Commit

Permalink
feat: Use item finder (#1049)
Browse files Browse the repository at this point in the history
* feat: Use item finder

* Lint fix
  • Loading branch information
NigelBreslaw authored Apr 1, 2024
1 parent e043c92 commit 758b291
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion native/app/screens/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DestinyCell } from "@/app/inventory/Common.ts";
import { itemTypeDisplayName, itemsDefinition } from "@/app/store/Definitions.ts";
import { useGGStore } from "@/app/store/GGStore.ts";
import { itemSchema } from "@/app/store/Types";
import type { TransferItem } from "@/app/transfer/TransferLogic.ts";
import { findDestinyItem, type TransferItem } from "@/app/transfer/TransferLogic.ts";
import type { NavigationProp, RouteProp } from "@react-navigation/native";
import { Image } from "expo-image";
import { useEffect, useRef, useState } from "react";
Expand Down Expand Up @@ -122,6 +122,11 @@ export default function BottomSheet({
}
}, []);

const p1 = performance.now();
const destinyItem = findDestinyItem(itemInstanceId, itemHash);
const p2 = performance.now();
console.log("findDestinyItem", destinyItem.equipped, `${(p2 - p1).toFixed(4)} ms`);

function transferItem(
toCharacterId: string,
itemInstanceId: string | undefined,
Expand Down

0 comments on commit 758b291

Please sign in to comment.