Skip to content

Commit

Permalink
solvent
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Mar 28, 2024
1 parent 0d60e5d commit da5dd37
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/blocks/environment/ash-graphite1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/blocks/environment/ash-graphite2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/blocks/environment/marble3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/sprites/blocks/environment/marble4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sprites/blocks/environment/solvent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified atlas.sai2
Binary file not shown.
1 change: 1 addition & 0 deletions src/sw/SWVars.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function importModClass(name){
Vars.mods.getScripts().runConsole("importModClass(\"sw.dream.events\")");
Vars.mods.getScripts().runConsole("importModClass(\"sw.maps\")");
Vars.mods.getScripts().runConsole("importModClass(\"sw.maps.generators\")");
Vars.mods.getScripts().runConsole("importModClass(\"sw.graphics\")");
Vars.mods.getScripts().runConsole("importModClass(\"sw.util\")");
Vars.mods.getScripts().runConsole("importModClass(\"sw.world.graph\")");
}
Expand Down
42 changes: 40 additions & 2 deletions src/sw/content/blocks/SWEnvironment.java
Original file line number Diff line number Diff line change
@@ -1,27 +1,47 @@
package sw.content.blocks;

import mindustry.content.*;
import mindustry.graphics.*;
import mindustry.world.*;
import mindustry.world.blocks.environment.*;
import sw.content.*;

public class SWEnvironment {
public static Block
spinyTree, deadSpinyTree,

ash, fineAsh, ashWall,
oreNickel, oreIron,

ash, fineAsh, ashWall, ashGraphite,
fauna, denseFauna, faunaWall,
deadFauna, denseDeadFauna, deadFaunaWall,
biomass, folliage, biomassWall,
gravel, flatGravel, gravelWall,
roots, tangledRoots, rootsWall,
soil, clay, soilWall,
marble, roughMarble, marbleWall, marbleBoulder,
marble, roughMarble, marbleWall, marbleGraphite, marbleBoulder,

solvent, shallowSolvent, shallowerSolvent,

plate, plateCross, plateVent, plateWall;

public static void load() {
spinyTree = new TreeBlock("spiny-tree");
deadSpinyTree = new TreeBlock("dead-spiny-tree");


oreNickel = new OreBlock(SWItems.nickel) {{
variants = 4;
}};
oreIron = new OreBlock(SWItems.iron) {{
variants = 4;
}};


ashWall = new StaticWall("ash-wall");
ashGraphite = new StaticWall("ash-graphite") {{
itemDrop = Items.graphite;
}};
ash = new Floor("ash", 4) {{
wall = ashWall;
}};
Expand Down Expand Up @@ -78,6 +98,9 @@ public static void load() {
}};

marbleWall = new StaticWall("marble-wall");
marbleGraphite = new StaticWall("marble-graphite") {{
itemDrop = Items.graphite;
}};
marbleBoulder = new Prop("marble-boulder") {{
variants = 2;
}};
Expand All @@ -90,6 +113,21 @@ public static void load() {
decoration = marbleBoulder;
}};


solvent = new Floor("solvent", 0) {{
cacheLayer = CacheLayer.water;
// liquidDrop = SWLiquids.solvent
}};
shallowSolvent = new Floor("shallow-solvent") {{
cacheLayer = CacheLayer.water;
// liquidDrop = SWLiquids.solvent
}};
shallowerSolvent = new Floor("shallower-solvent") {{
cacheLayer = CacheLayer.water;
// liquidDrop = SWLiquids.solvent
}};


plateWall = new StaticWall("plate-wall");
plate = new Floor("plate", 4) {{
wall = plateWall;
Expand Down

0 comments on commit da5dd37

Please sign in to comment.