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)

These members are available on all classes of this kind.

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, spec) load-only Register a new StaticModifier static object, or take the registered one of that name
Inherited from Prototype (2)
Inherited from Object (1)

Used by