combat
Interfaces
Section titled “Interfaces”CombatConfigurationSnapshot
Section titled “CombatConfigurationSnapshot”Defined in: packages/sage/src/combat/index.ts:145
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:150
cargoRespawnTimeSeconds
Section titled “cargoRespawnTimeSeconds”readonly cargoRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:255
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.cargoRespawnTimeSeconds
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:254
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.crewRespawnTimeSeconds
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:249
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.globalCeasefire
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:250
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.interactionRange
readonly kind: "combatConfiguration";Defined in: packages/sage/src/combat/index.ts:149
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:251
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.lootExclusivityTimeSeconds
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:257
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxFleetSize
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:252
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxLootRate
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:256
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.rawShipsRespawnTimeSeconds
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:253
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:151
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:155
Returns
Section titled “Returns”unknown
CombatStimulantDefinition
Section titled “CombatStimulantDefinition”Defined in: packages/sage/src/combat/index.ts:133
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:134
effects
Section titled “effects”readonly effects: readonly GameStimulantEffectData[];Defined in: packages/sage/src/combat/index.ts:135
FleetCombatStatsData
Section titled “FleetCombatStatsData”Defined in: packages/sage/src/internal/c4/fleet.ts:217
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:269
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:221
readonly ap: number;Defined in: packages/sage/src/internal/c4/fleet.ts:218
apRegenRate
Section titled “apRegenRate”readonly apRegenRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:222
counterDecoy
Section titled “counterDecoy”readonly counterDecoy: number;Defined in: packages/sage/src/internal/c4/fleet.ts:255
counterEnergyCapacitor
Section titled “counterEnergyCapacitor”readonly counterEnergyCapacitor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:256
counterFaradayShielding
Section titled “counterFaradayShielding”readonly counterFaradayShielding: number;Defined in: packages/sage/src/internal/c4/fleet.ts:263
counterFireSuppressor
Section titled “counterFireSuppressor”readonly counterFireSuppressor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:257
counterFlare
Section titled “counterFlare”readonly counterFlare: number;Defined in: packages/sage/src/internal/c4/fleet.ts:258
counterHealingNanobots
Section titled “counterHealingNanobots”readonly counterHealingNanobots: number;Defined in: packages/sage/src/internal/c4/fleet.ts:259
counterMine
Section titled “counterMine”readonly counterMine: number;Defined in: packages/sage/src/internal/c4/fleet.ts:260
counterNegativeRemPlating
Section titled “counterNegativeRemPlating”readonly counterNegativeRemPlating: number;Defined in: packages/sage/src/internal/c4/fleet.ts:261
counterWarmingPlates
Section titled “counterWarmingPlates”readonly counterWarmingPlates: number;Defined in: packages/sage/src/internal/c4/fleet.ts:262
critChance
Section titled “critChance”readonly critChance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:271
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:273
U26F6 fixed-point critical multiplier.
damageBomb
Section titled “damageBomb”readonly damageBomb: number;Defined in: packages/sage/src/internal/c4/fleet.ts:252
damageBombVariance
Section titled “damageBombVariance”readonly damageBombVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:254
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:237
damageEmpVariance
Section titled “damageEmpVariance”readonly damageEmpVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:239
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:234
damageEnergyVariance
Section titled “damageEnergyVariance”readonly damageEnergyVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:236
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:246
damageGraygooVariance
Section titled “damageGraygooVariance”readonly damageGraygooVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:248
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:249
damageHeatVariance
Section titled “damageHeatVariance”readonly damageHeatVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:251
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:231
damageKineticVariance
Section titled “damageKineticVariance”readonly damageKineticVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:233
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:243
damageShockwaveVariance
Section titled “damageShockwaveVariance”readonly damageShockwaveVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:245
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:240
damageSuperchillVariance
Section titled “damageSuperchillVariance”readonly damageSuperchillVariance: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:242
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:275
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:267
U26F6 fixed-point hit value; no probability or percentage interpretation is implied.
readonly hp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:219
lootRate
Section titled “lootRate”readonly lootRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:228
missileDamage
Section titled “missileDamage”readonly missileDamage: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:277
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:279
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:225
repairCost
Section titled “repairCost”readonly repairCost: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:227
repairEfficiency
Section titled “repairEfficiency”readonly repairEfficiency: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:226
repairRate
Section titled “repairRate”readonly repairRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:224
shieldBreakDelaySeconds
Section titled “shieldBreakDelaySeconds”readonly shieldBreakDelaySeconds: number;Defined in: packages/sage/src/internal/c4/fleet.ts:229
shieldRechargeRate
Section titled “shieldRechargeRate”readonly shieldRechargeRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:223
readonly sp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:220
stealthPower
Section titled “stealthPower”readonly stealthPower: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:265
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:230
FleetCombatStatusSnapshot
Section titled “FleetCombatStatusSnapshot”Defined in: packages/sage/src/combat/index.ts:168
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:176
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:172
readonly fleet: EntityRef<"fleet">;Defined in: packages/sage/src/combat/index.ts:170
readonly kind: "fleetCombatStatus";Defined in: packages/sage/src/combat/index.ts:169
ownerProfile
Section titled “ownerProfile”readonly ownerProfile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:171
participant
Section titled “participant”readonly participant: | { kind: "player";} | { factionId: number; kind: "npc";};Defined in: packages/sage/src/combat/index.ts:173
stance
Section titled “stance”readonly stance: { ammoUsage: "none" | "light" | "heavy";};Defined in: packages/sage/src/combat/index.ts:182
ammoUsage
Section titled “ammoUsage”readonly ammoUsage: "none" | "light" | "heavy";readonly stats: FleetCombatStatsData;Defined in: packages/sage/src/combat/index.ts:193
stimulants
Section titled “stimulants”readonly stimulants: readonly { chargesRemaining: number; deltaBps: number; statId: number;}[];Defined in: packages/sage/src/combat/index.ts:188
timing
Section titled “timing”readonly timing: { abilityPowerReloadAtUnixSeconds: bigint; lastCombatUpdateAtUnixSeconds: bigint; shieldBreakDelayEndsAtUnixSeconds: bigint;};Defined in: packages/sage/src/combat/index.ts:183
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:194
Returns
Section titled “Returns”unknown
GameCombatConfigurationData
Section titled “GameCombatConfigurationData”Defined in: packages/sage/src/internal/c4/game.ts:248
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:255
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:254
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:249
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:250
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:251
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:257
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:252
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:256
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:253
stimulantDefinitions
Section titled “stimulantDefinitions”readonly stimulantDefinitions: { definitions: readonly GameStimulantDefinitionData[]; sequenceId: number;};Defined in: packages/sage/src/internal/c4/game.ts:258
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:236
One translated combat stimulant effect.
Example
Section titled “Example”const effect: GameStimulantEffectData = { charges: 1, deltaBps: 250, stackRuleId: 0, statId: 2,};Properties
Section titled “Properties”charges
Section titled “charges”readonly charges: number;Defined in: packages/sage/src/internal/c4/game.ts:239
deltaBps
Section titled “deltaBps”readonly deltaBps: number;Defined in: packages/sage/src/internal/c4/game.ts:238
stackRuleId
Section titled “stackRuleId”readonly stackRuleId: number;Defined in: packages/sage/src/internal/c4/game.ts:240
statId
Section titled “statId”readonly statId: number;Defined in: packages/sage/src/internal/c4/game.ts:237
LootCargoItem
Section titled “LootCargoItem”Defined in: packages/sage/src/combat/index.ts:204
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:205
quantityRaw
Section titled “quantityRaw”readonly quantityRaw: bigint;Defined in: packages/sage/src/combat/index.ts:206
LootInventory
Section titled “LootInventory”Defined in: packages/sage/src/combat/index.ts:216
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:219
sequenceId
Section titled “sequenceId”readonly sequenceId: number;Defined in: packages/sage/src/combat/index.ts:217
usedStorageUnitsRaw
Section titled “usedStorageUnitsRaw”readonly usedStorageUnitsRaw: bigint;Defined in: packages/sage/src/combat/index.ts:218
LootItem
Section titled “LootItem”Defined in: packages/sage/src/combat/index.ts:234
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:235
exclusivityUnlockAtUnixSeconds
Section titled “exclusivityUnlockAtUnixSeconds”readonly exclusivityUnlockAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:236
inventory
Section titled “inventory”readonly inventory: LootInventory;Defined in: packages/sage/src/combat/index.ts:238
rewardReclaimAtUnixSeconds
Section titled “rewardReclaimAtUnixSeconds”readonly rewardReclaimAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:237
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:248
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:250
coordinates
Section titled “coordinates”readonly coordinates: { x: number; y: number;};Defined in: packages/sage/src/combat/index.ts:254
readonly x: number;readonly y: number;readonly game: EntityRef<"game">;Defined in: packages/sage/src/combat/index.ts:252
readonly items: readonly LootItem[];Defined in: packages/sage/src/combat/index.ts:256
readonly kind: "loot";Defined in: packages/sage/src/combat/index.ts:249
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:253
reward
Section titled “reward”readonly reward: LootRewardData;Defined in: packages/sage/src/combat/index.ts:255
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/combat/index.ts:251
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:257
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:267
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:272
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:271
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:273
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:274
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';LootDiscoveryOptions
Section titled “LootDiscoveryOptions”type LootDiscoveryOptions = Omit<DiscoveryRequest, "filters" | "strategy">;Defined in: packages/sage/src/combat/index.ts:121
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:328
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:394
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:492
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:534
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:576
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:512
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);