FS1 is the only one with a forced delay to get it out of the initial shop list. The upgrade does not do much until buildings take some damage.
Miriyaka, Nightmare starts with 4k and should buy 2 1500 items and 1-2 other items. Don't think FS1 should be in the initial shop.
The purchasing scheme I settled on is max item price for the first 20 seconds is 1500, unless it starts with more than 5000 (high gold or filthy rich). If it has high gold or we are outside the initial shop the AI can purchase whatever it wants. On a map like exile (artifact shop at start location) the AI will probably fill up on artifacts.
Basing it on open slots had it wasting money rather than getting the best item that could help it right now.
Nightmare on high has 30k.
With the updated global priorities I did a test on cataract and generals got 5 purchases in the 20 seconds: Bishops/high priests, godplate, vlemish, journeyman, hauberk of life.
Assassins got 5 items in 20 seconds: godplate, vlemish, journeyman, nimoth, hauberk of life. One got narmoth ring instead of vlemish (vlemish is zeroed in his build).
Based on current priorities nimoth(40)or HoL (40) will be replaced first by artificats. Then journeyman (45), then vlemish(50) or godplate (50)
Excile start:
All fathers, vlemish, 1-2 cheap items (idols, banded etc)
Should I make some rule to handle rich starts? It can afford god plate, but not all fathers.