GrantConditionOnPrerequisite -- boolean OR
Posted: Sun Jul 17, 2022 2:27 pm
Hi,
I have defined an instance of HOSP, as follows:
How would I go about modifying ^Infantry, in order to apply "Condition: hospital" from ownership of either "hosp" or "hosp.test"?
For instance, appending the following code overrides the default rules, triggering the grant only for "hosp.test" (rather than "hosp"):
But, I would like to implement the equivalent of:
Thank you
I have defined an instance of HOSP, as follows:
Code: Select all
HOSP.test:
Inherits: HOSP
RenderSprites:
Image: HOSP
Tooltip:
Name: test
For instance, appending the following code overrides the default rules, triggering the grant only for "hosp.test" (rather than "hosp"):
Code: Select all
^Infantry:
GrantConditionOnPrerequisite@HOSPITAL:
Condition: hospital
Prerequisites: hosp.test
Code: Select all
Prerequisites: hosp || hosp.test