The index values are not your above switch cases but special AI file locations:
[AIAgent+34h] = addr.-> AgtDp diplomatics
[AgtDp+1E0h +2*index] = last turn number to compare for this diplomatic index case
---
The min interval delay for AI demands is a sought-after 'fix'. I guess thunderchero will set this to 25-30 in his mods? (0x188CEE default 0x12 / 18 dec)
Plus we can change the AI demand calculation (use the income of the target empire as base) for a better player experience.
Albeit, for strategic/balance reasons the default might be better, since this infuences AI bidding-wars for allies?
NAME: AI Demand Calculation based on the Income of the Target Empire DESC: Vanilla default calculation is based on the income of the own i.e. demanding empire. AUTHOR: Spocks-cuddly-tribble URL: viewtopic.php?p=24148#p24148 >> 0x00011787 66 8b 56 08 8d 04 d5 00 00 00 00 << 0x00011787 8a 94 24 8c 04 00 00 6b c2 08 90 #00412387 8A9424 8C040000 MOV DL,BYTE PTR SS:[ESP+48C] #0041238E 6BC2 08 IMUL EAX,EDX,8 #00412391 90 NOP
Plus absurd/excessive AI offers fix: 0x12568 (8B 94 24 BC 04) -> 90 90 BA 40 00 (most mods have this)