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

The Prerequisite System: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Created
 
Oops, rewording
Line 15: Line 15:
If all the conditions are met, the house is allowed to build that object. Accompanied by the [[EVA_NewConstructionOptions]] sound.
If all the conditions are met, the house is allowed to build that object. Accompanied by the [[EVA_NewConstructionOptions]] sound.


Then, for VehicleTypes, an additional check takes place:
Then an additional check takes place:
; Does the house own the {{TTL|Factory}} of the appropriate type?
; Does the house own the {{TTL|Factory}} of the appropriate type?
: Checks if the house has at least one structure with {{TTL|Factory}} matching the object's type, and with the correct {{TTL|Naval}} setting. 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.
: Checks if the house has at least one structure with {{TTL|Factory}} matching the object's type.
:: '''Note:''' For VehicleTypes, it also checks if said Factory has the same {{TTL|Naval}} 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.

Revision as of 06:45, 21 June 2006

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

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 :
all structures listed in Template:TTL
or
at least one structure listed in Template:TTL.


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

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.