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 zcmeAS@N?(olHy`uVBq!ia0y~yU}ykg4mJh`hQoG=rx_R+7>k44ofy`glX=O&z;?*f z#WAE}&fB@ReKO_(t=a5+B@72YFuw8lplP;w;e z)8d?$MP&AI?x!QefdyRvr1in3`Zb!}asJ_YE#Q-IaHw-N^>m)uli87qy zR5qwcd*#j7Q1b9x|CPmW+r#drw>F3{tX=)1L-E2Y0gocrX6-*QJ+4+KVQIWON=%bZ!uwD$V3$ zt8)5g^XkIY|CE9cUV6s-h1J^r72h(A=5U`#RgcpuS09BjKS+GEOhxAC4-v0gi_-N| zPai(8Ep&cTmj#o@H}5Eq{sn6vWW}!fe^!1^_&n~dCvCd;HmbgP;KIOnPLb(=q@j23 zroF`-3@oK(@(mNUe{!rn@Qztvi(oYOg#{*OUnM3jJ(`s&7q#!|64T>-q9Lm|kH1n1 zd?vYM*A5OPGy%%d7qt{*bn5nyhjp2Y9%avLNhHw4h z#q-3r@ig9Enb7x>VOxK8@%giBSFym#!?oIZ={j3hvOVDNUg*B?>CzKf4{pEz=UV&j>1uJI<+n|*S2xuEJM{AB>*s~G zk&FkVQK%8DSKX)KE3OhP}N{?-+rb0j6#`TdJ1Ra*}KBC-m`PO zIasm%bmszw^Loq+Hp(UJ{pi9S!VvcAziDrjCQHQmU5pVY|2(jict4Br$M3tdm$Egi z-lLYMX3M{t@q&T8_0f}w&%SA$EzZoi@@dnIw71&vRlW+QF4cnCd$&%C+k1JB0|Udp z+RyLYq_?^sp7r_C{NzZB=bA@K&u%%EWFC89O*A;6{rVffL_66q%xNlWQuw>-tK6jZd!Dn!E3=q4H%-)YSk&l$r^=O2Eh>zFCGz$$Z6`+>z5Rky4U>sQp6$i6tm&S5dP$Nmjn zKM($2GVkgc_7`VZ+CFACe?0&7^&@78T@5PF z=X`ARJFZq=QQ-etdG0l8S>FVjgb&<$#%^PF-qpON=GTwso9pZUAMT&juAgM-TfKMw zWv+}@TH9pih;RC~y`gQ}Iwi&oQ4Oa9>22!{Gae98adJqXwoaYlpI?+0qY_I++KXM4 z=jO3Lm={r%a6_79+P0|c+m;5~?N+qqn6vQph1-Xgu1i^|u!ZTut@QcQ-am7?LKxCs z-kQUCXGN>SF3IaWjL#Ii&qka|58g9#f8b@&ua`HP*8Tb^zV)P1r@|7&3sr~IcpF=O z&U(DazV3g+C$X=JzMsvPI4$^FarJb#{+-$T8#xTSR8wYjp4xdf`~oW4<5};;D0s4;dNxyE4@tb z&l|Tlu8VHqT{S`K_RVmk`AnIDCpL*PY{=#eGnTLZ$}AAgaH^46dWD?sMb?6eFSx$_ zD-p3|SiO}=nQdK~-ErwK?t&HpnS(VAbITbuMV!Np>suCTS3Zkvyz*>8kg|lxlZ=KdUsY;>MSYhprYCoC{{PXE;#RzkccM^=s5G zM0NB&Q`L_2{-&k4B6surg@U5tj0eI_WeaRLAAaV_s`eLuZI&n9>8jvn{Qhv(%vnA;y6Ux#`ms}+_>nAFWU erekirSector = Seq.with(new OnPlanet(Planets.erekir)); var costMultipliers = new 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");