Made some tweaks to game balance
This commit is contained in:
parent
9ee2972612
commit
12bbcb7f23
1
TODO
1
TODO
|
@ -1,5 +1,6 @@
|
|||
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...
|
||||
* OpenGL, of course... can we start with a rendering in the corner?
|
||||
* Better art!
|
||||
|
|
|
@ -13,19 +13,18 @@ GameVertex::GameVertex(int x, int y, int z, int r, int colour, int score,
|
|||
|
||||
float GameVertex::calculate_armor()
|
||||
{
|
||||
float str = calculate_strength();
|
||||
float armor;
|
||||
float armor = calculate_strength();
|
||||
|
||||
switch(type)
|
||||
{
|
||||
case VERTEX_ATTACKER:
|
||||
armor = str / 10;
|
||||
armor *= 0.2;
|
||||
break;
|
||||
case VERTEX_DEFENDER:
|
||||
armor = str / 5;
|
||||
armor *= 0.5;
|
||||
break;
|
||||
case VERTEX_PRODUCER:
|
||||
armor = str / 40;
|
||||
armor *= 0.1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -41,10 +40,10 @@ float GameVertex::calculate_attack()
|
|||
switch (type)
|
||||
{
|
||||
case VERTEX_ATTACKER:
|
||||
attack *= 1.5;
|
||||
attack *= 1.25;
|
||||
break;
|
||||
case VERTEX_DEFENDER:
|
||||
attack /= 0.75;
|
||||
attack *= 0.1;
|
||||
break;
|
||||
case VERTEX_PRODUCER:
|
||||
attack = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user