Many stuff doesn't get scaled properly for medium size worlds (due to int instead of float)

Unftf🌴

Terrarian
Steam or GOG
Steam
Single Player/Multiplayer
Both
Operating System
Windows 10
Terraria Version
1.4.3.6
Controls Used
Keyboard/Mouse
Medium worlds have often - despite being larger the same amount or size of micro-biomes as small worlds.
E.g.
in "Living Trees" WorldGenPass: The max number of trees is:
Code:
float num577 = Main.maxTilesX / 4200;
int num578 = genRand.Next(0, (int)(2f * num577) + 1);
as maxTilesX is an integer as well a medium with 6400 tiles gets the same result as a small world with size of 4200. (num577 is 1 for both, for large worlds it's 2)
Same for the Temple size in makeTemple:
Code:
float num = Main.maxTilesX / 4200;
int num29 = genRand.Next((int)(num * 10f), (int)(num * 16f));
Or the number of "Hives", "Statues", "Water Chests", hellhouses, hardmode ores......

So medium worlds have a pretty bad loot density compared to small and large worlds.


------
(Not 100% equal but something similar applies to (hardmode) Harpies which can spawn way too deep for small worlds.)
 
Last edited:
Back
Top Bottom