mrrandomplayer
Hopeless Situation Warrior
So here's my first draft, this is at the end of CvPlot::doTurn:
Also, where would I change what worker improvements are enabled? One unique power I'm trying to make is one that enables all Ancient Era improvements from the start of the game.
Code:
if (GET_PLAYER(getOwnerInline()).getCivilizationType() == RUSSIA){
//need to loop through units, below is idea??
for (int i = 0; i < getNumUnits(); i++){ //goes through units in tile
CvUnit u = getUnitByIndex(i);
if (u.getTeam().isAtWar(getOwnerInline()){
u.setDamage(-5, u.getOwner()); //deals 5%?
}
}
}
Also, where would I change what worker improvements are enabled? One unique power I'm trying to make is one that enables all Ancient Era improvements from the start of the game.