8 def __init__ (self,categories,pr,qr,ships,planets):
9 print "surplus %f %f" % (pr, qr)
17 def __init__ (self,categories,priceratio,quantratio,ships,planets,precondition=()):
25 quest.quest_factory.__init__ (self,
"quest_surplus")
29 if (
not quest.findQuest (playernum,blah)):
38 adj=vsrandom.uniform (-.5,.5)
40 cats =
tuple(set([VS.getRandCargo(1,
"").GetCategory(), VS.getRandCargo(1,
"").GetCategory()]))
43 news =
"SURPLUS IN %s: There are reports of surpluses of %s items in the %s system. Wise Privateers have been purchasing the surpluses in hopes of future gains elsewhere." % (sys,
" and ".
join(cats),sys)
45 news =
"DEMAND FOR %s in %s: Citizens in the %s system have been frusterated by the expensive prices and low quantities of %s goods. Privateers are currently banding together to try to bring supply to meet the demand. But while prices are still high, some big traders could certainly capitalize on this shortage." % (
" AND ".
join(cats),sys,sys,
" and ".
join(cats))