Skip to content

Commit 540c30d

Browse files
committed
v0.7 release, updated to tModLoader 0.11.6.2, new features
1 parent bedc9fa commit 540c30d

File tree

8 files changed

+30
-32
lines changed

8 files changed

+30
-32
lines changed

patches/TerraCustom/Terraria.ModLoader/Logging.cs.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- src/tModLoader\Terraria.ModLoader\Logging.cs
22
+++ src/TerraCustom\Terraria.ModLoader\Logging.cs
3-
@@ -21,7 +_,7 @@
3+
@@ -22,7 +_,7 @@
44
{
55
public static class Logging
66
{

patches/TerraCustom/Terraria.ModLoader/ModLoader.cs.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--- src/tModLoader\Terraria.ModLoader\ModLoader.cs
22
+++ src/TerraCustom\Terraria.ModLoader\ModLoader.cs
3-
@@ -135,7 +_,24 @@
4-
OnSuccessfulLoad = null;
3+
@@ -134,7 +_,24 @@
4+
OnSuccessfulLoad();
55
}
66
else {
77
- Main.menuMode = 0;
@@ -26,7 +26,7 @@
2626
}
2727
}
2828
catch when (token.IsCancellationRequested) {
29-
@@ -339,8 +_,10 @@
29+
@@ -354,8 +_,10 @@
3030
if (LastLaunchedTModLoaderVersion < version)
3131
ShowWhatsNew = true;
3232
*/

patches/TerraCustom/Terraria.csproj.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Compile Include="Terraria.Localization\GameCulture.cs" />
1818
<Compile Include="Terraria.Localization\Language.cs" />
1919
<Compile Include="Terraria.Localization\LanguageChangeCallback.cs" />
20-
@@ -675,6 +_,10 @@
20+
@@ -676,6 +_,10 @@
2121
<Compile Include="Terraria.Social\ISocialModule.cs" />
2222
<Compile Include="Terraria.Social\SocialAPI.cs" />
2323
<Compile Include="Terraria.Social\SocialMode.cs" />
@@ -28,7 +28,7 @@
2828
<Compile Include="Terraria.UI.Chat\ChatLine.cs" />
2929
<Compile Include="Terraria.UI.Chat\ChatManager.cs" />
3030
<Compile Include="Terraria.UI.Chat\ITagHandler.cs" />
31-
@@ -779,6 +_,8 @@
31+
@@ -780,6 +_,8 @@
3232
<Compile Include="Terraria\RemoteClient.cs" />
3333
<Compile Include="Terraria\RemoteServer.cs" />
3434
<Compile Include="Terraria\ResolutionChangeEvent.cs" />
@@ -37,7 +37,7 @@
3737
<Compile Include="Terraria\Sign.cs" />
3838
<Compile Include="Terraria\Star.cs" />
3939
<Compile Include="Terraria\StrayMethods.cs" />
40-
@@ -1004,6 +_,10 @@
40+
@@ -1019,6 +_,10 @@
4141
<EmbeddedResource Include="Terraria.ModLoader.Default\MysteryItem.png" />
4242
<EmbeddedResource Include="Terraria.ModLoader.Default\StartBag.png" />
4343
<EmbeddedResource Include="Terraria.ModLoader.UI\UIModBrowserIcons.png" />
@@ -48,7 +48,7 @@
4848
</ItemGroup>
4949
<ItemGroup>
5050
<EmbeddedResource Include="Terraria.Localization.Content.en-US.tModLoader.json" />
51-
@@ -1015,6 +_,9 @@
51+
@@ -1030,6 +_,9 @@
5252
<EmbeddedResource Include="Terraria.Localization.Content.de-DE.tModLoader.json" />
5353
<EmbeddedResource Include="Terraria.Localization.Content.it-IT.tModLoader.json" />
5454
<EmbeddedResource Include="Terraria.Localization.Content.zh-Hans.tModLoader.json" />

patches/TerraCustom/Terraria/Main.cs.patch

+12-12
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
Platform.Current.SetWindowUnicodeTitle(base.Window, Main._cachedTitle);
113113
#endif
114114
}
115-
@@ -8142,8 +_,16 @@
115+
@@ -8144,8 +_,16 @@
116116
Main.gridTexture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "Grid");
117117
Main.trashTexture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "Trash");
118118
Main.cdTexture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "CoolDown");
@@ -129,7 +129,7 @@
129129
Main.dustTexture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "Dust");
130130
Main.sunTexture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "Sun");
131131
Main.sun2Texture = this.OurLoad<Texture2D>("Images" + Path.DirectorySeparatorChar + "Sun2");
132-
@@ -43570,7 +_,8 @@
132+
@@ -43572,7 +_,8 @@
133133
Utils.DrawBorderString(Main.spriteBatch, text, r3.Right() + Vector2.UnitX * num * -22f, Microsoft.Xna.Framework.Color.White * Main.invasionProgressAlpha, num * 0.9f, 1f, 0.4f, -1);
134134
}
135135

@@ -139,7 +139,7 @@
139139
{
140140
Main.SaveSettings();
141141
#if CLIENT
142-
@@ -43823,13 +_,14 @@
142+
@@ -43825,13 +_,14 @@
143143
{
144144
Main.ActiveWorldFileData.SetSeed(text);
145145
}
@@ -157,7 +157,7 @@
157157
Main.worldName = text.Trim();
158158
Main.ActiveWorldFileData = WorldFile.CreateMetadata(Main.worldName, SocialAPI.Cloud != null && SocialAPI.Cloud.EnabledByDefault, Main.expertMode);
159159
if (Main.UseSeedUI)
160-
@@ -43837,7 +_,7 @@
160+
@@ -43839,7 +_,7 @@
161161
Main.menuMode = 5000;
162162
return;
163163
}
@@ -166,7 +166,7 @@
166166
}
167167

168168
private static Action CreateGoToMenuEvent(int menu)
169-
@@ -44003,6 +_,10 @@
169+
@@ -44005,6 +_,10 @@
170170
if (Main.menuMode == -1)
171171
{
172172
Main.menuMode = 0;
@@ -177,7 +177,7 @@
177177
}
178178
bool loadedEverything = Program.LoadedEverything;
179179
if (loadedEverything)
180-
@@ -45183,7 +_,7 @@
180+
@@ -45185,7 +_,7 @@
181181
Main.MenuUI.SetState(Main._worldSelectMenu);
182182
Main.menuMode = 888;
183183
}
@@ -186,7 +186,7 @@
186186
{
187187
num2 = 200;
188188
num4 = 60;
189-
@@ -45215,27 +_,36 @@
189+
@@ -45217,27 +_,36 @@
190190
{
191191
Main.expertMode = false;
192192
Main.PlaySound(10, -1, -1, 1, 1f, 0f);
@@ -223,7 +223,7 @@
223223
}
224224
Main.clrInput();
225225
}
226-
@@ -45286,14 +_,14 @@
226+
@@ -45288,14 +_,14 @@
227227
num17++;
228228
Main.clrInput();
229229
}
@@ -242,15 +242,15 @@
242242
Main.menuMode = 888;
243243
}
244244
else if (Main.menuMode == 8)
245-
@@ -46635,6 +_,7 @@
245+
@@ -46637,6 +_,7 @@
246246
}
247247
else
248248
{
249249
+ TerraCustom.Interface.TerraCustomMenu(this, this.selectedMenu, array, array9, array7, array4, ref num2, ref num4, ref num5);
250250
Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, array4, ref num2, ref num4, ref num5, ref flag5);
251251
}
252252
}
253-
@@ -47542,10 +_,10 @@
253+
@@ -47544,10 +_,10 @@
254254
{
255255
num111 = 2;
256256
}
@@ -261,11 +261,11 @@
261261
+ string supportMessage = "jopojelly's Pateron - ";
262262
+ string patreonShortURL = @"patreon.com/jopojelly";
263263
+ bool showPatreon = Main.menuMode == 5001;
264-
+ string drawVersion = Main.versionNumber + Environment.NewLine + ModLoader.ModLoader.versionedName + Environment.NewLine + "jopojelly's TerraCustom v0.6.2" + (showPatreon ? Environment.NewLine + supportMessage : "");
264+
+ string drawVersion = Main.versionNumber + Environment.NewLine + ModLoader.ModLoader.versionedName + Environment.NewLine + "jopojelly's TerraCustom v0.7" + (showPatreon ? Environment.NewLine + supportMessage : "");
265265
Vector2 origin3 = Main.fontMouseText.MeasureString(drawVersion);
266266
origin3.X *= 0.5f;
267267
origin3.Y *= 0.5f;
268-
@@ -47562,7 +_,7 @@
268+
@@ -47564,7 +_,7 @@
269269
if (num109 == 4 && Main.mouseLeftRelease && Main.mouseLeft && new Microsoft.Xna.Framework.Rectangle((int)origin3.X + 10, Main.screenHeight - (int)urlSize.Y - 2, (int)urlSize.X, (int)origin3.Y).Contains(new Microsoft.Xna.Framework.Point(Main.mouseX, Main.mouseY)) && hasFocus)
270270
{
271271
Main.PlaySound(SoundID.MenuOpen);

patches/TerraCustom/Terraria/WorldGen.cs.patch

+9-11
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@
915915
num2 += (int)((float)WorldGen.genRand.Next(20, 40) * num3);
916916
- int num4 = num - num2;
917917
+ int num4 = (int)((num - num2) / (Main.setting.IceBiomeWidth));
918-
+ if (num4 > (num - num2))
918+
+ if (num4 > (num - num2))
919919
+ {
920920
+ num4 = num - num2;
921921
+ }
@@ -1096,7 +1096,7 @@
10961096
WorldGen.grassSpread = 0;
10971097
- WorldGen.SpreadGrass(k, l, 59, 60, true, 0);
10981098
+ int GrassID = 60;
1099-
+ if (Main.setting.SwapShroomJungle)
1099+
+ if (Main.setting.SwapShroomJungle)
11001100
+ {
11011101
+ GrassID = 70;
11021102
+ }
@@ -1316,7 +1316,7 @@
13161316
WorldGen.TileRunner(WorldGen.genRand.Next(0, Main.maxTilesX), WorldGen.genRand.Next(Main.maxTilesY - 140, Main.maxTilesY), (double)WorldGen.genRand.Next(2, 7), WorldGen.genRand.Next(3, 7), 58, false, 0f, 0f, false, true);
13171317
}
13181318
- WorldGen.AddHellHouses();
1319-
+ if (Main.setting.UnderworldHouseMult > 0)
1319+
+ if (Main.setting.UnderworldHouseMult > 0)
13201320
+ {
13211321
+ WorldGen.AddHellHouses();
13221322
+ }
@@ -1345,29 +1345,26 @@
13451345
int x;
13461346
if (dungeonSide == -1)
13471347
{
1348-
@@ -6213,17 +_,35 @@
1348+
@@ -6213,17 +_,32 @@
13491349
dungeonSide = 1;
13501350
}
13511351
int y = (int)((Main.worldSurface + Main.rockLayer) / 2.0) + WorldGen.genRand.Next(-200, 200);
13521352
- WorldGen.MakeDungeon(x, y);
13531353
+ if (!InWorldY(y, 0)) y = (int)((Main.worldSurface + Main.rockLayer) / 2.0);
1354+
+ if (!Main.setting.NoDungeon) {
1355+
+ WorldGen.MakeDungeon(x, y, progress);
1356+
+ }
13541357
+ if (Main.setting.DoubleDungeon == true)
13551358
+ {
1356-
+ x = 0;
13571359
+ if (dungeonSide == 1) {
13581360
+ x = WorldGen.genRand.Next((int)((double)Main.maxTilesX * 0.05), (int)((double)Main.maxTilesX * 0.2));
1359-
+ dungeonSide = 1;
13601361
+ }
13611362
+ else {
13621363
+ x = WorldGen.genRand.Next((int)((double)Main.maxTilesX * 0.8), (int)((double)Main.maxTilesX * 0.95));
1363-
+ dungeonSide = -1;
13641364
+ }
13651365
+ y = (int)((Main.worldSurface + Main.rockLayer) / 2.0) + WorldGen.genRand.Next(-200, 200);
13661366
+ if (!InWorldY(y, 0)) y = (int)((Main.worldSurface + Main.rockLayer) / 2.0);
13671367
+ WorldGen.MakeDungeon(x, y, progress);
1368-
+ }
1369-
+ if (!Main.setting.NoDungeon) {
1370-
+ WorldGen.MakeDungeon(x, y, progress);
13711368
+ }
13721369
});
13731370
WorldGen.AddGenerationPass("Corruption", delegate(GenerationProgress progress)
@@ -2444,11 +2441,12 @@
24442441
num7 *= 1f + (float)WorldGen.genRand.Next(-15, 16) * 0.01f;
24452442
int contain = 1293;
24462443
num4 = 0;
2447-
@@ -16043,13 +_,17 @@
2444+
@@ -16043,13 +_,18 @@
24482445
return false;
24492446
}
24502447

24512448
- public static void MakeDungeon(int x, int y)
2449+
+ public static void MakeDungeon(int x, int y) { } // Empty method for IL compatibility
24522450
+ public static void MakeDungeon(int x, int y, GenerationProgress progress)
24532451
{
24542452
- int num = WorldGen.genRand.Next(3);

setup/bin/setup.exe

512 Bytes
Binary file not shown.

setup/bin/setup.pdb

4 KB
Binary file not shown.

solutions/CompleteRelease.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@ECHO off
55
:: Compile/Build exe
66
echo "Building Release"
7-
set version=v0.6.2
7+
set version=v0.7
88
call buildRelease.bat
99
set exeFile=TerraCustom %version%.exe
1010
set exeFileMacLinux=TerraCustom.exe

0 commit comments

Comments
 (0)