combat
Interfaces
Section titled “Interfaces”CombatConfigurationSnapshot
Section titled “CombatConfigurationSnapshot”Defined in: packages/sage/src/combat/index.ts:129
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:134
cargoRespawnTimeSeconds
Section titled “cargoRespawnTimeSeconds”readonly cargoRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:243
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.cargoRespawnTimeSeconds
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:242
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.crewRespawnTimeSeconds
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:237
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.globalCeasefire
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:238
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.interactionRange
readonly kind: "combatConfiguration";Defined in: packages/sage/src/combat/index.ts:133
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:239
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.lootExclusivityTimeSeconds
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:245
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxFleetSize
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:240
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.maxLootRate
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:244
Inherited from
Section titled “Inherited from”GameCombatConfigurationData.rawShipsRespawnTimeSeconds
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:241
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:135
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:139
Returns
Section titled “Returns”unknown
CombatStimulantDefinition
Section titled “CombatStimulantDefinition”Defined in: packages/sage/src/combat/index.ts:117
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:118
effects
Section titled “effects”readonly effects: readonly GameStimulantEffectData[];Defined in: packages/sage/src/combat/index.ts:119
FleetCombatStatsData
Section titled “FleetCombatStatsData”Defined in: packages/sage/src/internal/c4/fleet.ts:243
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: number;Defined in: packages/sage/src/internal/c4/fleet.ts:284
ammoConsumptionRate
Section titled “ammoConsumptionRate”readonly ammoConsumptionRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:247
readonly ap: number;Defined in: packages/sage/src/internal/c4/fleet.ts:244
apRegenRate
Section titled “apRegenRate”readonly apRegenRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:248
counterDecoy
Section titled “counterDecoy”readonly counterDecoy: number;Defined in: packages/sage/src/internal/c4/fleet.ts:273
counterEnergyCapacitor
Section titled “counterEnergyCapacitor”readonly counterEnergyCapacitor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:274
counterFaradayShielding
Section titled “counterFaradayShielding”readonly counterFaradayShielding: number;Defined in: packages/sage/src/internal/c4/fleet.ts:281
counterFireSuppressor
Section titled “counterFireSuppressor”readonly counterFireSuppressor: number;Defined in: packages/sage/src/internal/c4/fleet.ts:275
counterFlare
Section titled “counterFlare”readonly counterFlare: number;Defined in: packages/sage/src/internal/c4/fleet.ts:276
counterHealingNanobots
Section titled “counterHealingNanobots”readonly counterHealingNanobots: number;Defined in: packages/sage/src/internal/c4/fleet.ts:277
counterMine
Section titled “counterMine”readonly counterMine: number;Defined in: packages/sage/src/internal/c4/fleet.ts:278
counterNegativeRemPlating
Section titled “counterNegativeRemPlating”readonly counterNegativeRemPlating: number;Defined in: packages/sage/src/internal/c4/fleet.ts:279
counterWarmingPlates
Section titled “counterWarmingPlates”readonly counterWarmingPlates: number;Defined in: packages/sage/src/internal/c4/fleet.ts:280
critChance
Section titled “critChance”readonly critChance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:285
critMultiplier
Section titled “critMultiplier”readonly critMultiplier: number;Defined in: packages/sage/src/internal/c4/fleet.ts:286
damageBomb
Section titled “damageBomb”readonly damageBomb: number;Defined in: packages/sage/src/internal/c4/fleet.ts:271
damageBombVariance
Section titled “damageBombVariance”readonly damageBombVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:272
damageEmp
Section titled “damageEmp”readonly damageEmp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:261
damageEmpVariance
Section titled “damageEmpVariance”readonly damageEmpVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:262
damageEnergy
Section titled “damageEnergy”readonly damageEnergy: number;Defined in: packages/sage/src/internal/c4/fleet.ts:259
damageEnergyVariance
Section titled “damageEnergyVariance”readonly damageEnergyVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:260
damageGraygoo
Section titled “damageGraygoo”readonly damageGraygoo: number;Defined in: packages/sage/src/internal/c4/fleet.ts:267
damageGraygooVariance
Section titled “damageGraygooVariance”readonly damageGraygooVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:268
damageHeat
Section titled “damageHeat”readonly damageHeat: number;Defined in: packages/sage/src/internal/c4/fleet.ts:269
damageHeatVariance
Section titled “damageHeatVariance”readonly damageHeatVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:270
damageKinetic
Section titled “damageKinetic”readonly damageKinetic: number;Defined in: packages/sage/src/internal/c4/fleet.ts:257
damageKineticVariance
Section titled “damageKineticVariance”readonly damageKineticVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:258
damageShockwave
Section titled “damageShockwave”readonly damageShockwave: number;Defined in: packages/sage/src/internal/c4/fleet.ts:265
damageShockwaveVariance
Section titled “damageShockwaveVariance”readonly damageShockwaveVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:266
damageSuperchill
Section titled “damageSuperchill”readonly damageSuperchill: number;Defined in: packages/sage/src/internal/c4/fleet.ts:263
damageSuperchillVariance
Section titled “damageSuperchillVariance”readonly damageSuperchillVariance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:264
fuelConsumptionRate
Section titled “fuelConsumptionRate”readonly fuelConsumptionRate: number;Defined in: packages/sage/src/internal/c4/fleet.ts:287
hitChance
Section titled “hitChance”readonly hitChance: number;Defined in: packages/sage/src/internal/c4/fleet.ts:283
readonly hp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:245
lootRate
Section titled “lootRate”readonly lootRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:254
missileDamage
Section titled “missileDamage”readonly missileDamage: number;Defined in: packages/sage/src/internal/c4/fleet.ts:288
missileFireRate
Section titled “missileFireRate”readonly missileFireRate: number;Defined in: packages/sage/src/internal/c4/fleet.ts:289
repairAbility
Section titled “repairAbility”readonly repairAbility: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:251
repairCost
Section titled “repairCost”readonly repairCost: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:253
repairEfficiency
Section titled “repairEfficiency”readonly repairEfficiency: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:252
repairRate
Section titled “repairRate”readonly repairRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:250
shieldBreakDelaySeconds
Section titled “shieldBreakDelaySeconds”readonly shieldBreakDelaySeconds: number;Defined in: packages/sage/src/internal/c4/fleet.ts:255
shieldRechargeRate
Section titled “shieldRechargeRate”readonly shieldRechargeRate: FleetFixedValue;Defined in: packages/sage/src/internal/c4/fleet.ts:249
readonly sp: number;Defined in: packages/sage/src/internal/c4/fleet.ts:246
stealthPower
Section titled “stealthPower”readonly stealthPower: number;Defined in: packages/sage/src/internal/c4/fleet.ts:282
warpSpoolTimeSeconds
Section titled “warpSpoolTimeSeconds”readonly warpSpoolTimeSeconds: number;Defined in: packages/sage/src/internal/c4/fleet.ts:256
FleetCombatStatusSnapshot
Section titled “FleetCombatStatusSnapshot”Defined in: packages/sage/src/combat/index.ts:152
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:160
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:156
readonly fleet: EntityRef<"fleet">;Defined in: packages/sage/src/combat/index.ts:154
readonly kind: "fleetCombatStatus";Defined in: packages/sage/src/combat/index.ts:153
ownerProfile
Section titled “ownerProfile”readonly ownerProfile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:155
participant
Section titled “participant”readonly participant: | { kind: "player";} | { factionId: number; kind: "npc";};Defined in: packages/sage/src/combat/index.ts:157
stance
Section titled “stance”readonly stance: { ammoUsage: "none" | "light" | "heavy";};Defined in: packages/sage/src/combat/index.ts:166
ammoUsage
Section titled “ammoUsage”readonly ammoUsage: "none" | "light" | "heavy";readonly stats: FleetCombatStatsData;Defined in: packages/sage/src/combat/index.ts:177
stimulants
Section titled “stimulants”readonly stimulants: readonly { chargesRemaining: number; deltaBps: number; statId: number;}[];Defined in: packages/sage/src/combat/index.ts:172
timing
Section titled “timing”readonly timing: { abilityPowerReloadAtUnixSeconds: bigint; lastCombatUpdateAtUnixSeconds: bigint; shieldBreakDelayEndsAtUnixSeconds: bigint;};Defined in: packages/sage/src/combat/index.ts:167
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:178
Returns
Section titled “Returns”unknown
GameCombatConfigurationData
Section titled “GameCombatConfigurationData”Defined in: packages/sage/src/internal/c4/game.ts:236
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:243
crewRespawnTimeSeconds
Section titled “crewRespawnTimeSeconds”readonly crewRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:242
globalCeasefire
Section titled “globalCeasefire”readonly globalCeasefire: boolean;Defined in: packages/sage/src/internal/c4/game.ts:237
interactionRange
Section titled “interactionRange”readonly interactionRange: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:238
lootExclusivityTimeSeconds
Section titled “lootExclusivityTimeSeconds”readonly lootExclusivityTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:239
maxFleetSize
Section titled “maxFleetSize”readonly maxFleetSize: number;Defined in: packages/sage/src/internal/c4/game.ts:245
maxLootRate
Section titled “maxLootRate”readonly maxLootRate: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:240
rawShipsRespawnTimeSeconds
Section titled “rawShipsRespawnTimeSeconds”readonly rawShipsRespawnTimeSeconds: bigint;Defined in: packages/sage/src/internal/c4/game.ts:244
starbaseUpgradeProgressContinuation
Section titled “starbaseUpgradeProgressContinuation”readonly starbaseUpgradeProgressContinuation: GameCombatFixedValueData;Defined in: packages/sage/src/internal/c4/game.ts:241
stimulantDefinitions
Section titled “stimulantDefinitions”readonly stimulantDefinitions: { definitions: readonly GameStimulantDefinitionData[]; sequenceId: number;};Defined in: packages/sage/src/internal/c4/game.ts:246
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:224
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:227
deltaBps
Section titled “deltaBps”readonly deltaBps: number;Defined in: packages/sage/src/internal/c4/game.ts:226
stackRuleId
Section titled “stackRuleId”readonly stackRuleId: number;Defined in: packages/sage/src/internal/c4/game.ts:228
statId
Section titled “statId”readonly statId: number;Defined in: packages/sage/src/internal/c4/game.ts:225
LootCargoItem
Section titled “LootCargoItem”Defined in: packages/sage/src/combat/index.ts:188
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:189
quantityRaw
Section titled “quantityRaw”readonly quantityRaw: bigint;Defined in: packages/sage/src/combat/index.ts:190
LootInventory
Section titled “LootInventory”Defined in: packages/sage/src/combat/index.ts:200
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:203
sequenceId
Section titled “sequenceId”readonly sequenceId: number;Defined in: packages/sage/src/combat/index.ts:201
storageCostRaw
Section titled “storageCostRaw”readonly storageCostRaw: bigint;Defined in: packages/sage/src/combat/index.ts:202
LootItem
Section titled “LootItem”Defined in: packages/sage/src/combat/index.ts:213
One translated Loot item group.
Example
Section titled “Example”declare const item: LootItem;console.log(item.destroyer.address, item.exclusivityUnlockAtUnixSeconds);Properties
Section titled “Properties”destroyer
Section titled “destroyer”readonly destroyer: EntityRef<"fleet">;Defined in: packages/sage/src/combat/index.ts:214
exclusivityUnlockAtUnixSeconds
Section titled “exclusivityUnlockAtUnixSeconds”readonly exclusivityUnlockAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:215
inventory
Section titled “inventory”readonly inventory: LootInventory;Defined in: packages/sage/src/combat/index.ts:217
rewardReclaimAtUnixSeconds
Section titled “rewardReclaimAtUnixSeconds”readonly rewardReclaimAtUnixSeconds: bigint;Defined in: packages/sage/src/combat/index.ts:216
LootSnapshot
Section titled “LootSnapshot”Defined in: packages/sage/src/combat/index.ts:227
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:229
coordinates
Section titled “coordinates”readonly coordinates: { x: number; y: number;};Defined in: packages/sage/src/combat/index.ts:233
readonly x: number;readonly y: number;readonly game: EntityRef<"game">;Defined in: packages/sage/src/combat/index.ts:231
readonly items: readonly LootItem[];Defined in: packages/sage/src/combat/index.ts:235
readonly kind: "loot";Defined in: packages/sage/src/combat/index.ts:228
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:232
reward
Section titled “reward”readonly reward: LootRewardData;Defined in: packages/sage/src/combat/index.ts:234
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/combat/index.ts:230
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:236
Returns
Section titled “Returns”unknown
OutlawFlagAccountData
Section titled “OutlawFlagAccountData”Defined in: packages/sage/src/internal/c4/combat.ts:139
Fully translated OutlawFlag account data.
Properties
Section titled “Properties”readonly bump: number;Defined in: packages/sage/src/internal/c4/combat.ts:146
declaredAtUnixSeconds
Section titled “declaredAtUnixSeconds”readonly declaredAtUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:144
faction
Section titled “faction”readonly faction: CombatFaction;Defined in: packages/sage/src/internal/c4/combat.ts:142
isOutlaw
Section titled “isOutlaw”readonly isOutlaw: boolean;Defined in: packages/sage/src/internal/c4/combat.ts:143
profile
Section titled “profile”readonly profile: Address;Defined in: packages/sage/src/internal/c4/combat.ts:141
pvpUntilUnixSeconds
Section titled “pvpUntilUnixSeconds”readonly pvpUntilUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:145
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/internal/c4/combat.ts:140
OutlawFlagSnapshot
Section titled “OutlawFlagSnapshot”Defined in: packages/sage/src/combat/index.ts:246
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:251
readonly bump: number;Defined in: packages/sage/src/internal/c4/combat.ts:146
Inherited from
Section titled “Inherited from”declaredAtUnixSeconds
Section titled “declaredAtUnixSeconds”readonly declaredAtUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:144
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.declaredAtUnixSeconds
faction
Section titled “faction”readonly faction: CombatFaction;Defined in: packages/sage/src/internal/c4/combat.ts:142
Inherited from
Section titled “Inherited from”isOutlaw
Section titled “isOutlaw”readonly isOutlaw: boolean;Defined in: packages/sage/src/internal/c4/combat.ts:143
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.isOutlaw
readonly kind: "outlawFlag";Defined in: packages/sage/src/combat/index.ts:250
profile
Section titled “profile”readonly profile: EntityRef<"profile">;Defined in: packages/sage/src/combat/index.ts:252
pvpUntilUnixSeconds
Section titled “pvpUntilUnixSeconds”readonly pvpUntilUnixSeconds: bigint;Defined in: packages/sage/src/internal/c4/combat.ts:145
Inherited from
Section titled “Inherited from”OutlawFlagAccountData.pvpUntilUnixSeconds
version
Section titled “version”readonly version: number;Defined in: packages/sage/src/internal/c4/combat.ts:140
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON(): unknown;Defined in: packages/sage/src/combat/index.ts:253
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:84
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:105
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 LootRewardLegData[]; slot: bigint;} | { committedAtUnixSeconds: bigint; configVersion: number; kind: "unknown"; legs: readonly LootRewardLegData[]; rawStatus: number; slot: bigint;};Defined in: packages/sage/src/internal/c4/combat.ts:110
Translated Loot reward state, including unknown raw status bytes.
Example
Section titled “Example”const reward: LootRewardData = { kind: 'none' };Functions
Section titled “Functions”getCombatConfiguration()
Section titled “getCombatConfiguration()”function getCombatConfiguration(context, options?): Promise<CombatConfigurationSnapshot>;Defined in: packages/sage/src/combat/index.ts:321
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:387
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:483
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:525
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:567
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:503
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);