combat
Interfaces
Section titled “Interfaces”CombatConfigurationSnapshot
Section titled “CombatConfigurationSnapshot”Defined in: packages/sage/src/combat/index.ts:169
Immutable Game combat configuration and stimulant catalog.
Example
Section titled “Example”declare const configuration: CombatConfigurationSnapshot;console.log(configuration.globalCeasefire, configuration.maxFleetSize);Extends
Section titled “Extends”Omit<GameCombatConfigurationData,"stimulantDefinitions">
Properties
Section titled “Properties”address
Section titled “address”readonly address: Address;Defined in: packages/sage/src/combat/index.ts:174
cargoRespawnTimeSeconds
Section titled “cargoRespawnTimeSeconds”readonly cargoRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:261
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.cargoRespawnTimeSeconds
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:260
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.crewRespawnTimeSeconds
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:255
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.globalCeasefire
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:256
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.interactionRange
readonly kind: "combatConfiguration";Defined in: packages/sage/src/combat/index.ts:173
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:257
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.lootExclusivityTimeSeconds
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:263
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxFleetSize
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:258
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxLootRate
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:262
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.rawShipsRespawnTimeSeconds
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:259
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.starbaseUpgradeProgressContinuation
stimulantDefinitions
Section titled “stimulantDefinitions”readonly stimulantDefinitions: { definitions: readonly CombatStimulantDefinition[]; sequenceId: number;};Defined in: packages/sage/src/combat/index.ts:175
definitions
Section titled “definitions”readonly definitions: readonly CombatStimulantDefinition[];sequenceId
Section titled “sequenceId”readonly sequenceId: number;Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:179
Returns
Section titled “Returns”unknown
CombatStimulantDefinition
Section titled “CombatStimulantDefinition”Defined in: packages/sage/src/combat/index.ts:157
One cargo-backed combat stimulant definition.
Example
Section titled “Example”declare const stimulant: CombatStimulantDefinition;console.log(stimulant.cargo.name, stimulant.effects.length);Properties
Section titled “Properties”readonly cargo: CargoDefinitionSummary;Defined in: packages/sage/src/combat/index.ts:158
effects
Section titled “effects”readonly effects: readonly GameStimulantEffectData[];Defined in: packages/sage/src/combat/index.ts:159
FleetCombatStatsData
Section titled “FleetCombatStatsData”Defined in: packages/sage/src/internal/c4/fleet.ts:212
Translated Fleet combat statistics.
Example
Section titled “Example”declare const stats: FleetCombatStatsData;const hitPoints = stats.hp;Properties
Section titled “Properties”aimAbility
Section titled “aimAbility”readonly aimAbility: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:264
U26F6 fixed-point client display value; exact encoded integer retained in raw.
ammoConsumptionRate
Section titled “ammoConsumptionRate”readonly ammoConsumptionRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:216
readonly ap: number;Defined in: packages/sage/src/internal/c4/fleet.ts:213
apRegenRate
Section titled “apRegenRate”readonly apRegenRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:217
counterDecoy
Section titled “counterDecoy”readonly counterDecoy: number;Defined in: packages/sage/src/internal/c4/fleet.ts:250
counterEnergyCapacitor
Section titled “counterEnergyCapacitor”readonly counterEnergyCapacitor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:251
counterFaradayShielding
Section titled “counterFaradayShielding”readonly counterFaradayShielding: number;Defined in: packages/sage/src/internal/c4/fleet.ts:258
counterFireSuppressor
Section titled “counterFireSuppressor”readonly counterFireSuppressor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:252
counterFlare
Section titled “counterFlare”readonly counterFlare: number;Defined in: packages/sage/src/internal/c4/fleet.ts:253
counterHealingNanobots
Section titled “counterHealingNanobots”readonly counterHealingNanobots: number;Defined in: packages/sage/src/internal/c4/fleet.ts:254
counterMine
Section titled “counterMine”readonly counterMine: number;Defined in: packages/sage/src/internal/c4/fleet.ts:255
counterNegativeRemPlating
Section titled “counterNegativeRemPlating”readonly counterNegativeRemPlating: number;Defined in: packages/sage/src/internal/c4/fleet.ts:256
counterWarmingPlates
Section titled “counterWarmingPlates”readonly counterWarmingPlates: number;Defined in: packages/sage/src/internal/c4/fleet.ts:257
critChance
Section titled “critChance”readonly critChance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:266
U26F6 fixed-point critical-hit value; no probability or percentage interpretation is implied.
critMultiplier
Section titled “critMultiplier”readonly critMultiplier: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:268
U26F6 fixed-point critical multiplier.
damageBomb
Section titled “damageBomb”readonly damageBomb: number;Defined in: packages/sage/src/internal/c4/fleet.ts:247
damageBombVariance
Section titled “damageBombVariance”readonly damageBombVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:249
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageEmp
Section titled “damageEmp”readonly damageEmp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:232
damageEmpVariance
Section titled “damageEmpVariance”readonly damageEmpVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:234
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageEnergy
Section titled “damageEnergy”readonly damageEnergy: number;Defined in: packages/sage/src/internal/c4/fleet.ts:229
damageEnergyVariance
Section titled “damageEnergyVariance”readonly damageEnergyVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:231
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageGraygoo
Section titled “damageGraygoo”readonly damageGraygoo: number;Defined in: packages/sage/src/internal/c4/fleet.ts:241
damageGraygooVariance
Section titled “damageGraygooVariance”readonly damageGraygooVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:243
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageHeat
Section titled “damageHeat”readonly damageHeat: number;Defined in: packages/sage/src/internal/c4/fleet.ts:244
damageHeatVariance
Section titled “damageHeatVariance”readonly damageHeatVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:246
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageKinetic
Section titled “damageKinetic”readonly damageKinetic: number;Defined in: packages/sage/src/internal/c4/fleet.ts:226
damageKineticVariance
Section titled “damageKineticVariance”readonly damageKineticVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:228
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageShockwave
Section titled “damageShockwave”readonly damageShockwave: number;Defined in: packages/sage/src/internal/c4/fleet.ts:238
damageShockwaveVariance
Section titled “damageShockwaveVariance”readonly damageShockwaveVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:240
U26F6 fixed-point client display value; exact encoded integer retained in raw.
damageSuperchill
Section titled “damageSuperchill”readonly damageSuperchill: number;Defined in: packages/sage/src/internal/c4/fleet.ts:235
damageSuperchillVariance
Section titled “damageSuperchillVariance”readonly damageSuperchillVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:237
U26F6 fixed-point client display value; exact encoded integer retained in raw.
fuelConsumptionRate
Section titled “fuelConsumptionRate”readonly fuelConsumptionRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:270
U26F6 fixed-point client display value; exact encoded integer retained in raw.
hitChance
Section titled “hitChance”readonly hitChance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:262
U26F6 fixed-point hit value; no probability or percentage interpretation is implied.
readonly hp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:214
lootRate
Section titled “lootRate”readonly lootRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:223
missileDamage
Section titled “missileDamage”readonly missileDamage: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:272
U26F6 fixed-point client display value; exact encoded integer retained in raw.
missileFireRate
Section titled “missileFireRate”readonly missileFireRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:274
U26F6 fixed-point client display value; exact encoded integer retained in raw.
repairAbility
Section titled “repairAbility”readonly repairAbility: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:220
repairCost
Section titled “repairCost”readonly repairCost: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:222
repairEfficiency
Section titled “repairEfficiency”readonly repairEfficiency: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:221
repairRate
Section titled “repairRate”readonly repairRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:219
shieldBreakDelaySeconds
Section titled “shieldBreakDelaySeconds”readonly shieldBreakDelaySeconds: number;Defined in: packages/sage/src/internal/c4/fleet.ts:224
shieldRechargeRate
Section titled “shieldRechargeRate”readonly shieldRechargeRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:218
readonly sp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:215
stealthPower
Section titled “stealthPower”readonly stealthPower: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:260
U26F6 fixed-point client display value; exact encoded integer retained in raw.
warpSpoolTimeSeconds
Section titled “warpSpoolTimeSeconds”readonly warpSpoolTimeSeconds: number;Defined in: packages/sage/src/internal/c4/fleet.ts:225
FleetCombatStatusSnapshot
Section titled “FleetCombatStatusSnapshot”Defined in: packages/sage/src/combat/index.ts:192
Immutable focused combat projection of one Fleet.
Example
Section titled “Example”declare const status: FleetCombatStatusSnapshot;console.log( status.current.abilityPowerPoints, status.timing.abilityPowerReloadAtUnixSeconds,);Properties
Section titled “Properties”current
Section titled “current”readonly current: { abilityPowerPoints: number; hullPoints: number; pendingHullPoints: number; shieldPoints: number;};Defined in: packages/sage/src/combat/index.ts:200
abilityPowerPoints
Section titled “abilityPowerPoints”readonly abilityPowerPoints: number;hullPoints
Section titled “hullPoints”readonly hullPoints: number;pendingHullPoints
Section titled “pendingHullPoints”readonly pendingHullPoints: number;shieldPoints
Section titled “shieldPoints”readonly shieldPoints: number;faction
Section titled “faction”readonly faction: CombatFaction;Defined in: packages/sage/src/combat/index.ts:196
readonly fleet: EntityRef<"fleet">;Defined in: packages/sage/src/combat/index.ts:194
readonly kind: "fleetCombatStatus";Defined in: packages/sage/src/combat/index.ts:193
ownerProfile
Section titled “ownerProfile”readonly ownerProfile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:195
participant
Section titled “participant”readonly participant: | { kind: "player";} | { factionId: number; kind: "npc";};Defined in: packages/sage/src/combat/index.ts:197
stance
Section titled “stance”readonly stance: { ammoUsage: "none" | "light" | "heavy";};Defined in: packages/sage/src/combat/index.ts:206
ammoUsage
Section titled “ammoUsage”readonly ammoUsage: "none" | "light" | "heavy";readonly stats: FleetCombatStatsData;Defined in: packages/sage/src/combat/index.ts:217
stimulants
Section titled “stimulants”readonly stimulants: readonly { chargesRemaining: number; deltaBps: number; stat: | "damageKinetic" | "damageEnergy" | "damageEmp" | "damageSuperchill" | "damageShockwave" | "damageGraygoo" | "damageHeat" | "counterFlare" | "counterEnergyCapacitor" | "counterFaradayShielding" | "counterWarmingPlates" | "counterNegativeRemPlating" | "counterHealingNanobots" | "counterFireSuppressor" | "hitChance" | "aimAbility" | "critChance" | "critMultiplier" | "stealthPower";}[];Defined in: packages/sage/src/combat/index.ts:212
timing
Section titled “timing”readonly timing: { abilityPowerReloadAtUnixSeconds: bigint; lastCombatUpdateAtUnixSeconds: bigint; shieldBreakDelayEndsAtUnixSeconds: bigint;};Defined in: packages/sage/src/combat/index.ts:207
abilityPowerReloadAtUnixSeconds
Section titled “abilityPowerReloadAtUnixSeconds”readonly abilityPowerReloadAtUnixSeconds: bigint;lastCombatUpdateAtUnixSeconds
Section titled “lastCombatUpdateAtUnixSeconds”readonly lastCombatUpdateAtUnixSeconds: bigint;shieldBreakDelayEndsAtUnixSeconds
Section titled “shieldBreakDelayEndsAtUnixSeconds”readonly shieldBreakDelayEndsAtUnixSeconds: bigint;Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:218
Returns
Section titled “Returns”unknown
GameCombatConfigurationData
Section titled “GameCombatConfigurationData”Defined in: packages/sage/src/internal/c4/game.ts:254
Translated Game combat configuration before cargo resolution.
Example
Section titled “Example”declare const configuration: GameCombatConfigurationData;console.log(configuration.maxFleetSize);Properties
Section titled “Properties”cargoRespawnTimeSeconds
Section titled “cargoRespawnTimeSeconds”readonly cargoRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:261
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:260
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:255
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:256
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:257
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:263
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:258
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:262
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:259
stimulantDefinitions
Section titled “stimulantDefinitions”readonly stimulantDefinitions: { definitions: readonly GameStimulantDefinitionData[]; sequenceId: number;};Defined in: packages/sage/src/internal/c4/game.ts:264
definitions
Section titled “definitions”readonly definitions: readonly GameStimulantDefinitionData[];sequenceId
Section titled “sequenceId”readonly sequenceId: number;GameStimulantEffectData
Section titled “GameStimulantEffectData”Defined in: packages/sage/src/internal/c4/game.ts:242
One translated combat stimulant effect.
Example
Section titled “Example”const effect: GameStimulantEffectData = { charges: 1, deltaBps: 250, stackRule: 'refresh', stat: 'damageEmp',};Properties
Section titled “Properties”charges
Section titled “charges”readonly charges: number;Defined in: packages/sage/src/internal/c4/game.ts:245
deltaBps
Section titled “deltaBps”readonly deltaBps: number;Defined in: packages/sage/src/internal/c4/game.ts:244
stackRule
Section titled “stackRule”readonly stackRule: "refresh" | "stack-to-max" | "additive";Defined in: packages/sage/src/internal/c4/game.ts:246
readonly stat: | "damageKinetic" | "damageEnergy" | "damageEmp" | "damageSuperchill" | "damageShockwave" | "damageGraygoo" | "damageHeat" | "counterFlare" | "counterEnergyCapacitor" | "counterFaradayShielding" | "counterWarmingPlates" | "counterNegativeRemPlating" | "counterHealingNanobots" | "counterFireSuppressor" | "hitChance" | "aimAbility" | "critChance" | "critMultiplier" | "stealthPower";Defined in: packages/sage/src/internal/c4/game.ts:243
LootCargoItem
Section titled “LootCargoItem”Defined in: packages/sage/src/combat/index.ts:228
One resolved cargo quantity inside Loot.
Example
Section titled “Example”declare const item: LootCargoItem;console.log(item.cargo.name, item.quantityRaw);Properties
Section titled “Properties”readonly cargo: CargoDefinitionSummary;Defined in: packages/sage/src/combat/index.ts:229
quantityRaw
Section titled “quantityRaw”readonly quantityRaw: bigint;Defined in: packages/sage/src/combat/index.ts:230
LootInventory
Section titled “LootInventory”Defined in: packages/sage/src/combat/index.ts:240
Resolved inventory for one Loot leg.
Example
Section titled “Example”declare const inventory: LootInventory;console.log(inventory.items.length);Properties
Section titled “Properties”readonly items: readonly LootCargoItem[];Defined in: packages/sage/src/combat/index.ts:243
sequenceId
Section titled “sequenceId”readonly sequenceId: number;Defined in: packages/sage/src/combat/index.ts:241
usedStorageUnitsRaw
Section titled “usedStorageUnitsRaw”readonly usedStorageUnitsRaw: bigint;Defined in: packages/sage/src/combat/index.ts:242
LootItem
Section titled “LootItem”Defined in: packages/sage/src/combat/index.ts:258
One translated Loot item group.
destroyer is the controlling Profile of the Fleet that destroyed the
source, which holds exclusive access until exclusivityUnlockAtUnixSeconds
and is the only Profile that may take reward cargo. Loot left by a Starbase
kill has no destroyer.
Example
Section titled “Example”declare const item: LootItem;console.log(item.destroyer?.address, item.exclusivityUnlockAtUnixSeconds);Properties
Section titled “Properties”destroyer?
Section titled “destroyer?”readonly optional destroyer?: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:259
exclusivityUnlockAtUnixSeconds
Section titled “exclusivityUnlockAtUnixSeconds”readonly exclusivityUnlockAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:260
inventory
Section titled “inventory”readonly inventory: LootInventory;Defined in: packages/sage/src/combat/index.ts:262
rewardReclaimAtUnixSeconds
Section titled “rewardReclaimAtUnixSeconds”readonly rewardReclaimAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:261
LootRewardLeg
Section titled “LootRewardLeg”Defined in: packages/sage/src/internal/c4/loot.ts:80
One reward leg as combat and rewards both expose it.
Properties
Section titled “Properties”medallionsRaw
Section titled “medallionsRaw”readonly medallionsRaw: bigint;Defined in: packages/sage/src/internal/c4/loot.ts:82
recipient
Section titled “recipient”readonly recipient: EntityRef<"profile">;Defined in: packages/sage/src/internal/c4/loot.ts:81
salvageTargetValueAtlasRaw
Section titled “salvageTargetValueAtlasRaw”readonly salvageTargetValueAtlasRaw: bigint;Defined in: packages/sage/src/internal/c4/loot.ts:83
LootSnapshot
Section titled “LootSnapshot”Defined in: packages/sage/src/combat/index.ts:272
Immutable Loot snapshot with resolved cargo inventory.
Example
Section titled “Example”declare const loot: LootSnapshot;console.log(loot.reward.kind, loot.items.length);Properties
Section titled “Properties”address
Section titled “address”readonly address: Address;Defined in: packages/sage/src/combat/index.ts:274
coordinates
Section titled “coordinates”readonly coordinates: { x: number; y: number;};Defined in: packages/sage/src/combat/index.ts:278
readonly x: number;readonly y: number;readonly game: EntityRef<"game">;Defined in: packages/sage/src/combat/index.ts:276
readonly items: readonly LootItem[];Defined in: packages/sage/src/combat/index.ts:280
readonly kind: "loot";Defined in: packages/sage/src/combat/index.ts:273
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:277
reward
Section titled “reward”readonly reward: LootRewardData;Defined in: packages/sage/src/combat/index.ts:279
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/combat/index.ts:275
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:281
Returns
Section titled “Returns”unknown
OutlawFlagAccountData
Section titled “OutlawFlagAccountData”Defined in: packages/sage/src/internal/c4/combat.ts:20
Fully translated OutlawFlag account data.
Properties
Section titled “Properties”readonly bump: number;Defined in: packages/sage/src/internal/c4/combat.ts:27
declaredAtUnixSeconds
Section titled “declaredAtUnixSeconds”readonly declaredAtUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:25
faction
Section titled “faction”readonly faction: CombatFaction;Defined in: packages/sage/src/internal/c4/combat.ts:23
isOutlaw
Section titled “isOutlaw”readonly isOutlaw: boolean;Defined in: packages/sage/src/internal/c4/combat.ts:24
profile
Section titled “profile”readonly profile: Address;Defined in: packages/sage/src/internal/c4/combat.ts:22
pvpUntilUnixSeconds
Section titled “pvpUntilUnixSeconds”readonly pvpUntilUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:26
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/internal/c4/combat.ts:21
OutlawFlagSnapshot
Section titled “OutlawFlagSnapshot”Defined in: packages/sage/src/combat/index.ts:291
Immutable optional outlaw declaration derived from Profile and faction.
Example
Section titled “Example”declare const flag: OutlawFlagSnapshot;console.log(flag.isOutlaw, flag.pvpUntilUnixSeconds);Extends
Section titled “Extends”Omit<OutlawFlagAccountData,"profile">
Properties
Section titled “Properties”address
Section titled “address”readonly address: Address;Defined in: packages/sage/src/combat/index.ts:296
readonly bump: number;Defined in: packages/sage/src/internal/c4/combat.ts:27
Inherited from
Section titled “Inherited from”declaredAtUnixSeconds
Section titled “declaredAtUnixSeconds”readonly declaredAtUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:25
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.declaredAtUnixSeconds
faction
Section titled “faction”readonly faction: CombatFaction;Defined in: packages/sage/src/internal/c4/combat.ts:23
Inherited from
Section titled “Inherited from”isOutlaw
Section titled “isOutlaw”readonly isOutlaw: boolean;Defined in: packages/sage/src/internal/c4/combat.ts:24
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.isOutlaw
readonly kind: "outlawFlag";Defined in: packages/sage/src/combat/index.ts:295
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:297
pvpUntilUnixSeconds
Section titled “pvpUntilUnixSeconds”readonly pvpUntilUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:26
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.pvpUntilUnixSeconds
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/internal/c4/combat.ts:21
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:298
Returns
Section titled “Returns”unknown
Type Aliases
Section titled “Type Aliases”CombatFaction
Section titled “CombatFaction”type CombatFaction = "unaligned" | "mud" | "oni" | "ustur";Defined in: packages/sage/src/internal/c4/combat.ts:17
Faction identifier accepted by combat reads.
Example
Section titled “Example”const faction: CombatFaction = 'mud';CombatStimulantStackRule
Section titled “CombatStimulantStackRule”type CombatStimulantStackRule = typeof STACK_RULES[number];Defined in: packages/sage/src/internal/c4/stimulant.ts:41
How a stimulant effect combines with an active one on the same stat.
The game currently applies only refresh; the others are refused.
Example
Section titled “Example”const rule: CombatStimulantStackRule = 'refresh';CombatStimulantStat
Section titled “CombatStimulantStat”type CombatStimulantStat = typeof STIMULANT_STATS[number];Defined in: packages/sage/src/internal/c4/stimulant.ts:30
The Fleet combat stat a stimulant effect modifies.
Example
Section titled “Example”const stat: CombatStimulantStat = 'damageEmp';LootDiscoveryOptions
Section titled “LootDiscoveryOptions”type LootDiscoveryOptions = Omit<DiscoveryRequest, "filters" | "strategy">;Defined in: packages/sage/src/combat/index.ts:145
Options supported by targeted Loot discovery.
Example
Section titled “Example”const options: LootDiscoveryOptions = { commitment: 'confirmed' };LootRewardData
Section titled “LootRewardData”type LootRewardData = | { kind: "none";} | { committedAtUnixSeconds: bigint; configVersion: number; kind: "committed" | "resolved"; legs: readonly LootRewardLeg[]; slot: bigint;} | { committedAtUnixSeconds: bigint; configVersion: number; kind: "unknown"; legs: readonly LootRewardLeg[]; rawStatus: number; slot: bigint;};Defined in: packages/sage/src/internal/c4/loot.ts:87
Public reward state; leg recipients are Profile references.
Functions
Section titled “Functions”getCombatConfiguration()
Section titled “getCombatConfiguration()”function getCombatConfiguration(context, options?): Promise<CombatConfigurationSnapshot>;Defined in: packages/sage/src/combat/index.ts:352
Reads the configured Game’s combat settings and stimulant catalog.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
options? | ReadOptions |
Returns
Section titled “Returns”Promise<CombatConfigurationSnapshot>
Example
Section titled “Example”declare const ctx: SageContext;const configuration = await getCombatConfiguration(ctx);getFleetCombatStatus()
Section titled “getFleetCombatStatus()”function getFleetCombatStatus( context, address,options?): Promise<FleetCombatStatusSnapshot>;Defined in: packages/sage/src/combat/index.ts:418
Reads one Fleet and returns only its translated combat state.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
address | Address |
options? | ReadOptions |
Returns
Section titled “Returns”Promise<FleetCombatStatusSnapshot>
Example
Section titled “Example”declare const ctx: SageContext;declare const fleet: Address;const status = await getFleetCombatStatus(ctx, fleet);getLoot()
Section titled “getLoot()”function getLoot( context, address,options?): Promise<LootSnapshot>;Defined in: packages/sage/src/combat/index.ts:516
Reads required Loot by its signer-created account address.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
address | Address |
options? | ReadOptions |
Returns
Section titled “Returns”Promise<LootSnapshot>
Example
Section titled “Example”declare const ctx: SageContext;declare const address: Address;const loot = await getLoot(ctx, address);getLootByProfile()
Section titled “getLootByProfile()”function getLootByProfile( context, profile,options?): Promise<readonly LootSnapshot[]>;Defined in: packages/sage/src/combat/index.ts:558
Discovers Loot created by one Profile using stable targeted filters.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
profile | Address |
options? | LootDiscoveryOptions |
Returns
Section titled “Returns”Promise<readonly LootSnapshot[]>
Example
Section titled “Example”declare const ctx: SageContext;declare const profile: Address;const loot = await getLootByProfile(ctx, profile);getOutlawFlag()
Section titled “getOutlawFlag()”function getOutlawFlag( context, profile, againstFaction, options?): Promise< | OutlawFlagSnapshot| undefined>;Defined in: packages/sage/src/combat/index.ts:600
Derives and reads an optional OutlawFlag for a Profile/faction pair.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
profile | Address |
againstFaction | CombatFaction |
options? | ReadOptions |
Returns
Section titled “Returns”Promise<
| OutlawFlagSnapshot
| undefined>
Example
Section titled “Example”declare const ctx: SageContext;declare const profile: Address;const flag = await getOutlawFlag(ctx, profile, 'mud');maybeGetLoot()
Section titled “maybeGetLoot()”function maybeGetLoot( context, address,options?): Promise<LootSnapshot | undefined>;Defined in: packages/sage/src/combat/index.ts:536
Reads optional Loot by account address.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | SageContext |
address | Address |
options? | ReadOptions |
Returns
Section titled “Returns”Promise<LootSnapshot | undefined>
Example
Section titled “Example”declare const ctx: SageContext;declare const address: Address;const loot = await maybeGetLoot(ctx, address);