StaticModifier

StaticModifier

class

Bonus a research adds to a machine stat

  • read-only Assigning to the field raises an error.
  • load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.

Fields

NameTypeDescription
value read-only integer Bonus reached so far, in percent
Standard members (5)

Every class of this kind carries these.

StaticModifier.cast(object) Trying to cast Object into StaticModifier
StaticModifier.get_class() Return StaticModifier class object
StaticModifier.find(name) Looks StaticModifier up in db, nil when there is none
StaticModifier.get(name) Takes StaticModifier from db, reports a miss to the log
StaticModifier.reg(name) load-only Register a new StaticModifier static object
Inherited from Prototype (2)
Inherited from Object (1)

Used by