mulander / evolutionchamber

Automatically exported from code.google.com/p/evolutionchamber
0 stars 0 forks source link

Extractor trick does not take into account resources than can not be spent #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When an extractor trick is used, 19 minerals are refunded in game. The player 
can only spend resources in multiples of 5.  Minerals from refunds can only be 
spent as minerals - (minerals % 5). 

Thusly, the extractor trick should only refund 15 minerals.

Original issue reported on code.google.com by AudioL...@gmail.com on 25 Oct 2010 at 5:41

GoogleCodeExporter commented 9 years ago

Original comment by AudioL...@gmail.com on 25 Oct 2010 at 9:41

GoogleCodeExporter commented 9 years ago
What if multiple extractor tricks are used?  The sum of those "useless" 
minerals in the case of multiple tricks could be used.

Original comment by brad.han...@gmail.com on 25 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago
It would require 5 extractor tricks to come back to a mineral count divisible 
by 5. It's safe to assume that if 5 extractor tricks are required, the build 
produced is not fit.

Original comment by AudioL...@gmail.com on 25 Oct 2010 at 9:55

GoogleCodeExporter commented 9 years ago
But it would only require 2 extractor tricks to produce a usable number of 
minerals from the useless surplus. 

4 + 4 = 8 - 5 = 3 useless, 5 usable

Original comment by brad.han...@gmail.com on 26 Oct 2010 at 12:09

GoogleCodeExporter commented 9 years ago
Well if subtracting 15, then yes. My comment was referring to a regular game 
situation :)

This was a fix to help avoid the preference for early extractor trick. Ideally 
using a base 5 resource generation would fix the proper way.

Original comment by AudioL...@gmail.com on 26 Oct 2010 at 12:24