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 a crit against her critChance that multiplies it by her 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