ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

The Prerequisite System

From ModEnc
Revision as of 08:58, 11 August 2006 by DCoder (talk | contribs) (Added category)
Jump to: navigation, search

The Prerequisite System controls the conditions required to build a certain object. Those conditions include:

Is this object's TechLevel valid?
Checks if the TechLevel of the object is above -1 and below [[[:Template:TTL]]] Template:TTL.
Can this house own this object?
Checks if the house is listed in Template:TTL.
Is this house not forbidden from owning this object?
Checks if the house is not listed in Template:TTL.
Is this house allowed to own this object?
Checks if the house is listed in Template:TTL.
Does this house own all the prerequisite structures?
Checks if the house owns the prerequisite structures listed in Template:TTL

If all the conditions are met, the house is allowed to build that object. Accompanied by the EVA_NewConstructionOptions sound.

Otherwise, if the house has at least one structure listed in Template:TTL or gains this object via Secret Lab, it gets that building even without fulfilling the other criteria.

Then an additional check takes place:

Does the house own the Template:TTL of the appropriate type?
Checks if the house has at least one structure with Template:TTL matching the object's type.
Note: For VehicleTypes, it also checks if said Factory has the same Template:TTL setting as the object in question. If it doesn't, the object is removed from the Units tab, and, if that tab is open, the view jumps to the top of it. This is known as the New Construction Options Bug.


Prerequisite Groups

A "prerequisite group" refers to a list of structures, and any single one of them is sufficient to fulfill the "prerequisite group". The following "prerequisite groups" are valid:

In Firestorm, two additional groups were available: