//Ritegiver advice
(Class=Ritegiver AND TownCulture!=Han AND TownCulture!=Nomad AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Silver)>=TradeGive(Silver,Goats))
"Although Goats are slow, it won't take much Silver to get one, and every Moon temple will accept them as a sacrifice."
RosterTrade(Silver,Goats)
#end

(Class=Ritegiver AND TownCulture!=Han AND TownCulture!=Nomad AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silver)>=TradeGive(Silver,Goats))
"Could we trade some of our Silver to get a Goat? We can sacrifice it to the goddess of the Moon."
RosterTrade(Silver,Goats)
#end

(Class=Ritegiver AND TownCulture=Roman) OR (Class=Ritegiver AND TownCulture=Kushan)
"The Moon goddess welcomes a Goat as sacrifice, and her blessings will aid with both wild animals and livestock."
#end



//Silver for Goats
(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1)
"We'll be slower if we had these Goats with us, but their milk is good and you can't eat Silver!"
Trade(Silver,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1)
"I can trade Silver for Goats here, but I doubt we'll get a good deal and the Goats will slow us down too."
Trade(Silver,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)=1)
"It won't take much Silver to get these Goats, but they should be good to take to a market town."
Trade(Silver,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silver)>TradeTake(Silver,Goats) AND TradeTake(Silver,Goats)>1)
"They want a lot more Silver here for these goats than I'd expect - shall I get them anyway?"
Trade(Silver,Goats)
#end




//Silk for Goats 
(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3)
"We can get several Goats for one Silk bolt here, but they will slow us down.."
Trade(Silk,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)>=3)
"It would be better to trade our Silk for something other than Goats, but we would get several for one bolt here."
Trade(Silk,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silk)>0 AND TradeTake(Silk,Goats)<3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Silk)>0 AND TradeTake(Silk,Goats)<3) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)<3) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Silk)>0 AND TradeTake(Silk,Goats)<3)
"Not a great place to be wasting Silk getting Goats..."
Trade(Silk,Goats)
#end


//Spices for Goats
(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3)
"I'd be sorely tempted to trade Spices for Goats here, if it wasn't going to slow us down..."
Trade(Spices,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=3)
"Spices for Goats is a very tempting trade here."
Trade(Spices,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=1)
"We can get several Goats for a single Spice jar by trading here, but that would slow us down."
Trade(Spices,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=1) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>1) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)>=1)
"I'd rather keep the Spices for other trades, but they would exchange them for Goats here if we wanted some."
Trade(Spices,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)<2) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Spices)>0 AND TradeTake(Spices,Goats)<2) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)<2) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Spices)>0 AND TradeTake(Spices,Goats)<2)
"I'd not recommend trading Spices for Goats here, but it could be done."
Trade(Spices,Goats)
#end



//Wool for Goats
(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2)
"I'd be sorely tempted to trade Wool for Goats here, if it wasn't going to slow us down..."
Trade(Wool,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)<=2)
"Wool for Goats is a very tempting trade here."
Trade(Wool,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)>=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3)
"We won't get a great deal trading Wool for Goats here, and it will slow us down."
Trade(Wool,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeGive(Wool,Goats)>=3)
"They'll take Wool for their Goats here, but I'd rather hold onto the Wool."
Trade(Wool,Goats)
#end

(Trade>=3 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeTake(Wool,Goats)<3) OR (Trade>=2 AND Animals>=2 AND Inv(Sheep,Goats,Oxen)>0 AND Inv(Wool)>0 AND TradeTake(Wool,Goats)<3) OR (Trade>=3 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeTake(Wool,Goats)<3) OR (Trade>=2 AND Animals>=2 AND Inv(Horses,Camels)<=Inv(Advisors,Guards) AND Inv(Wool)>0 AND TradeTake(Wool,Goats)<3)
"If we really needed a Goat, we could trade Wool here."
Trade(Wool,Goats)
#end



//Oxen for Goats
(Trade>=3 AND Inv(Oxen)>1 AND Carry(Oxen,Goats)) OR (Trade>=2 AND Animals>=2 AND Inv(Oxen)>1 AND Carry(Oxen,Goats))
"Shall we swap an Ox for some Goats? We don't really need the extra cart."
Trade(Oxen,Goats)
#end

(Trade>=3 AND Inv(Oxen)=1 AND Carry(Oxen,Goats)) OR (Trade>=2 AND Animals>=2 AND Inv(Oxen)=1 AND Carry(Oxen,Goats))
"Since we don't need a cart right now we could exchange our Ox for a few Goats."
Trade(Oxen,Goats)
#end



//Sheep for Goats - rarely a good deal!
(Trade>=3 AND TradeTake(Sheep,Goats)>=2) OR (Trade>=2 AND Animals>=2 AND TradeTake(Sheep,Goats)>=2)
"We can increase the size of our herd by trading Sheep for Goats here..."
Trade(Sheep,Goats)
#end



//Error: Not enough goods to trade
(Trade>=1 AND Inv(Wool)<TradeGive(Wool,Goats) AND Inv(Silver)<TradeGive(Silver,Goats) AND Inv(Spices)<TradeGive(Spices,Goats) AND Inv(Silk)<TradeGive(Silk,Goats))
"I'm embarrassed to admit that we can not afford to buy even one Goat."
#end



//Defaults
(Class=Guide) OR (Class=Drover)
"Goats feed themselves as long as there's grazing land, and we can get good milk from them most days. We should consider trading for some."
#end

(Class=Merchant) OR (Class=Soldier)
"It's hard to care about getting Goats."
#end