//
//Han: auction for Silk
//

//Drover, no local stock
(Class=Drover AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND NOT TownStock(Sheep))
"Shall we auction Sheep for Silk bolts...?"
Auction(Sheep,Silk,1.0)
#end

(Class=Drover AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND NOT TownStock(Goats))
"Do you want to auction away some Goats for Silk?"
Auction(Goats,Silk,1.0)
#end

(Class=Drover AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silk) AND NOT TownStock(Camels))
"We are not short of mounts - should we auction a Camel for Silk?"
Auction(Camels,Silk,1.0)
#end

(Class=Drover AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silk) AND NOT TownStock(Horses))
"We have plenty of pack animals - we should auction away a Horse for Silk while we can."
Auction(Horses,Silk,1.0)
#end

(Class=Drover AND TownCulture=Han AND Inv(Oxen)>=TradeGive(Oxen,Silk) AND Carry(Oxen,Silk) AND NOT TownStock(Oxen))
"Should I auction Oxen for Silk here?"
Auction(Oxen,Silk,1.0)
#end



//Drover, local stock
(Class=Drover AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND TownStock(Sheep))
"We can auction our Sheep for Silk bolts here, but I doubt we'll get a good deal."
Auction(Sheep,Silk,0.75)
#end

(Class=Drover AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND TownStock(Goats))
"Goats are cheap here, but we could still auction them if you like."
Auction(Goats,Silk,0.75)
#end

(Class=Drover AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silk) AND TownStock(Camels))
"Do you want to auction our spare Camels? They have plenty of them here, so I doubt we would get a good price..."
Auction(Camels,Silk,0.6)
#end

(Class=Drover AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silk) AND TownStock(Horses))
"We have spare Horses we could auction, but this might not be the best place to do it."
Auction(Horses,Silk,0.6)
#end

(Class=Drover AND TownCulture=Han AND Inv(Oxen)>=TradeGive(Oxen,Silk) AND Inv(Oxen)>0 Carry(Oxen,Silk) AND TownStock(Oxen))
"This isn't a great place to auction Oxen for Silk."
Auction(Oxen,Silk,0.7)
#end



//Han Large Army Auctions, no local stock
(Class=Soldier AND TownCulture=Han AND Inv(Camels)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND NOT TownStock(Camels))
"Let us auction Camels for Silk here, so we can trade it for Silver when we travel west."
RosterAuction(Camels,Silk,1.0)
#end


//Han Large Army Auctions, local stock
(Class=Soldier AND TownCulture=Han AND Inv(Camels)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND TownStock(Camels))
"I'm uncertain about the amount of Silk we can get here for our Camels, but when we carry the Silk west we can certainly use it to get plenty of Silver."
RosterAuction(Camels,Silk,0.7)
#end



//Trade 2, Animals 2, no local stock
(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND NOT TownStock(Goats))
"Getting Silk for Goats is surely something we desire."
Auction(Goats,Silk,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND NOT TownStock(Sheep))
"Auctioning Sheep for Silk is surely worthwhile."
Auction(Sheep,Silk,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silk) AND NOT TownStock(Horses))
"While we have more pack animals than we need to carry everyone, perhaps we should auction a Horse for Silk..."
Auction(Horses,Silk,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silk) AND NOT TownStock(Camels))
"We do not need all the Camels we have, so perhaps we should auction one for Silk."
Auction(Camels,Silk,1.0)
#end



//Trade 2, Animals 2, local stock
(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND TownStock(Goats))
"This doesn't seem like a good place to auction Goats, but they will buy them from us if we wish to sell."
Auction(Goats,Silk,0.75)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND TownStock(Sheep))
"There are too many Sheep here to make it worth auctioning our own, but if we want their Silk we could still do it."
Auction(Sheep,Silk,0.75)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silk) AND TownStock(Horses))
"We have surplus mounts, but I'm not sure we should auction Horses in this place..."
Auction(Horses,Silk,0.6)
#end

(Trade>=2 AND Animals>=2 AND TownCulture=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silk) AND TownStock(Camels))
"We do have spare Camels, but this place is not short of Camels. I doubt auctioning them here is wise."
Auction(Camels,Silk,0.6)
#end



//Other Classes ditch Oxen, local stock
(Class=Guide AND TownCulture=Han AND Inv(Oxen)=1 AND Carry(Oxen,Silk) AND TownStock(Oxen))
"We don't need our Ox right now and we could exchange the beast for Silk - we'd have greater freedom in the wilds."
RosterAuction(Oxen,Silk,0.7)
#end

(Class=Soldier AND TownCulture=Han AND Inv(Oxen,Sheep,Goats)=1 AND Inv(Horses,Camels)>0 AND Inv(Oxen)=1 AND Carry(Oxen,Silk) AND TownStock(Oxen))
"Get rid of that Ox - I don't care if you auction it for Silk here or sacrifice it to some god, but let's travel faster and defend ourselves better."
RosterAuction(Oxen,Silk,0.7)
#end

(Class=Guide AND TownCulture=Han AND Inv(Oxen)>1 AND Carry(Oxen,Silk) AND TownStock(Oxen))
"This may not be a popular suggestion, but why not trade an Ox for some Silk here?"
RosterAuction(Oxen,Silk,0.7)
#end



//Other Classes ditch Oxen, no local stock
(Class=Guide AND TownCulture=Han AND Inv(Oxen)=1 AND Carry(Oxen,Silk) AND NOT TownStock(Oxen))
"Could we auction away our Ox here for Silk? Even if the price is not good, it would make my task much easier when we are out in the wilderness."
RosterAuction(Oxen,Silk,1.0)
#end

(Class=Soldier AND TownCulture=Han AND Inv(Oxen,Sheep,Goats)=1 AND Inv(Horses,Camels)>0 AND Inv(Oxen)=1 AND Carry(Oxen,Silk) AND NOT TownStock(Oxen))
"I don't care how little Silk we get for it, let us auction away that Ox and outrun our enemies in the wilds."
RosterAuction(Oxen,Silk,1.0)
#end

(Class=Guide AND TownCulture=Han AND Inv(Oxen)>1 AND Carry(Oxen,Silk) AND NOT TownStock(Oxen))
"Even if we don't get much Silk for them, I'd still prefer to have fewer Oxen carts out on the trail."
RosterAuction(Oxen,Silk,1.0)
#end


//Out of Provisions: sell a Horse or Camel, no local stock
(TownCulture=Han AND Class!=Soldier AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Horses)>0 AND NOT TownStock(Horses) AND Carry(Horses,Silk) AND NOT DestinyWar) OR (TownCulture=Han AND Class!=Soldier AND Inv(Provisions,Wool,Spices,Silk)=0 AND Inv(Horses)>0 AND NOT TownStock(Horses) AND Carry(Horses,Silk) AND DestinyWar)
"We desperately need to buy supplies - we may have to consider auctioning a Horse for Silk, and using some of what we get to buy Provisions."
RosterAuction(Horses,Silk,1.0)
#end

(TownCulture=Han AND Class!=Merchant AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Camels)>0 AND NOT TownStock(Camels) AND Carry(Camels,Silk) AND NOT DestinyWar) OR (TownCulture=Han AND Class!=Merchant AND Inv(Provisions,Wool,Spices,Silk)=0 AND Inv(Camels)>0 AND NOT TownStock(Camels) AND Carry(Camels,Silk) AND DestinyWar)
"We are in dire need of Provisions... should we auction a Camel to get some Silk to buy food with?"
RosterAuction(Camels,Silk,1.0)
#end


//Out of Provisions: sell a Horse or Camel, local stock
(TownCulture=Han AND Class!=Soldier AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Horses)>0 AND TownStock(Horses) AND Carry(Horses,Silk) AND NOT DestinyWar) OR (TownCulture=Han AND Class!=Soldier AND Inv(Provisions,Wool,Spices,Silk)=0 AND Inv(Horses)>0 AND TownStock(Horses) AND Carry(Horses,Silk) AND DestinyWar)
"We may have to auction a Horse here if we are going to restock our supplies..."
RosterAuction(Horses,Silk,0.6)
#end

(TownCulture=Han AND Class!=Merchant AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Camels)>0 AND TownStock(Camels) AND Carry(Camels,Silk) AND NOT DestinyWar) OR (TownCulture=Han AND Class!=Merchant AND Inv(Provisions,Wool,Spices,Silk)=0 AND Inv(Camels)>0 AND TownStock(Camels) AND Carry(Camels,Silk) AND DestinyWar)
"We need trade goods if we are to resupply... we may have to part with a Camel."
RosterAuction(Camels,Silk,0.6)
#end



//Ritegiver advice, no local stock
(Class=Ritegiver AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND NOT TownStock(Sheep))
"We are a long way from any temple where we can sacrifice Sheep - perhaps we should auction some here?"
RosterAuction(Sheep,Silk,1.0)
#end

(Class=Ritegiver AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND NOT TownStock(Goats))
"The nearest Moon temple is many leagues west of here... we could auction away our Goats."
RosterAuction(Goats,Silk,1.0)
#end



//Ritegiver advice, local stock
(Class=Ritegiver AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND Carry(Sheep,Silk) AND TownStock(Sheep))
"Perhaps we should auction our sheep here... we are a long way from any temple where we can sacrifice them."
RosterAuction(Sheep,Silk,0.7)
#end

(Class=Ritegiver AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND Carry(Goats,Silk) AND TownStock(Goats))
"We should consider auctioning our Goats, since the nearest Moon temple is far to the west..."
RosterAuction(Goats,Silk,0.7)
#end



//Han Errors
(Trade>=1 AND TownCulture=Han AND Inv(Sheep)>=TradeGive(Sheep,Silk) AND NOT Carry(Sheep,Silk))
"Tempting to auction Sheep for Silk here, but we'd need more pack animals to carry the Silk bolts."
#end

(Trade>=1 AND TownCulture=Han AND Inv(Goats)>=TradeGive(Goats,Silk) AND NOT Carry(Goats,Silk))
"Tempting to auction Sheep for Silk here, but we'd need more pack animals to carry the Silk bolts."
#end

(Trade>=1 AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND TownCulture=Han AND NOT Carry(Horses,Silk))
"I would suggest trading a spare Horse for some Silk, but we could not carry the bolts we would get."
#end

(Class=Soldier AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND TownCulture=Han AND NOT Carry(Camels,Silk))
"I would gladly ditch one of our Camels but we could not carry all the Silk bolts we would get for one."
#end

(Class=Guide AND TownCulture=Han AND Inv(Oxen)=1 AND NOT Carry(Oxen,Silk)) OR (Class=Soldier AND TownCulture=Han AND Inv(Oxen,Sheep,Goats)=1 AND Inv(Oxen)=1 AND NOT Carry(Oxen,Silk))
"If only we could carry the Silk, I'd say we should auction off our Ox here."
#end

(Class=Guide AND TownCulture=Han AND Inv(Oxen)>1 AND NOT Carry(Oxen,Silk))
"I would suggest trading an Ox for some Silk, but we couldn't carry the bolts we'd get at auction."
#end

//Han defaults for Horses and Camels
(Inv(Camels)>0 AND TownCulture=Han AND NOT Carry(Camels,Silk))
"We cannot auction Camels right now - we could not carry the Silk we would get for them!"
#end

(Inv(Horses)>0 AND TownCulture=Han AND NOT Carry(Horses,Silk))
"We cannot auction Horses, we won't be able carry the Silk we would get..."
#end


//
//All other cultures auction for Silver
//

//Drover, no local stock
(Class=Drover AND TownCulture!=Han AND Inv(Sheep)>0 AND TradeTake(Sheep,Silver)>=2 AND Carry(Sheep,Silver) AND NOT TownStock(Sheep))
"At auction, we should get more than one Silver ingot for a Sheep here - I would be very happy with that."
Auction(Sheep,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Goats)>0 AND TradeGive(Goats,Silver)=1 AND Carry(Goats,Silver) AND NOT TownStock(Goats))
"A single Goat should auction for at least a Silver ingot here, which is more than we can expect in some places..."
Auction(Goats,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Goats)>0 AND Carry(Goats,Silver) AND NOT TownStock(Goats))
"They will give us Silver for our Goats here."
Auction(Goats,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Sheep)>0 AND Carry(Sheep,Silver) AND NOT TownStock(Sheep))
"We can auction our Sheep here for Silver."
Auction(Sheep,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silver) AND NOT TownStock(Camels))
"We have spare Camels, if we want to auction them for Silver."
Auction(Camels,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silver) AND NOT TownStock(Horses))
"We have more than enough mounts, may I auction away a Horse?"
Auction(Horses,Silver,1.0)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Oxen)>=TradeGive(Oxen,Silver) AND Carry(Oxen,Silver) AND NOT TownStock(Oxen))
"Should I auction Oxen for Silver here? We should get a reasonable amount."
Auction(Oxen,Silver,1.0)
#end



//Drover, local stock
(Class=Drover AND TownCulture!=Han AND Inv(Goats)>0 AND Carry(Goats,Silver) AND TownStock(Goats))
"We will get Silver for our Goats here, but there are better places to auction them."
Auction(Goats,Silver,0.75)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Sheep)>0 AND Carry(Sheep,Silver) AND TownStock(Sheep))
"I'm not keen to auction our Sheep for Silver here, but they will gladly buy them from us."
Auction(Sheep,Silver,0.75)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silver) AND TownStock(Camels))
"Camels are plentiful here, so we would have to really need the Silver to want to auction them here."
Auction(Camels,Silver,0.6)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silver) AND TownStock(Horses))
"They have many Horses here, so we might wish to travel elsewhere to auction our Horses for Silver."
Auction(Horses,Silver,0.6)
#end

(Class=Drover AND TownCulture!=Han AND Inv(Oxen)>=TradeGive(Oxen,Silver) AND Carry(Oxen,Silver) AND TownStock(Oxen))
"This isn't a great place to be auctioning Oxen for Silver, to be honest, but we can do it if you wish."
Auction(Oxen,Silver,0.7)
#end



//Large Army Auctions, no local stock
(Class=Soldier AND TownCulture!=Han AND Inv(Camels)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND NOT TownStock(Camels))
"If we are committed to infantry, we could auction Camels for Silver, which we need for hiring more troops."
RosterAuction(Camels,Silver,1.0)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Horses)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND NOT TownStock(Horses))
"We are committed to infantry now, so we could spare some Horses to raise Silver for hiring..."
RosterAuction(Horses,Silver,1.0)
#end


//Large Army Auctions, local stock
(Class=Soldier AND TownCulture!=Han AND Inv(Camels)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND TownStock(Camels))
"We might consider auctioning our Camels just to get more Silver for hiring..."
RosterAuction(Camels,Silver,0.7)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Horses)>0 AND Inv(Horses,Camels,Guards)>100 AND Inv(Horses,Camels)<Inv(Guards,Advisors) AND TownStock(Horses))
"If we are forced to march, we might wish to auction Horses for Silver, to we can keep hiring Troops."
RosterAuction(Horses,Silver,0.7)
#end



//Trade 2, Animals 2, no local stock
(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Sheep)>0 AND Carry(Sheep,Silver) AND NOT TownStock(Sheep))
"We can auction Sheep here for Silver."
Auction(Sheep,Silver,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Goats)>0 AND Carry(Goats,Silver) AND NOT TownStock(Goats))
"Do you want to auction away some Goats for Silver...?"
Auction(Goats,Silver,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silver) AND NOT TownStock(Horses))
"Our caravan is not short of pack animals right now - why not auction a Horse for some Silver?"
Auction(Horses,Silver,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Oxen)>=TradeGive(Oxen,Silver) AND Carry(Oxen,Silver) AND NOT TownStock(Oxen))
"Shall I auction Oxen for Silver here...?"
Auction(Oxen,Silver,1.0)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silver) AND NOT TownStock(Camels))
"We have plenty of mounts, and this might not be a bad place to auction Camels for Silver."
Auction(Camels,Silver,1.0)
#end



//Trade 2, Animals 2, local stock
(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Sheep)>0 AND Carry(Sheep,Silver) AND TownStock(Sheep))
"If we're not too worried about the price, we could auction our Sheep here for Silver."
Auction(Sheep,Silver,0.75)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Goats)>0 AND Carry(Goats,Silver) AND TownStock(Goats))
"They have plenty of Goats here, but they will still offer Silver for ours at auction."
Auction(Goats,Silver,0.75)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND Carry(Horses,Silver) AND TownStock(Horses))
"There may be better places to do it, but we can auction Horses for Silver here."
Auction(Horses,Silver,0.6)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Oxen)>=TradeGive(Oxen,Silver) AND Carry(Oxen,Silver) AND TownStock(Oxen))
"This isn't the ideal place to auction Oxen for Silver, but we could still do it."
Auction(Oxen,Silver,0.7)
#end

(Trade>=2 AND Animals>=2 AND TownCulture!=Han AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND Carry(Camels,Silver) AND TownStock(Camels))
"I doubt we'd be happy with the Silver we got if we auctioned our Camels here."
Auction(Camels,Silver,0.6)
#end



//Other Classes, no local stock
(Class=Soldier AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND TownCulture!=Han AND Carry(Camels,Silver) AND NOT TownStock(Camels))
"Silver is vastly more useful than a Camel - let us auction away one of those foul beasts while we can."
RosterAuction(Camels,Silver,1.0)
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)=1 AND Carry(Oxen,Silver) AND NOT TownStock(Oxen))
"Our cart really limits how we travel... would you consider auctioning away our Ox for Silver?"
RosterAuction(Oxen,Silver,1.0)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Oxen)=1 AND Inv(Oxen,Sheep,Goats)=1 AND Carry(Oxen,Silver) AND NOT TownStock(Oxen))
"Must we be saddled by a cart? Auction the Ox for Silver and we shall travel faster and fight harder."
RosterAuction(Oxen,Silver,1.0)
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)>1 AND Carry(Oxen,Silver) AND NOT TownStock(Oxen))
"Could we auction an Ox for some Silver, please? A good path is easier to find the fewer carts we have to escort."
RosterAuction(Oxen,Silver,1.0)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Sheep)>=TradeGive(Sheep,Silver) AND Carry(Sheep,Silver) AND NOT TownStock(Sheep))
"Let's get rid of the Sheep... I did not join this Caravan to be a shepherd."
RosterAuction(Sheep,Silver,1.0)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Goats)>=TradeGive(Goats,Silver) AND Carry(Goats,Silver) AND NOT TownStock(Goats))
"Why do we need goats? Let's auction the ugly creatures and get some Silver."
RosterAuction(Goats,Silver,1.0)
#end



//Other Classes, local stock
(Class=Soldier AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND TownCulture!=Han AND Carry(Camels,Silver) AND TownStock(Camels))
"Why do we waste our time with disgusting Camels - auction them for Silver here, even if the price is not good."
RosterAuction(Camels,Silver,0.6)
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)=1 AND Carry(Oxen,Silver) AND TownStock(Oxen))
"I know we won't get a great amount of Silver for our Ox here, but that cart is a constant thorn in my side..."
RosterAuction(Oxen,Silver,0.7)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Oxen)=1 AND Inv(Oxen,Sheep,Goats)=1 AND Inv(Horses,Camels)>0 AND Carry(Oxen,Silver) AND TownStock(Oxen))
"Whatever Silver we would get for our Ox here, we would certainly be easier to defend - and faster - without it."
RosterAuction(Oxen,Silver,0.7)
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)>1 AND Carry(Oxen,Silver) AND TownStock(Oxen))
"I suppose we might not get as much Silver here for Oxen as elsewhere, but I would truly appreciate having fewer carts in our caravan."
RosterAuction(Oxen,Silver,0.7)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Sheep)>=TradeGive(Sheep,Silver) AND Carry(Sheep,Silver) AND TownStock(Sheep))
"Who cares how much Silver we get for them? Dispose of the Sheep."
RosterAuction(Sheep,Silver,0.75)
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Goats)>=TradeGive(Goats,Silver) AND Carry(Goats,Silver) AND TownStock(Goats))
"Auction the Goats... no matter how much Silver we get, it will be better than having Goats."
RosterAuction(Goats,Silver,0.75)
#end


//Out of Provisions: sell a Horse or Camel, no local stock
(TownCulture!=Han AND Class!=Soldier AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Horses)>0 AND NOT TownStock(Horses) AND Carry(Horses,Silver) AND NOT DestinyWar) OR (TownCulture!=Han AND Class!=Soldier AND Inv(Provisions,Wool,Spices,Silver)=0 AND Inv(Horses)>0 AND NOT TownStock(Horses) AND Carry(Horses,Silver) AND DestinyWar)
"Should we consider selling a Horse to get Silver...? We really need to get more Provisions."
RosterAuction(Horses,Silver,1.0)
#end

(TownCulture!=Han AND Class!=Merchant AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Camels)>0 AND NOT TownStock(Camels) AND Carry(Camels,Silver) AND NOT DestinyWar) OR (TownCulture!=Han AND Class!=Merchant AND Inv(Provisions,Wool,Spices,Silver)=0 AND Inv(Camels)>0 AND NOT TownStock(Camels) AND Carry(Camels,Silver) AND DestinyWar)
"We might have to consider auctioning a Camel for Silver here... we need supplies urgently."
RosterAuction(Camels,Silver,1.0)
#end


//Out of Provisions: sell a Horse or Camel, local stock
(TownCulture!=Han AND Class!=Soldier AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Horses)>0 AND TownStock(Horses) AND Carry(Horses,Silver) AND NOT DestinyWar) OR (TownCulture!=Han AND Class!=Soldier AND Inv(Provisions,Wool,Spices,Silver)=0 AND Inv(Horses)>0 AND TownStock(Horses) AND Carry(Horses,Silver) AND DestinyWar)
"We need Provisions, and are low on trade goods - should we sell one of our Horses?"
RosterAuction(Horses,Silver,0.7)
#end

(TownCulture!=Han AND Class!=Merchant AND Inv(Provisions,Wool,Silver,Spices,Silk)=0 AND Inv(Camels)>0 AND TownStock(Camels) AND Carry(Camels,Silver) AND NOT DestinyWar) OR (TownCulture!=Han AND Class!=Merchant AND Inv(Provisions,Wool,Spices,Silver)=0 AND Inv(Camels)>0 AND TownStock(Camels) AND Carry(Camels,Silver) AND DestinyWar)
"Auctioning a Camel for Silver would help with our shortage of trade goods... and we need Provisions desperately."
RosterAuction(Camels,Silver,0.7)
#end



//Ritegiver advice
(Class=Ritegiver AND TownCulture!=Han AND Inv(Oxen,Sheep,Goats)>0 AND TownRep<100)
"Do not dismiss the less valuable livestock too quickly. We need good sacrifices if we are to appease the gods - and befriend the people in these parts."
#end



//Errors
(Trade>1 AND TownCulture!=Han AND TradeTake(Goats,Silver)>=1 AND NOT Carry(Goats,Silver))
"We might get a good price in Silver for Goats here, but our pack animals are fully loaded."
#end

(Trade>1 AND TownCulture!=Han AND TradeTake(Goats,Silver)>=1 AND NOT Carry(Goats,Silver))
"We might get a good price in Silver for Goats here, but our pack animals are fully loaded."
#end

(Trade>=1 AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Horses)>0 AND TownCulture!=Han AND NOT Carry(Horses,Silver))
"If only we could carry the Silver, I'd suggest auctioning off one of our Horses..."
#end

(Class=Soldier AND Inv(Camels,Horses)>Inv(Advisors,Guards) AND Inv(Camels)>0 AND TownCulture!=Han AND NOT Carry(Camels,Silver))
"If only we could carry the Silver, I would suggest putting a Camel up for auction."
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)=1 AND NOT Carry(Oxen,Silver)) OR (Class=Soldier AND TownCulture!=Han AND Inv(Oxen,Sheep,Goats)=1 AND NOT Carry(Oxen,Silver))
"We'd be wise to auction off our Ox, but then we could not carry the Silver we'd get..."
#end

(Class=Guide AND TownCulture!=Han AND Inv(Oxen)>1 AND NOT Carry(Oxen,Silver))
"I'd gladly reduce the number of carts we had by auctioning an Ox, but we could not then transport the Silver we'd receive."
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Sheep)>=TradeGive(Sheep,Silver) AND NOT Carry(Sheep,Silver))
"If our pack animals were not fully loaded, I would gladly get some Silver for a Sheep here..."
#end

(Class=Soldier AND TownCulture!=Han AND Inv(Goats)>=TradeGive(Goats,Silver) AND NOT Carry(Goats,Silver))
"I'd much rather have Silver than Goats, but our pack animals can carry nothing more."
#end

//Non-Han defaults for Horses and Camels
(Inv(Camels)>0 AND TownCulture!=Han AND NOT Carry(Camels,Silver))
"The Silver we would get for auctioing Camels would be too heavy for us to carry..."
#end

(Inv(Horses)>0 AND TownCulture!=Han AND NOT Carry(Horses,Silver))
"If we auctioned Horses for Silver here, we could not carry the Silver!"
#end



//
//Defaults
//

//No Drover
(ClassCount(Drover)=0)
"Without a Drover to assist us, we risk getting bad deals in an auction."
#end

(ClassCount(Drover)=0)
"We should not be trying to auction livestock without a Drover in the caravan."
#end



//Defaults
(Class=Drover AND Inv(Sheep,Goats,Oxen)=0 AND Inv(Horses,Camels)<=Inv(Advisors,Guards))
"We have no spare livestock to auction off right now."
#end

(Class=Soldier AND Inv(Camels)>0 AND Inv(Horses)<=Inv(Advisors,Guards))
"First, buy some fine Horses, then we can auction off our temperamental Camels."
#end

(Class=Merchant AND Inv(Horses)>0 AND Inv(Camels)<=Inv(Advisors,Guards))
"If we get some more Camels, we can auction off our excess Horses here."
#end




//Han Default
(TownCulture=Han)
"Livestock can be auctioned for Silk here, when we are ready."
#end

//Non-Han Default
(TownCulture!=Han)
"Many animals are brought here to be auctioned for Silver... we can auction our own livestock here when we need to."
#end