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

StoredStatModifier

A modifier as a stat holds it: as addStatModifier took it, with the tick a timed one ends on in place of its seconds, so the room writes it as it starts and as it ends and on no step between.

Property Type Description
endTick? number The tick it has ended from: the step of that tick drops it. Left out, it stays until its source is removed. A tick means something only in the room that counted it, so a save leaves a timed modifier out.
flat? number Added to the base.
more? number Multiplied with the stat’s other mores: 0.2 is ×1.2.
percent? number Summed with the stat’s other percents: 0.2 is +20%.
saved? boolean False for a modifier its source puts back itself, as a worn item does from the item as it is now: the stats save leaves it out, and a restore keeps the one the entity holds. Left out, it is saved.
source string What added it, and what removes it: "boots", "haste".