A Splash of Iris

This commit is contained in:
Daniel Mills 2020-09-04 02:15:36 -04:00
parent d144b9ba0b
commit bdd0da82e7
2 changed files with 51 additions and 10 deletions

View File

@ -25,6 +25,7 @@ import com.volmit.iris.gen.post.PostWallPatcher;
import com.volmit.iris.gen.post.PostWaterlogger;
import com.volmit.iris.link.MultiverseCoreLink;
import com.volmit.iris.util.C;
import com.volmit.iris.util.Form;
import com.volmit.iris.util.GroupedExecutor;
import com.volmit.iris.util.IO;
import com.volmit.iris.util.IrisLock;
@ -88,6 +89,7 @@ public class Iris extends MortarPlugin
board = new IrisBoardManager();
linkMultiverseCore = new MultiverseCoreLink();
J.a(() -> IO.delete(getTemp()));
J.s(this::splash, 20);
super.onEnable();
}
@ -270,4 +272,42 @@ public class Iris extends MortarPlugin
{
board.hits.put(hits2);
}
public void splash()
{
//@builder
String padd = Form.repeat(" ", 8);
String padd2 = Form.repeat(" ", 4);
String[] info = {
"",
"",
"",
"",
"",
padd2 + C.GREEN + " Iris",
padd2 + C.GRAY + " by "+C.randomColor()+"V"+C.randomColor()+"o"+C.randomColor()+"l"+C.randomColor()+"m"+C.randomColor()+"i"+C.randomColor()+"t"+C.randomColor()+"S"+C.randomColor()+"o"+C.randomColor()+"f"+C.randomColor()+"t"+C.randomColor()+"w"+C.randomColor()+"a"+C.randomColor()+"r"+C.randomColor()+"e",
padd2 + C.GRAY + " v" + getDescription().getVersion(),
};
String[] splash = {
padd + C.GRAY + " @%%%%%%%%%%%%%%%%%%%% ",
padd + C.GRAY + " @@&&&&&&&&&&&&&&&%%" + C.GREEN + " (((((( ",
padd + C.GRAY + "@@@&&&&&&&&&&&&&" + C.GREEN + " (((((((((((((( ",
padd + C.GRAY + "@@@&&&&&&&&&&" + C.GREEN + " (((((((((((((((((((( " + C.GRAY + " @ ",
padd + C.GRAY + "@@@&&&&@@@@@&" + C.GREEN + " (((((((((((((((((((( " + C.GRAY + " @@ ",
padd + C.GRAY + "@@@ " + C.GREEN + " (((((((((((((((((((( " + C.GRAY + " @@@",
padd + C.GRAY + "@@ " + C.GREEN + " (((((((((((((((((((( " + C.GRAY + "&%%%%%%%%%@@@",
padd + C.GRAY + "@ " + C.GREEN + " (((((((((((((((((((( " + C.GRAY + "&&&&%%%%%%@@@",
padd + C.GRAY + " " + C.GREEN + " (((((((((((((( " + C.GRAY + "&&&&&&&&%%&&%@@@",
padd + C.GRAY + " " + C.GREEN + " (((((( " + C.GRAY + "@@@&&&&&&&&&&&&%%@@ ",
padd + C.GRAY + " @@@@@@@&&&&&&&&&&&&&@ "
};
//@done
for(int i = 0; i < info.length; i++)
{
splash[i] += info[i];
}
Iris.info("\n\n " + new KList<String>(splash).toString("\n") + "\n");
}
}

View File

@ -285,16 +285,6 @@ public abstract class ParallaxChunkGenerator extends TerrainChunkGenerator imple
k.place(this, random.nextParallelRNG(-22228 + -4228 + -7228 + (34 * ((i * 30) + (j * 30)) * i * j) + i - j + 1569962), i, j);
}
for(IrisStructurePlacement k : r.getStructures())
{
k.place(this, random.nextParallelRNG(2228), i, j);
}
for(IrisStructurePlacement k : b.getStructures())
{
k.place(this, random.nextParallelRNG(-22228), i, j);
}
for(IrisObjectPlacement k : b.getObjects())
{
int gg = g++;
@ -324,6 +314,17 @@ public abstract class ParallaxChunkGenerator extends TerrainChunkGenerator imple
placeCaveObject(k, i, j, random.nextParallelRNG((34 * ((i * 30) + (j * 30) + gg) * i * j) + i - j + 1869322));
}
}
for(IrisStructurePlacement k : r.getStructures())
{
k.place(this, random.nextParallelRNG(2228), i, j);
}
for(IrisStructurePlacement k : b.getStructures())
{
k.place(this, random.nextParallelRNG(-22228), i, j);
}
});
getParallaxChunk(ii, jj).setParallaxGenerated(true);