Something went wrong. Try again.
Starship Simulator Controls thoriumsim.com
Something went wrong. Try again.
592 B · 21 lines
TypeScript
at develop
12345678910111213141516171819202122import { damageEffectsObject } from "@thorium/ecs-components/shipSystems/damageEffectsObject";import { damageTypes } from "@thorium/utils/flags/damageTypes";import z from "zod";
// The damage report itself is handled through the timeline componentexport const damageReport = z.object({ shipId: z.number(), systemId: z.number(), damageType: damageTypes, abortable: z.boolean(), autoApplyWhenCompleted: z.boolean().default(true), affectedSystems: z .object({ id: z.number(), name: z.string(), effects: damageEffectsObject, }) .array() .optional() .default([]),});