Ah, thanks, I didn't know "Power" was a thing that actually existed. Thanks for clarifying. I kind of assumed power was the sum already (and realized it wasn't when it wasn't working) Thanks for the pointers.
Aminimouse
@Aminimouse
2
Posts
710
Profile views
0
Followers
0
Following
Posts made by Aminimouse
-
RE: What does RESOURCE_POWER refer to?
-
What does RESOURCE_POWER refer to?
title. Trying to make it so my harvesters and such will ignore a Storage unit if it is full. I know it's a long shot, because I just started the game, and 'lol when will you have 1m energy?' But I'd like to anyway. Have a simulation going and can't figure it out. This is what I have so far, but if the storage unit is full with a mixture of energy and something else, it still tries to go for the storage unit because energy < capacity.
structure.structureType == STRUCTURE_STORAGE &&
((structure.store[WHAT_DO_I_PUT_HERE?] + structure.store[OR_HERE?]) < structure.storeCapacity)