mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
start of scripts
This commit is contained in:
1 parent
b4175dc60d
commit
bf132a7387
3 files changed
+19
-4
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import type { CaseType } from "@blitzkit/core";
|
||||
import type { GunDefinition } from "@blitzkit/protos";
|
||||
import type { CharacteristicsGroup } from "../types/characteristics";
|
||||
|
||||
export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
@@ -67,8 +69,10 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
order: [
|
||||
{
|
||||
name: "gun_type",
|
||||
render({ output }) {
|
||||
return GunType[output as GunType];
|
||||
render({ output, strings }) {
|
||||
return strings.common.gun_types[
|
||||
output as CaseType<GunDefinition["gun_type"]>
|
||||
];
|
||||
},
|
||||
},
|
||||
{ name: "dpm", decimals: 0, units: "hp", localize: true },
|
||||
|
||||
Reference in new issue
Block a user