From b3d4dc06d44db962e0ae2474ab4032a9887754f9 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 20 Jan 2022 23:06:04 -0500 Subject: [PATCH] Misc --- .../blocks/turrets/afflict/afflict.png | Bin 0 -> 1800 bytes core/src/mindustry/content/Blocks.java | 54 +++++++++++++----- .../src/mindustry/content/ErekirTechTree.java | 4 +- .../maps/planet/ErekirPlanetGenerator.java | 7 ++- .../world/blocks/production/WallCrafter.java | 2 +- core/src/mindustry/world/meta/Attribute.java | 6 +- 6 files changed, 52 insertions(+), 21 deletions(-) create mode 100644 core/assets-raw/sprites/blocks/turrets/afflict/afflict.png diff --git a/core/assets-raw/sprites/blocks/turrets/afflict/afflict.png b/core/assets-raw/sprites/blocks/turrets/afflict/afflict.png new file mode 100644 index 0000000000000000000000000000000000000000..69f2a1b06593b1ba8433943d54fb35a731c09c8e GIT binary patch literal 1800 zcmV+j2lx1iP)Px*!bwCyRCt{2ojr~mHxPwu2M%-q!SDg>Nbo5(v$2uyAxx-1!2}Kz4s;JihMnyx z3`f!d1j7e#WGPrQ%;oT>s#wJ;cGs6_HPcPL_nKsr>>hw12!bF8f*=TjAP9mW2!dee z+*uc(#(%$EzSREj^l))m?iI`Iu23xzQ@jbfYPnq%1}kEUwV*4OImJyuI6`h%3A$pL zb6gZ+M97WVg05KR66OVv5OQOdpevTSdVb53OCxEFCihgRKZg@6!G<{D$aSECz%87Y)t=BnE46+BH3zTq6W1U8vH z&W`}sd)jwS50|@IWk<_ZJMQV>az|YmlxpGLU+eXy(iDesl2mAk!eK*z5tSPPOg$va z*@LTbtNtQW!P4df^aVRV>JFwTgI7#hB}mI8)#6qI;9=sXBpk)~6iR(Kb+47n!@#yx zpJIwQ0!a2tT1bzet>9{1s{hR&yjPwJwaGk+4zVTd;6wlp&LIN888J(Zvb}SN00eb* zAApf7`3SAR?gJ3C5nBt;pft_uVPd7lYGoc;zSX2P$Bq?LstL#HB2nfUq`J5a0A_)u zC8$>4-O^{Y%rkKv0LoH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ObjectFloatMap(); - costMultipliers.put(Items.silicon, 6); + costMultipliers.put(Items.silicon, 7); costMultipliers.put(Items.surgeAlloy, 4); - costMultipliers.put(Items.thorium, 7); + costMultipliers.put(Items.thorium, 8); costMultipliers.put(Items.graphite, 6); Planets.erekir.techTree = nodeRoot("erekir", coreBastion, true, () -> { diff --git a/core/src/mindustry/maps/planet/ErekirPlanetGenerator.java b/core/src/mindustry/maps/planet/ErekirPlanetGenerator.java index 6157f87579..0b0c437c71 100644 --- a/core/src/mindustry/maps/planet/ErekirPlanetGenerator.java +++ b/core/src/mindustry/maps/planet/ErekirPlanetGenerator.java @@ -141,6 +141,9 @@ public class ErekirPlanetGenerator extends PlanetGenerator{ //arkycite //TODO arkycite biome //TODO ice biome + + //TODO arkycite is too disruptive to terrain, needs certain conditions and sub-biomes. + if(false) pass((x, y) -> { if(nearWall(x, y)) return; @@ -187,7 +190,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{ if(block == Blocks.air) block = Blocks.yellowStoneWall; } - if(floor == Blocks.yellowStonePlates && noise(x + 78 + y, y, 3, 0.8f, 8f, 1f) > 0.38f){ + if(floor == Blocks.yellowStonePlates && noise(x + 78 + y, y, 3, 0.8f, 7f, 1f) > 0.41f){ floor = Blocks.yellowStone; } }); @@ -249,7 +252,7 @@ public class ErekirPlanetGenerator extends PlanetGenerator{ //vents outer: for(Tile tile : tiles){ - if(floor == Blocks.rhyolite && rand.chance(0.0015)){ + if(floor == Blocks.rhyolite && rand.chance(0.0016)){ int radius = 2; for(int x = -radius; x <= radius; x++){ for(int y = -radius; y <= radius; y++){ diff --git a/core/src/mindustry/world/blocks/production/WallCrafter.java b/core/src/mindustry/world/blocks/production/WallCrafter.java index da13ed5419..352583c86b 100644 --- a/core/src/mindustry/world/blocks/production/WallCrafter.java +++ b/core/src/mindustry/world/blocks/production/WallCrafter.java @@ -34,7 +34,7 @@ public class WallCrafter extends Block{ public float updateEffectChance = 0.02f; public float rotateSpeed = 2f; /** Attribute to check for wall output. */ - public Attribute attribute = Attribute.silicate; + public Attribute attribute = Attribute.sand; public Item output = Items.sand; diff --git a/core/src/mindustry/world/meta/Attribute.java b/core/src/mindustry/world/meta/Attribute.java index 3b8554fd8e..5d573ed2e7 100644 --- a/core/src/mindustry/world/meta/Attribute.java +++ b/core/src/mindustry/world/meta/Attribute.java @@ -7,8 +7,8 @@ public class Attribute{ public static Attribute[] all = {}; public static ObjectMap map = new ObjectMap<>(); - public static final Attribute /** Heat content. Used for thermal generator yield. */ + public static final Attribute heat = add("heat"), /** Spore content. Used for cultivator yield. */ spores = add("spores"), @@ -18,8 +18,8 @@ public class Attribute{ oil = add("oil"), /** Light coverage. Negative values decrease solar panel efficiency. */ light = add("light"), - /** Silicate content. Used for sand extraction. */ - silicate = add("silicate"), + /** Used for sand extraction. */ + sand = add("sand"), /** Used for erekir vents only. */ vent = add("vent");