A single exclamation mark (!)
The AI became incompetently bad at the game when, a couple months ago, I absentmindedly placed an exclamation mark in the wrong place when rewriting a line of code.
I've been assuming the error was in the code I added, but apparently, for some stupid reason, I swapped the order of two variables, and brought an exclamation mark along with it.
Example if (not(true1 and true2))
Became if (true2 and not(true1))
I done messed up, and I was too focused on the changes that I made to notice I made a change without knowing it.
I love programming. There's something magical in how it's a testament to our abilty to make stupid mistakes and never notice until someone points it out.
Thank god for autocorrect.
Amazing how much dedication you have for this mod, your updates are so frequent. I really like it, thank you for that!
Thank you so much! I've been programming since 5th grade, and I've never once worked on a project as frequently or for as extended a period of time as this mod.
I've always felt a certain closeness to Professor Calamitous from Jimmy Neutron. I really want to make a game, but it takes so long to get anything done that I invariably get bored move to another project.
But with modding, I already have a base to work off of and making changes is incredibly fast and easy. It lets me make what I want to make without any hassle, and then I get to see what other Civ players think of my additions.
EDIT: If the rant above didn't make it obvious, I believe I've fixed the AI Unit Building issue.
A previous change I made earlier today should mean that the AI prioritizes building units a lot more. I added it in during my experiments, but I'm not sure if I want to remove it or just edit it. Expect an update in a few minutes with a change to the code because I completely forgot about it.