Skip to content

AtMost Requirement

Jeremie Rossignol edited this page Jun 29, 2016 · 1 revision

If at most the given number of child requirements are met, then the requirement is met.

REQUIREMENT
{
    name = AtMost
    type = AtMost

    // Maximum number of requirements that can match.
    //
    // Type:      int
    // Required:  Yes
    //
    count = 2

    REQUIREMENT
    {
        name = ReachSpace
        type = ReachSpace
    }

    REQUIREMENT
    {
        name = TechResearched
        type = TechResearched

        tech = basicRocketry
    }

    REQUIREMENT
    {
        name = Science
        type = Science

        minScience = 50
    }
}
Clone this wiki locally