That, could be a problem


#1

When infrastructure costs $0, buying becomes problematic.

Thankfully, buying on galaxy screen works fine.


#2

I’ve never seen this (you must have some crazy high Terra) but this has been brought up before and is hopefully on Jay’s todo list. I’m guessing an easy fix:
$upgrade_cost = 1 if ($upgrade_cost < 1);
which should (obviously) also be applied to Industry, Science, and Warp Gates.

LOL if the Economy upgrade cost stayed at ZERO because you could build infinite Economy! :wink:


#3

$upgrade_cost = MAX( 1 , original_formula_of_$upgrade_cost ) ;


#4

I’ve not looked at the code, but the correct fix is probably changing something like:

if (upgradeCost) {
    showButton();
}

To:

if (upgradeCost !== undefined) {
    showButton();
}

Because 0, "", undefined, etc. are all falsy.


#5

@JayKyburz , wonder why after HULK and xjhdexter posted into this thread,

the forum topics listing does not show the additional users ?


#6

I’ll put this on the list.

I’ve started a public trello board for all the new features / bugs but haven’t started moving issues over to it from my private list.


#7

ps: The bug is that the minimum upgrade cost for inf should be 1 I think!


#8

edit: it is now!

That trello board is not public btw.

Board not found.

This board may be private. If someone gave you this link, they may need to invite you to one of their boards or teams.