HIVE GALAXY - Energy balance

avatar

Hello friends!

In game we have different resourses:

Metal - and metal mine

Crystal - and crystal mine

HE3 - fuel

Energy - Starting capacity 100

Level for Buldings is from 0-100, with level caps (bonuses) on 25,50,75 and 100 (milestones)

Main buildings, we have HQ (base), and they make limit for other buldings, you cant upgrade metal mine 2 if you have HQ 1, so first upgrade HQ than other buildings.

Other buldings use energy like resourse (without energy they dont work).

On energy buildings we have 4 different kind of buildings.

Solar panel work on day and produce energy (on night not work) - they dont give capacity, only produce energy.

BASIC STARTING CAPACITY = 100 (100 energy)

Fusion reactor USE fuel (HE3) to produce energy, can work on day and night no problem, also they give 1 capacity per upgrade, so max lvl buidling is 100, they give 100 capacity.

At moment my fusion dont eat HE3 so i need to make code for that, because HE3 is important for ships, for upgrades etc...

Batery, in reality give capacity, so i change formula and make batery for focus to make big capacity.

On 100 lvl they give 9700 capacity.

100 capacity is starting,

100 capacity is bonus for 100 lvl fusion reactor, 100 capacity is bonus for 100 lvl electric network,

so total 10000 capacity.

Also we have artifacts, research, commanders, so we can boost this numbers a little.

Code functions:

// ── ENERGY FUNKCIJE ──
function getEnergyGen() {
const b = buildings;
return 0.005
+ (b.solar?.level || 0) * 4
+ (b.fusion?.level || 0) * 12
+ (b.battery?.level || 0) * 1
+ (b.grid?.level || 0) * 1;
}

So with 0.005 basic energy per second, player need near 6h to make 100 energy full (4x per day)

Because in reality batery dont produce electric power, network also dont produce power,

i change produce power and now need to make balance again...

In research we have upgrade for capacity of batery, they add 2 capacity per lvl, on 25 lvl they give bonus +50 etc...

Now i think about add DAY - NIGHT in game with virtual timer, mabey 12h day 12h night or more day less night we will see that.

Electric network now dont have capacity, i add only 1 per level and 1 income per level, they have different purpose.

They give less drain of energy from other buildings, that is very important end game.

Also instances need energy, but i think to rework numbers by levels, because we have 4 different dificulty (i need work that also)

Soooo

That is all about now, stay tuned ;)



0
0
0.000
0 comments