From: <geo...@us...> - 2011-09-13 02:07:58
|
Revision: 4253 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=4253&view=rev Author: geoffthemedio Date: 2011-09-13 02:07:51 +0000 (Tue, 13 Sep 2011) Log Message: ----------- Added parsing for troops and max troops meter value conditions. Modified Paths: -------------- trunk/FreeOrion/universe/ConditionParser1.cpp Modified: trunk/FreeOrion/universe/ConditionParser1.cpp =================================================================== --- trunk/FreeOrion/universe/ConditionParser1.cpp 2011-09-12 21:29:48 UTC (rev 4252) +++ trunk/FreeOrion/universe/ConditionParser1.cpp 2011-09-13 02:07:51 UTC (rev 4253) @@ -248,6 +248,7 @@ | str_p("maxshield")[meter_value.meter = val(METER_MAX_SHIELD)] | str_p("maxstructure")[meter_value.meter = val(METER_MAX_STRUCTURE)] | str_p("maxdefense")[meter_value.meter = val(METER_MAX_DEFENSE)] + | str_p("maxtroops")[meter_value.meter = val(METER_MAX_TROOPS)] | str_p("population")[meter_value.meter = val(METER_POPULATION)] | str_p("health")[meter_value.meter = val(METER_HEALTH)] | str_p("farming")[meter_value.meter = val(METER_FARMING)] @@ -260,6 +261,7 @@ | str_p("shield")[meter_value.meter = val(METER_SHIELD)] | str_p("structure")[meter_value.meter = val(METER_STRUCTURE)] | str_p("defense")[meter_value.meter = val(METER_DEFENSE)] + | str_p("troops")[meter_value.meter = val(METER_TROOPS)] | str_p("foodconsumption")[meter_value.meter = val(METER_FOOD_CONSUMPTION)] | str_p("supply")[meter_value.meter = val(METER_SUPPLY)] | str_p("stealth")[meter_value.meter = val(METER_STEALTH)] |