StaticOreVein

StaticOreVein

class

Ore vein every world places in the rock its targets replace, tried Count times per 16x16 column

  • 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
targets load-only OreVeinTarget[] Rock the vein replaces and the ore it leaves there
size load-only integer Number of blobs strung along the vein
count load-only integer Veins tried per column
rarity load-only integer A column gets the veins with chance 1 / rarity
min_height load-only integer Lowest vein centre, world block height
max_height load-only integer Highest vein centre, world block height
trapezoid load-only boolean Heights peak in the middle of the range instead of spreading evenly
plateau load-only integer Width of the flat top of the trapezoid
discard_on_air_exposure load-only number Chance an ore cell next to air stays rock
Standard members (5)

These members are available on all classes of this kind.

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