mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Tech tree balance
This commit is contained in:
parent
a7cddf97b8
commit
50355b45d5
2 changed files with 7 additions and 6 deletions
|
|
@ -1,9 +1,10 @@
|
|||
package mindustry.content;
|
||||
|
||||
import arc.struct.Array;
|
||||
import mindustry.ctype.ContentList;
|
||||
import mindustry.type.ItemStack;
|
||||
import mindustry.world.Block;
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.type.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
import static mindustry.content.Blocks.*;
|
||||
|
||||
|
|
@ -318,7 +319,7 @@ public class TechTree implements ContentList{
|
|||
private static TechNode node(Block block, Runnable children){
|
||||
ItemStack[] requirements = new ItemStack[block.requirements.length];
|
||||
for(int i = 0; i < requirements.length; i++){
|
||||
requirements[i] = new ItemStack(block.requirements[i].item, 30 + block.requirements[i].amount * 6);
|
||||
requirements[i] = new ItemStack(block.requirements[i].item, 40 + Mathf.round(Mathf.pow(block.requirements[i].amount, 1.25f) * 6, 10));
|
||||
}
|
||||
|
||||
return new TechNode(block, requirements, children);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=92d1f180ba4a09b3005afc76b9e5af806b726bac
|
||||
archash=49849134b9321f44f0d7ee2e0bb533cc6c69d39a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue