Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
I think the best result would come from adding this last in CvPlot::setFeatureBonus()Could you tell me above all the top codes which is the best to pick?
Code:
// cache variables
static FeatureTypes eFeature = (FeatureTypes)GC.getInfoTypeForString("FEATURE_DUMMY");
static BonusTypes eBonus = (BonusTypes)GC.getInfoTypeForString("BONUS_DUMMY");
if (getFeatureType() == eFeature [S]&& getBonusType() == NO_BONUS[/S])
{
setBonus(eBonus);
}
else if (getFeatureType() != eFeature && getBonusType() == eBonus)
{
setBonusType(NO_BONUS);
}
Come to think of it, it is possible that the map generator fills in the features and then add bonuses to plots with no existing bonuses. If that is the case, then by the time it adds bonuses, the feature bonuses are already added and the plots will not be considered when adding the other bonuses. Again it depends on the map generator code, but it's possible that the problem is fixed before it shows up. Testing is certainly needed.