So this is the kind of stuff modders are up against here... Look at this...
Left is original code, right is better optimized... Now I am sure some C# guru will say even mine is sloppy, but wow, this is a total clusterf*ck... They had 8 completely separate operations running as 1 long run-on "else if" operation... Just poorly executed imho.
I mean for real, even Visual Studio and dnSpy won't let me recompile some of this stuff because it detects errors and redundancies. Like you try to save your work, and it's like "no no no," because of something you didn't even touch! Then you have to find out what they screwed up and fix that, which makes you wonder how they were able to even export it in the first place without VS making them fix it!
View attachment 465779