-
Notifications
You must be signed in to change notification settings - Fork 0
/
RicochetRocks.cs
49 lines (43 loc) · 1.2 KB
/
RicochetRocks.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.Collections.Generic;
using SubworldLibrary;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.World.Generation;
namespace Thinf
{
public class RicochetRocks : Subworld
{
public override int width => 1000;
public override int height => 1000;
public override ModWorld modWorld => ModContent.GetInstance<ModNameWorld>();
public override bool saveSubworld => false;
public override bool disablePlayerSaving => false;
public override bool saveModData => false;
public override List<GenPass> tasks => new List<GenPass>()
{
new SubworldGenPass(progress =>
{
progress.Message = "Entering the Gatrix";
Main.worldSurface = Main.maxTilesY - 42;
Main.rockLayer = Main.maxTilesY;
for (int i = 0; i < Main.maxTilesX; i++)
{
for (int j = 0; j < Main.maxTilesY; j++)
{
progress.Set((j + i * Main.maxTilesY) / (float)(Main.maxTilesX * Main.maxTilesY));
if (Main.rand.Next(300) == 0)
{
WorldGen.TileRunner(i, j, 10, 2, TileID.Stone, true);
}
}
}
})
};
public override void Load()
{
Main.dayTime = true;
Main.time = 27000;
}
}
}