Further research cost reduction

This commit is contained in:
Anuken
2022-02-19 16:48:22 -05:00
parent 8ce4f4683c
commit 864fddffa3
2 changed files with 7 additions and 6 deletions

View File

@@ -989,7 +989,7 @@ public class Block extends UnlockableContent implements Senseable{
if(researchCostMultiplier <= 0f) return ItemStack.empty;
ItemStack[] out = new ItemStack[requirements.length];
for(int i = 0; i < out.length; i++){
int quantity = 60 + Mathf.round(Mathf.pow(requirements[i].amount, 1.11f) * 20 * researchCostMultiplier * researchCostMultipliers.get(requirements[i].item, 1f), 10);
int quantity = Mathf.round(60 * researchCostMultiplier + Mathf.pow(requirements[i].amount, 1.11f) * 20 * researchCostMultiplier * researchCostMultipliers.get(requirements[i].item, 1f), 10);
out[i] = new ItemStack(requirements[i].item, UI.roundAmount(quantity));
}