Skip to content

ships.Function.sustainedFireFactor

github-actions[bot] edited this page Aug 26, 2026 · 73 revisions

@elite-dangerous-almanac/core / ships / sustainedFireFactor

Function: sustainedFireFactor()

sustainedFireFactor(weapon): number

Defined in: src/ships/weapons.ts:354

The factor that turns a weapon's while-firing figures into sustained ones — the share of the time it spends shooting rather than reloading.

Parameters

weapon

WeaponStats

The weapon's stats.

Returns

number

A factor in (0, 1]: 1 for anything that never stops to reload, less for a weapon whose clip runs dry. A fractional clip is held to whole rounds, rounding up — which only a hand-built or journal-stated figure can be, since an engineered clip is rounded to a whole burst where the roll is computed (./engineering). On a burst weapon the two rules can differ by a round: a reload cycle follows Coriolis's own getClip end to end, so taking half of EDSY's rule into it would agree with neither.

Remarks

A clip's worth of fire takes (clip − burst) / rateOfFire seconds plus the time to finish the last burst, then the reload; the sustained rate is the clip divided by that whole cycle.

Example

import { sustainedFireFactor } from '@elite-dangerous-almanac/core/ships/weapons';

// A small multi-cannon: 100 rounds at 7.69/s, then a 4 s reload
sustainedFireFactor({ rateOfFire: 7.692308, clipSize: 100, reloadTime: 4 }); // -> 0.77…

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally