Jump to content

Low-Rarity Hyperspace Upgrades can have price 0


Rinart73

Recommended Posts

There is a chance that a low-rarity Hyperspace System Upgrade will have a price 0, because the one and only bonus it will have will by Hyperspace Cooldown.

 

And since this bonus only works when upgrade is permanently installed and we have don't count "permanent" factor when we're calculating price:

function getPrice(seed, rarity)
    local reach, cdfactor, efactor, radar = getBonuses(seed, rarity)
    local price = math.abs(cdfactor) * 100 * 350 + math.abs(efactor) * 100 * 250 + reach * 3000 + radar * 450
    return price * 2.5 ^ rarity.value
end

We will get upgrades with price 0

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...