Rinart73 Posted October 17, 2018 Share Posted October 17, 2018 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 More sharing options...
Boxelware Team koonschi Posted October 17, 2018 Boxelware Team Share Posted October 17, 2018 Thanks, fixed. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now