Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

rollAbilityDamage

rollAbilityDamage(authority, caster, abilityDamage): RolledDamage

Rolls one strike: a whole number from min to max on the seeded stream of the world authority decides outcomes on, scaled by the caster’s stat as a percentage. Then rolls a crit against the caster’s critChance that multiplies it by the caster’s critDamage. A replay rolls the same. Damage is the room’s, so the roll takes its authority: a page in a room never draws from its stream, which stays where the room’s is.

Parameter Type
authority Authority
caster Entity
abilityDamage AbilityDamage

RolledDamage