Changed energy cost increase for producers, reworked menu buttons

This commit is contained in:
2011-07-04 02:32:57 -04:00
parent c2ecbf5c23
commit aa21bb9d39
2 changed files with 3 additions and 2 deletions

View File

@ -138,7 +138,8 @@ bool GameData::add_vertex(int x, int y, int z, int r, int colour)
energy_cost = 25;
break;
case VERTEX_PRODUCER:
energy_cost = 25 + (25 * num_vertices_by_type(build_type, turn));
if (num_vertices_by_type(build_type, turn) == 0) energy_cost = 0;
else energy_cost = 25 << (num_vertices_by_type(build_type, turn) - 1);
break;
}