First, this is truely divine informatio, truckingpete!
Secondly, the "999" doesn't count. It just has to be more than the AI has according to the formula:
As chiftess (the smart
) said at the beggining, the real calculation is:
AI_gpt = Deal_gpt - RoundDown(AI_gold/20)
This is because if the AI has 100 gold and is doing 10gpt, then he can actually pay 15 per turn, not 10.
10 = 15 - 100/20 ==> thus, the computer will offer 15.
The way to implement it is to to look at it this way:
take the number the "999 trick" gives you, and subtract the AI's gold/20 to reach the real gpt.
Also, when gold is low, the number should be about right!
Walla!