I have some questions about the behavior in the Counter-Champion Dirty Tricks logic.
(...)
Every minute, it gains 2000 points. Every 5 minutes, it spends 6000 points to spawn a Nemesis frigate.
Here are the three primarily-important lines from the log:
(...)
numberOfChampionsInGame = 8
(...)
difficultyFactor = (standard non-linear difficulty factor for special threats) = 2.5
lowAIPFactor = (if AIP < 30, then 1, else if AIP < 50, then 0.9, and so on until 0.3 for AIP >= 150) = 1
(...)
In other words:
1) If you were playing with 1 champion instead of 8, the "bank" would accumulate enough points for 1 nemesis every 24 minutes, instead of every 3.
2) If you were playing diff 7 instead of diff 9, the interval would be 7.5 instead of 3.
3) If your AIP were >= 150, the interval would be 10 instead of 3 (reduction is 10% per 20 AIP over 10).
It's just the combination of you playing with a _ton_ of champions, on a high difficulty, while remaining very-low-AIP (thus the AI has more to respond to your champions because it doesn't see the rest of your stuff as a threat), that you're getting hammered that badly. The main thing is the champion count.
But it never buys more than one at a time, and it never buys more often than once every 5 minutes. So, it's accumulating a large buffer of points it isn't spending (20,000 points at time 1:30:00).
Yea, I should change it to spawn multiple nemesis units if it has that much backlog, I just hadn't anticipated the case; thanks for noting that.
It also overspent at time 1:00:00, going to -4000.
Yea, the overspending is intentional for when I add other cases where it can spend more (or less) than 6000 on something. The current rule is that as long as the bank is >= zero it can pick any available option regardless of cost. But naturally if that puts the bank in the negative it can't do anything at all until it's back to >= zero. So the costs function as more of a "cooldown" than a cost per se. If I had it work as a cost I'd have to build in special mechanisms to prevent it from always buying the cheap stuff and never saving for the more expensive stuff.
Is this roughly the accumulation rate you intend? 9/9, AIP 10, 8 Champions = 2,000 points = A Nemesis every 3 minutes?
That's faster than I figured it would be, but it doesn't sound out-of-the-ballpark. You're basically asking for a beating with that; I imagine you can still win but it gives you some kind of run for your money. If player experience shows that it's just overwhelmingly hard with no reasonable counter, then I can tone it down.
Finally, is this Nemesis spawn for a single AI, or for both? Right now, it looks like BOTH of the AIs are getting a new Nemesis unit every time the Counter-Champion-Dirty-Tricks triggers (effectively twice the rate the logs lists).
It only triggers for the first AI. Are you seeing solid evidence that the second AI is doing it?