From b4323e63f326c9b065b9997b6c8fa4836206942b Mon Sep 17 00:00:00 2001 From: 1092384 <66282302+1092384@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:55:23 +0800 Subject: [PATCH] feat: switch around dps table and weapon comparer + add some random tables in component testing page --- app/(wiki)/kitchen-sink/page.tsx | 40 ++++++++++++++++++++++++++++++-- app/(wiki)/weapons/page.tsx | 14 +++++------ 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/app/(wiki)/kitchen-sink/page.tsx b/app/(wiki)/kitchen-sink/page.tsx index a3c241e8..246821b4 100644 --- a/app/(wiki)/kitchen-sink/page.tsx +++ b/app/(wiki)/kitchen-sink/page.tsx @@ -36,9 +36,7 @@ export default function Kitchen() { ["bleh", ":3", "silly"] ]} /> -

-

+ +

Gun Bullet Damage Table

+ + )} + className="my-4" + > +
+ + [gun.name, gun.ballistics.damage] + ).sort((a, b) => (Number(b[1]) - Number(a[1]))) + ]} + /> +
+
+ +

Gun Capacity Table

+ + )} + className="my-4" + > +
+ + [gun.name, gun.capacity, gun.extendedCapacity ?? gun.capacity] + ).sort((a, b) => (Number(b[1]) - Number(a[1]))) + ]} + /> +
+
diff --git a/app/(wiki)/weapons/page.tsx b/app/(wiki)/weapons/page.tsx index 294c0b59..245fdd34 100644 --- a/app/(wiki)/weapons/page.tsx +++ b/app/(wiki)/weapons/page.tsx @@ -134,29 +134,29 @@ export default function WeaponsPage() { -

Gun DPS Table

+

Gun Comparer

)} className="my-4" >
- +
-

Gun Comparer

+

Gun DPS Table

)} className="my-4" >
- +