Skip to content

Commit

Permalink
feat: switch around dps table and weapon comparer + add some random t…
Browse files Browse the repository at this point in the history
…ables in component testing page
  • Loading branch information
1092384 committed Jan 15, 2025
1 parent 927914e commit b4323e6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
40 changes: 38 additions & 2 deletions app/(wiki)/kitchen-sink/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export default function Kitchen() {
["bleh", ":3", "silly"]
]}
/>
<p>

</p>
<MatrixTable
title="1092384 sucks at css"
tHeader={["1", "2", "3"]}
Expand All @@ -63,6 +61,44 @@ export default function Kitchen() {
}}
/>
<WeaponComparer />
<Collapsible
label={(
<div className="prose prose-invert">
<h2 id="damage_table">Gun Bullet Damage Table</h2>
</div>
)}
className="my-4"
>
<div className="mt-4">
<TableWithHeader
header={["Gun", "Damage"]}
content={[
...Guns.definitions.map(gun =>
[gun.name, gun.ballistics.damage]
).sort((a, b) => (Number(b[1]) - Number(a[1])))
]}
/>
</div>
</Collapsible>
<Collapsible
label={(
<div className="prose prose-invert">
<h2 id="capacity_table">Gun Capacity Table</h2>
</div>
)}
className="my-4"
>
<div className="mt-4">
<TableWithHeader
header={["Gun", "Capacity", "Capacity with Extended Magazines Perk"]}
content={[
...Guns.definitions.map(gun =>
[gun.name, gun.capacity, gun.extendedCapacity ?? gun.capacity]
).sort((a, b) => (Number(b[1]) - Number(a[1])))
]}
/>
</div>
</Collapsible>
<PlayerWearingEquipment />
<DevWeapon />
<Empty />
Expand Down
14 changes: 7 additions & 7 deletions app/(wiki)/weapons/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,29 +134,29 @@ export default function WeaponsPage() {
<Collapsible
label={(
<div className="prose prose-invert">
<h2 id="dps_table">Gun DPS Table</h2>
<h2 id="gun_comparer">Gun Comparer</h2>
</div>
)}
className="my-4"
>
<div className="mt-4">
<TableWithHeader
header={["Gun", "DPS", "Obstacle DPS"]}
content={[...dpsList]}
/>
<WeaponComparer />
</div>

</Collapsible>
<Collapsible
label={(
<div className="prose prose-invert">
<h2 id="gun_comparer">Gun Comparer</h2>
<h2 id="dps_table">Gun DPS Table</h2>
</div>
)}
className="my-4"
>
<div className="mt-4">
<WeaponComparer />
<TableWithHeader
header={["Gun", "DPS", "Obstacle DPS"]}
content={[...dpsList]}
/>
</div>

</Collapsible>
Expand Down

0 comments on commit b4323e6

Please sign in to comment.