mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
keys
This commit is contained in:
1 parent
3299ce069e
commit
f16e508e59
3 files changed
+20
-14
No files matched your search
@@ -29,7 +29,13 @@ export function TankopediaCharacteristics({
|
|||||||
|
|
||||||
if (!shouldRender) return null;
|
if (!shouldRender) return null;
|
||||||
|
|
||||||
return <Group group={group} characteristics={characteristics} />;
|
return (
|
||||||
|
<Group
|
||||||
|
key={group.name}
|
||||||
|
group={group}
|
||||||
|
characteristics={characteristics}
|
||||||
|
/>
|
||||||
|
);
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,9 +71,9 @@ function Group({ group, characteristics }: GroupProps) {
|
|||||||
{
|
{
|
||||||
(
|
(
|
||||||
strings.tanks.characteristics.titles as Record<string, string>
|
strings.tanks.characteristics.titles as Record<string, string>
|
||||||
)[group.group]
|
)[group.name]
|
||||||
}
|
}
|
||||||
<img src={`/media/groups/${group.group}.png`} />
|
<img src={`/media/groups/${group.name}.png`} />
|
||||||
</div>
|
</div>
|
||||||
</Heading>
|
</Heading>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ export enum TankopediaCompare {
|
|||||||
|
|
||||||
const groups: Record<string, boolean> = {};
|
const groups: Record<string, boolean> = {};
|
||||||
|
|
||||||
for (const { group } of characteristicsOrder) {
|
for (const { name } of characteristicsOrder) {
|
||||||
groups[group] = true;
|
groups[name] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Tankopedia = new Varuna<Tankopedia, Tank>((tank) => ({
|
export const Tankopedia = new Varuna<Tankopedia, Tank>((tank) => ({
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export interface ToyRenderConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export type CharacteristicsGroup = {
|
export type CharacteristicsGroup = {
|
||||||
group: string;
|
name: string;
|
||||||
render: CharacteristicsGroupRender;
|
render: CharacteristicsGroupRender;
|
||||||
order: (CharacteristicRenderConfig | ToyRenderConfig)[];
|
order: (CharacteristicRenderConfig | ToyRenderConfig)[];
|
||||||
};
|
};
|
||||||
@@ -101,7 +101,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "gun",
|
name: "gun",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{
|
{
|
||||||
@@ -121,7 +121,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "clip",
|
name: "clip",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "clipping_potential", localize: true, units: "hp" },
|
{ name: "clipping_potential", localize: true, units: "hp" },
|
||||||
@@ -139,7 +139,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "shell",
|
name: "shell",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "penetration", units: "mm" },
|
{ name: "penetration", units: "mm" },
|
||||||
@@ -157,7 +157,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "accuracy",
|
name: "accuracy",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "aim_time", decimals: 1, units: "s" },
|
{ name: "aim_time", decimals: 1, units: "s" },
|
||||||
@@ -168,7 +168,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "flexibility",
|
name: "flexibility",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "gun_depression", decimals: 0, units: "deg" },
|
{ name: "gun_depression", decimals: 0, units: "deg" },
|
||||||
@@ -181,7 +181,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "maneuverability",
|
name: "maneuverability",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "speed_forward", units: "km_h" },
|
{ name: "speed_forward", units: "km_h" },
|
||||||
@@ -207,7 +207,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "survivability",
|
name: "survivability",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "health", units: "hp" },
|
{ name: "health", units: "hp" },
|
||||||
@@ -222,7 +222,7 @@ export const characteristicsOrder: CharacteristicsGroup[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
group: "concealment",
|
name: "concealment",
|
||||||
render: CharacteristicsGroupRender.Statistical,
|
render: CharacteristicsGroupRender.Statistical,
|
||||||
order: [
|
order: [
|
||||||
{ name: "view_range", units: "m" },
|
{ name: "view_range", units: "m" },
|
||||||
|
|||||||
Reference in new issue
Block a user