Okay, so I have a question that may be more complex than I think... I'm trying to change the World size labels, by replacing the old ones (not really nessesary whatsoever, I'm trying to do it out of boredom and because getting into coding seems fun) and so far I got this:
Code:
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.Map;
using Terraria.ModLoader;
namespace CustomWorldTags
{
public class CustomWorldTags : Mod
{
public int WorldSizeX;
public int WorldSizeY;
public string _worldSizeName;
public CustomWorldTags()
{
Properties = new ModProperties();
}
public void SetWorldSize(int x, int y)
{
this.WorldSizeX = x;
this.WorldSizeY = y;
if (x >= 0 && x < 4200)
{
this._worldSizeName = "Small";
return;
}
if (x >= 4200 && x < 8400)
{
this._worldSizeName = "Medium";
return;
}
if (x >= 8400 && x < 12600)
{
this._worldSizeName = "Large";
return;
}
if (x >= 12600 && x < 16800)
{
this._worldSizeName = "Huge";
return;
}
if (x >= 16800)
{
this._worldSizeName = "Colossal";
return;
}
}
}
}
On the bright side, it compiles just fine. On the bad side, it literally doesn't do anything :/ what can I do? Since there's no error log to check I can't figure out what I'm doing wrong
Again, this is just a low priority, for-fun thing I'm trying t do, so if it's too complex just tell me.