Feature #310 » 0031-Add-effect-type-Impr_Upkeep_Reduction.patch
ai/default/daieffects.c | ||
---|---|---|
case EFT_CAPITAL_CITY:
|
||
case EFT_GOV_CENTER:
|
||
case EFT_UPKEEP_FREE:
|
||
case EFT_IMPR_UPKEEP_REDUCTION:
|
||
case EFT_TECH_UPKEEP_FREE:
|
||
case EFT_POLLU_POP_PCT:
|
||
case EFT_POLLU_POP_PCT_2:
|
common/city.c | ||
---|---|---|
gold_needed += city_improvement_upkeep(pcity, pimprove);
|
||
} city_built_iterate_end;
|
||
return gold_needed;
|
||
gold_needed -= get_city_bonus(pcity, EFT_IMPR_UPKEEP_REDUCTION);
|
||
return MAX(gold_needed, 0);
|
||
}
|
||
/**********************************************************************//**
|
doc/README.effects | ||
---|---|---|
that turns out to be illegal. Only applied when the player wasn't aware that
|
||
the action was illegal and its illegality therefore reveals new information.
|
||
Impr_Upkeep_Reduction
|
||
Reduce city's total improvement upkeep by the value. The upkeep cannot
|
||
go negative, though.
|
||
Incite_Cost_Pct
|
||
Increases revolt cost by amount percent.
|
||
gen_headers/enums/effects_enums.def | ||
---|---|---|
SURPLUS_WASTE_PCT "Surplus_Waste_Pct"
|
||
SURPLUS_WASTE_PCT_BY_REL_DISTANCE "Surplus_Waste_Pct_By_Rel_Distance"
|
||
TECH_LEAKAGE "Tech_Leakage"
|
||
IMPR_UPKEEP_REDUCTION "Impr_Upkeep_Reduction"
|
||
USER_EFFECT_1 "User_Effect_1"
|
||
USER_EFFECT_2 "User_Effect_2"
|
||
USER_EFFECT_3 "User_Effect_3"
|