From: <geo...@us...> - 2011-10-17 19:34:13
|
Revision: 4410 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=4410&view=rev Author: geoffthemedio Date: 2011-10-17 19:34:06 +0000 (Mon, 17 Oct 2011) Log Message: ----------- -Removed some effects from species that set active meters (for health and resource output) equal to target meter values when they were close, or which decreased by one or two points per turn when targets were below active meters. These were causing problems due to the scope / activation being tested first on previous turns' meter values, but the actual results being calculated using the mid-update target values, which might be a target meter of 0 if not all the target meter effects have been applied yet for that turn, which is a problem if the active meter is then set equal to target of 0 instead of 30 (which it was when the scope / activation were tested). These effects can be added back carefully, with consideration of the order of these operations (determined by order in the species definition), but presently aren't really necessary and make the species definitions longer and harder to read / edit. -Added an initial attempt at an effect-based starvation mechanism to the Human species. Health is reduced each turn by the difference between (required) food consumption and food allocation on a planet, and a sitrep message is generated when allocated food is below (required) consumption. For small shortfalls, this gives several turns of warning messages and decreasing health before it drops below 20 and population starts declining. For complete lack of food, this may or may not give a few turns to see population dropping, depending on whether the (required) food consumption is larger or smaller than the initial health meter value (ie. whether health drops to 0 immediately or after a few turns of no food). Modified Paths: -------------- trunk/FreeOrion/default/species.txt Modified: trunk/FreeOrion/default/species.txt =================================================================== --- trunk/FreeOrion/default/species.txt 2011-10-17 18:15:29 UTC (rev 4409) +++ trunk/FreeOrion/default/species.txt 2011-10-17 19:34:06 UTC (rev 4410) @@ -97,16 +97,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -232,46 +222,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -661,16 +611,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -796,46 +736,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -1226,16 +1126,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -1361,46 +1251,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -1791,16 +1641,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -1926,46 +1766,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -2350,16 +2150,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -2485,46 +2275,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -2915,16 +2665,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -3050,46 +2790,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -3480,16 +3180,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -3615,46 +3305,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -3994,16 +3644,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -4129,46 +3769,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -4559,16 +4159,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -4694,46 +4284,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -5074,16 +4624,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -5209,46 +4749,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -5639,16 +5139,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -5774,46 +5264,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -6075,7 +5525,6 @@ ] graphic = "icons/focus/industry.png" - Focus name = "FOCUS_LOGISTICS" description = "FOCUS_LOGISTICS_DESC" @@ -6157,16 +5606,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -6292,46 +5731,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -6556,7 +5955,6 @@ activation = Not OwnedBy AnyEmpire effects = SetMaxTroops Value + 5 ] - environments = [ type = Swamp environment = Hostile type = Toxic environment = Poor @@ -6713,16 +6111,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -6848,46 +6236,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -7278,16 +6626,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -7413,46 +6751,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -7843,16 +7141,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -7978,46 +7266,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -8409,15 +7657,8 @@ EffectsGroup scope = Source activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup + effects = SetHealth Value + 2 EffectsGroup scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -8543,46 +7784,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -8974,15 +8175,8 @@ EffectsGroup scope = Source activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup + effects = SetHealth Value + 2 EffectsGroup scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -9108,46 +8302,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -9483,15 +8637,8 @@ EffectsGroup scope = Source activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup + effects = SetHealth Value + 2 EffectsGroup scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -9617,46 +8764,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -10049,14 +9156,8 @@ scope = Source activation = Health high = RootCandidate.TargetHealth - 3 effects = SetHealth Value + 2 - EffectsGroup scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -10182,46 +9283,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -10613,15 +9674,8 @@ EffectsGroup scope = Source activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup + effects = SetHealth Value + 2 EffectsGroup scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -10747,46 +9801,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -11178,16 +10192,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -11313,51 +10317,11 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good ] - effects = SetTargetFarming Value + Target.Population * 2.0 + effects = SetTargetFarming Value + Target.Population * 1.25 EffectsGroup scope = Source @@ -11576,6 +10540,21 @@ scope = Source activation = Not OwnedBy AnyEmpire effects = SetMaxTroops Value + 5 + + EffectsGroup + scope = Source + activation = And [ + Planet + FoodConsumption low = LocalCandidate.AllocatedFood + 0.001 + ] + effects = [ + SetMaxDefense Value + 10 + SetHealth Value - (Target.FoodConsumption - Target.AllocatedFood) // each turn, subtract from health the difference between need and actual allocation + GenerateSitRepMessage + message = "EFFECT_STARVATION" + parameters = tag = "planet" data = Source.ID + empire = Target.Owner + ] ] environments = [ type = Swamp environment = Poor @@ -11743,16 +10722,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -11878,46 +10847,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -12308,16 +11237,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -12443,46 +11362,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -12873,16 +11752,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -13008,46 +11877,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining + 2 - effects = SetMining Value - 1 - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Value - 1 - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch + 2 - effects = SetResearch Value - 1 - - EffectsGroup - scope = Source - activation = Farming low = RootCandidate.TargetFarming high = RootCandidate.TargetFarming + 2 - effects = SetFarming Target.TargetFarming - - EffectsGroup - scope = Source - activation = Mining low = RootCandidate.TargetMining high = RootCandidate.TargetMining + 2 - effects = SetMining Target.TargetMining - - EffectsGroup - scope = Source - activation = Industry low = RootCandidate.TargetIndustry high = RootCandidate.TargetIndustry + 2 - effects = SetIndustry Target.TargetIndustry - - EffectsGroup - scope = Source - activation = Research low = RootCandidate.TargetResearch high = RootCandidate.TargetResearch + 2 - effects = SetResearch Target.TargetResearch - - EffectsGroup - scope = Source activation = And [ Focus type = "FOCUS_FARMING" Planet environment = Good @@ -13438,16 +12267,6 @@ effectsgroups = [ EffectsGroup scope = Source - activation = Health high = RootCandidate.TargetHealth - 3 - effects = SetHealth Value + 2 - - EffectsGroup - scope = Source - activation = Health low = RootCandidate.TargetHealth - 3 high = RootCandidate.TargetHealth - effects = SetHealth Target.TargetHealth - - EffectsGroup - scope = Source activation = And [ Planet environment = Good Planet size = [Huge GasGiant Asteroids] @@ -13573,46 +12392,6 @@ EffectsGroup scope = Source - activation = Farming low = RootCandidate.TargetFarming + 2 - effects = SetFarming Value - 1 - - EffectsGroup - scope = Sour... [truncated message content] |