mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-28 12:23:24 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
commit
1b08393f65
60 files changed
+434
-474
No files matched your search
@@ -8,6 +8,7 @@ export interface WargamingLogin {
|
||||
|
||||
export interface App {
|
||||
developerMode: boolean;
|
||||
autoLoadModels: boolean;
|
||||
policiesAgreementIndex: number;
|
||||
logins: {
|
||||
wargaming?: WargamingLogin;
|
||||
@@ -17,6 +18,7 @@ export interface App {
|
||||
export const App = new Soapstone<App>(
|
||||
{
|
||||
developerMode: false,
|
||||
autoLoadModels: true,
|
||||
policiesAgreementIndex: -1,
|
||||
logins: {},
|
||||
},
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { times } from "lodash-es";
|
||||
import { Soapstone } from "soapstone";
|
||||
import type { TankDefinition } from "@blitzkit/core";
|
||||
import { Varuna } from "varuna";
|
||||
import { awaitableTiers } from "../core/awaitables/tiers";
|
||||
|
||||
const tiers = await awaitableTiers;
|
||||
|
||||
export enum GuessState {
|
||||
Correct,
|
||||
@@ -25,5 +27,5 @@ export const Guess = new Soapstone<Guess, [TankDefinition]>((tank) => ({
|
||||
correctGuesses: 0,
|
||||
streak: 0,
|
||||
helpingReveal: false,
|
||||
tiers: times(10, (index) => index + 1),
|
||||
tiers,
|
||||
}));
|
||||
@@ -41,6 +41,7 @@ export type Shot = {
|
||||
containsGaps: boolean;
|
||||
damage: number;
|
||||
splashRadius?: number;
|
||||
penetrationChance?: number;
|
||||
|
||||
in: {
|
||||
surfaceNormal: Vector3;
|
||||
@@ -88,6 +89,7 @@ interface Tankopedia {
|
||||
antagonist: TankState;
|
||||
environment: TankEnvironment;
|
||||
|
||||
modelRequested: boolean;
|
||||
shot?: Shot;
|
||||
skills: Record<string, number>;
|
||||
relativeAgainst: TankopediaRelativeAgainst;
|
||||
@@ -127,6 +129,8 @@ export const Tankopedia = new Soapstone<Tankopedia, [TankDefinition]>(
|
||||
|
||||
environment: { equalize: false, distance: 0 },
|
||||
|
||||
modelRequested: false,
|
||||
|
||||
relativeAgainst: TankopediaRelativeAgainst.Class,
|
||||
editStatic: false,
|
||||
skills: createDefaultSkills(skills),
|
||||
|
||||
Reference in new issue
Block a user