Remove non-CP FOBs.

This commit is contained in:
Dan Albert
2021-05-20 19:01:43 -07:00
parent 0cd2c4a90c
commit 664092c023
3 changed files with 2 additions and 9 deletions

View File

@@ -8,7 +8,6 @@ DEFAULT_AVAILABLE_BUILDINGS = [
"oil",
"ware",
"farp",
"fob",
"power",
"derrick",
]
@@ -21,7 +20,6 @@ WW2_GERMANY_BUILDINGS = [
"ww2bunker",
"allycamp",
"allycamp",
"fob",
]
WW2_ALLIES_BUILDINGS = [
"fuel",
@@ -30,7 +28,6 @@ WW2_ALLIES_BUILDINGS = [
"allycamp",
"allycamp",
"allycamp",
"fob",
]
FORTIFICATION_BUILDINGS = [

View File

@@ -845,12 +845,7 @@ class FobGroundObjectGenerator(AirbaseGroundObjectGenerator):
return True
def generate_fob(self) -> None:
try:
category = self.faction.building_set[self.faction.building_set.index("fob")]
except IndexError:
logging.exception("Faction has no fob buildings defined")
return
category = "fob"
obj_name = self.control_point.name
template = random.choice(list(self.templates[category].values()))
point = self.control_point.position