mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
Resolved #9487 - Hide bomb shelters when nuclear weapons are disabled
This commit is contained in:
parent
9094a6db56
commit
e532c00e35
@ -1140,7 +1140,9 @@
|
||||
"cost": 300,
|
||||
"maintenance": 1,
|
||||
"requiredTech": "Telecommunications",
|
||||
"uniques": ["Population loss from nuclear attacks [-75]% [in this city]","Damage to garrison from nuclear attacks [-75]% [in this city]"]
|
||||
"uniques": ["Population loss from nuclear attacks [-75]% [in this city]",
|
||||
"Damage to garrison from nuclear attacks [-75]% [in this city]",
|
||||
"Only available <when nuclear weapons are enabled> <hidden from users>"]
|
||||
},
|
||||
{
|
||||
"name": "Hubble Space Telescope",
|
||||
|
@ -146,6 +146,7 @@ object Conditionals {
|
||||
UniqueType.ConditionalReligionDisabled -> checkOnGameInfo { !isReligionEnabled() }
|
||||
UniqueType.ConditionalEspionageEnabled -> checkOnGameInfo { isEspionageEnabled() }
|
||||
UniqueType.ConditionalEspionageDisabled -> checkOnGameInfo { !isEspionageEnabled() }
|
||||
UniqueType.ConditionalNuclearWeaponsEnabled -> checkOnGameInfo { gameParameters.nuclearWeaponsEnabled }
|
||||
UniqueType.ConditionalTech -> checkOnCiv {
|
||||
val filter = conditional.params[0]
|
||||
if (filter in gameInfo.ruleset.technologies) tech.isResearched(conditional.params[0]) // fast common case
|
||||
|
@ -683,6 +683,7 @@ enum class UniqueType(
|
||||
ConditionalReligionDisabled("when religion is disabled", UniqueTarget.Conditional),
|
||||
ConditionalEspionageEnabled("when espionage is enabled", UniqueTarget.Conditional),
|
||||
ConditionalEspionageDisabled("when espionage is disabled", UniqueTarget.Conditional),
|
||||
ConditionalNuclearWeaponsEnabled("when nuclear weapons are enabled", UniqueTarget.Conditional),
|
||||
|
||||
/////// general conditionals
|
||||
ConditionalChance("with [amount]% chance", UniqueTarget.Conditional),
|
||||
|
@ -1429,6 +1429,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
These resources are removed *when work begins* on the construction. Do not confuse with "costs [amount] [stockpiledResource]" (lowercase 'c'), the Unit Action Modifier.
|
||||
Example: "Costs [3] [Mana]"
|
||||
|
||||
This unique's effect can be modified with <(modified by game speed)>
|
||||
Applicable to: Building, Unit, Improvement
|
||||
|
||||
??? example "Unbuildable"
|
||||
@ -1647,6 +1648,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
These resources are removed *when work begins* on the construction. Do not confuse with "costs [amount] [stockpiledResource]" (lowercase 'c'), the Unit Action Modifier.
|
||||
Example: "Costs [3] [Mana]"
|
||||
|
||||
This unique's effect can be modified with <(modified by game speed)>
|
||||
Applicable to: Building, Unit, Improvement
|
||||
|
||||
??? example "Unbuildable"
|
||||
@ -2410,6 +2412,7 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
These resources are removed *when work begins* on the construction. Do not confuse with "costs [amount] [stockpiledResource]" (lowercase 'c'), the Unit Action Modifier.
|
||||
Example: "Costs [3] [Mana]"
|
||||
|
||||
This unique's effect can be modified with <(modified by game speed)>
|
||||
Applicable to: Building, Unit, Improvement
|
||||
|
||||
??? example "Unbuildable"
|
||||
@ -2832,6 +2835,9 @@ Simple unique parameters are explained by mouseover. Complex parameters are expl
|
||||
??? example "<when espionage is disabled>"
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<when nuclear weapons are enabled>"
|
||||
Applicable to: Conditional
|
||||
|
||||
??? example "<with [amount]% chance>"
|
||||
Example: "<with [3]% chance>"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user