| def __init__(self): | def __init__(self): | ||||
| self.loc_desc = Plot.loc1[r.randint(0, len(Plot.loc1)-1)] | self.loc_desc = Plot.loc1[r.randint(0, len(Plot.loc1)-1)] | ||||
| self.location = Plot.loc2[r.randint(0, len(Plot.loc2)-1)] | |||||
| self.locIndex = r.randint(0, len(Plot.loc2)-1) | |||||
| if self.locIndex == len(Plot.loc2) - 1: | |||||
| self.location = "battlefield on " | |||||
| self.locIndex = r.randint(0, len(Plot.loc2)-2) | |||||
| self.mainLocation = Plot.loc2[self.locIndex] | |||||
| if self.mainLocation[0].lower() in ["a","e","i","o","u"]: | |||||
| self.location += "an " | |||||
| else: | |||||
| self.location += "a " | |||||
| self.location += self.mainLocation | |||||
| else: | |||||
| self.location = Plot.loc2[self.locIndex] | |||||
| self.missIndex = r.randint(0, len(Plot.miss)-1) | self.missIndex = r.randint(0, len(Plot.miss)-1) | ||||
| self.oops = r.randint(1,12) | self.oops = r.randint(1,12) | ||||
| self.mission = "" | self.mission = "" |