11 return ship.capitalize()
29 def __init__ (self,you, numsystemsaway,jumps=(),preffaction=
''):
36 sys=VS.getSystemFile()
42 leng=Director.getSaveDataLength(VS.getCurrentPlayer(),key)
44 Director.pushSaveData(VS.getCurrentPlayer(),key,float(2))
45 if (len(self.
jumps)>0):
46 self.
obj=VS.addObjective(
"")
47 self.
com=(1.0/float(len(self.
jumps)))
48 VS.setCompleteness(self.
obj,0)
50 VS.setOwner(self.
obj,self.
you)
55 def Print(self,beginstr,midstr,endstr,fro,wait=0):
57 if (len(self.
jumps)>0):
58 VS.IOmessage(wait,fro,msgply,beginstr % (
formatSystemName(VS.getSystemFile())))
59 for i
in range(len(self.
jumps)-1):
65 cursys=VS.getSystemFile()
66 if (cursys
in self.
jumps):
67 newjumps=list(self.
jumps)
68 curind=newjumps.index(cursys)
69 if ((curind+1)<len(self.
jumps)):
75 VS.setCompleteness(self.
obj,1.0)
77 VS.setCompleteness(self.
obj,self.
com*curind)
86 print "starting briefing"
87 if (self.you.isNull()):
91 name=self.you.getName()
93 VS.IOmessage (0,
"go_to_adjacent_system",
"briefing",
"You must go to the %s system. In order to get there, you must follow this route that we have planned out for you." % self.
DestinationSystem())
97 time = VS.GetGameTime()
119 VS.IOmessage (0,
"cargo mission",
"briefing",
"You must go to the '%s' jump point" % (myname))
123 print "endinging briefing"