Made some tweaks to game balance

This commit is contained in:
Anna Rose 2011-07-05 22:28:46 -04:00
parent 9ee2972612
commit 12bbcb7f23
2 changed files with 7 additions and 7 deletions

1
TODO
View File

@ -1,5 +1,6 @@
Some things that need doing: Some things that need doing:
* Defenders should add to armor score, attackers to attack score, producers boost each other's energy production... all scaled by distance on the graph
* Display energy costs... * Display energy costs...
* OpenGL, of course... can we start with a rendering in the corner? * OpenGL, of course... can we start with a rendering in the corner?
* Better art! * Better art!

View File

@ -13,19 +13,18 @@ GameVertex::GameVertex(int x, int y, int z, int r, int colour, int score,
float GameVertex::calculate_armor() float GameVertex::calculate_armor()
{ {
float str = calculate_strength(); float armor = calculate_strength();
float armor;
switch(type) switch(type)
{ {
case VERTEX_ATTACKER: case VERTEX_ATTACKER:
armor = str / 10; armor *= 0.2;
break; break;
case VERTEX_DEFENDER: case VERTEX_DEFENDER:
armor = str / 5; armor *= 0.5;
break; break;
case VERTEX_PRODUCER: case VERTEX_PRODUCER:
armor = str / 40; armor *= 0.1;
break; break;
} }
@ -41,10 +40,10 @@ float GameVertex::calculate_attack()
switch (type) switch (type)
{ {
case VERTEX_ATTACKER: case VERTEX_ATTACKER:
attack *= 1.5; attack *= 1.25;
break; break;
case VERTEX_DEFENDER: case VERTEX_DEFENDER:
attack /= 0.75; attack *= 0.1;
break; break;
case VERTEX_PRODUCER: case VERTEX_PRODUCER:
attack = 0; attack = 0;