diff --git a/gamedata.cpp b/gamedata.cpp index b170161..4c084d9 100644 --- a/gamedata.cpp +++ b/gamedata.cpp @@ -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; } diff --git a/player.cpp b/player.cpp index e6f9812..620c04f 100644 --- a/player.cpp +++ b/player.cpp @@ -4,7 +4,7 @@ Player::Player(string name, unsigned int colour) { this->name = name; this->colour = colour; - energy = 25; + energy = 0; }