converted crazy if else spam from hell into proper switch() statements so there isn't infinite indents and you can see everything on the screen.
There are still missing entries for public void SetDefaults(int Type, bool noMatCheck = false);
If I can get the function to decompile then the game should run flawlessly, right now some items are probably going to fuck up.