Skip to main content

normalizeVitalsData()

function normalizeVitalsData(partial?: Partial<{
  armor: number;
  health: number;
}>): {
  armor: number;
  health: number;
};

Defined in: src/modules/core/needs/types.ts:118

Creates normalized VitalsData from partial values.

Parameters

ParameterType
partial?Partial<{ armor: number; health: number; }>

Returns

NameTypeDescriptionDefined in
armornumberArmor level (0 = no armor, 100 = max armor).src/modules/core/needs/types.ts:59
healthnumberHealth level (0 = dead, 100 = full health).src/modules/core/needs/types.ts:57