BRCF: Small Fixes (#3314)

* Plural fix

* Update link
This commit is contained in:
Exempt-Medic
2024-05-17 13:24:32 -04:00
committed by GitHub
parent 539ee1c5da
commit b4b79bcd78
7 changed files with 13 additions and 27 deletions

View File

@@ -35,7 +35,6 @@ class BombRushCyberfunkWorld(World):
options_dataclass = BombRushCyberfunkOptions
options: BombRushCyberfunkOptions
def __init__(self, multiworld: MultiWorld, player: int):
super(BombRushCyberfunkWorld, self).__init__(multiworld, player)
self.item_classification: Dict[BRCType, ItemClassification] = {
@@ -49,14 +48,12 @@ class BombRushCyberfunkWorld(World):
BRCType.Camera: ItemClassification.progression
}
def collect(self, state: "CollectionState", item: "Item") -> bool:
change = super().collect(state, item)
if change and "REP" in item.name:
rep: int = int(item.name[0:len(item.name)-4])
state.prog_items[item.player]["rep"] += rep
return change
def remove(self, state: "CollectionState", item: "Item") -> bool:
change = super().remove(state, item)
@@ -65,11 +62,9 @@ class BombRushCyberfunkWorld(World):
state.prog_items[item.player]["rep"] -= rep
return change
def set_rules(self):
rules(self)
def get_item_classification(self, item_type: BRCType) -> ItemClassification:
classification = ItemClassification.filler
if item_type in self.item_classification.keys():
@@ -77,7 +72,6 @@ class BombRushCyberfunkWorld(World):
return classification
def create_item(self, name: str) -> "BombRushCyberfunkItem":
item_id: int = self.item_name_to_id[name]
item_type: BRCType = self.item_name_to_type[name]
@@ -85,10 +79,8 @@ class BombRushCyberfunkWorld(World):
return BombRushCyberfunkItem(name, classification, item_id, self.player)
def create_event(self, event: str) -> "BombRushCyberfunkItem":
return BombRushCyberfunkItem(event, ItemClassification.progression_skip_balancing, None, self.player)
def get_filler_item_name(self) -> str:
item = self.random.choice(item_table)
@@ -98,7 +90,6 @@ class BombRushCyberfunkWorld(World):
return item["name"]
def generate_early(self):
if self.options.starting_movestyle == StartStyle.option_skateboard:
self.item_classification[BRCType.Skateboard] = ItemClassification.filler
@@ -115,7 +106,6 @@ class BombRushCyberfunkWorld(World):
else:
self.item_classification[BRCType.BMX] = ItemClassification.progression
def create_items(self):
rep_locations: int = 87
if self.options.skip_polo_photos:
@@ -151,7 +141,6 @@ class BombRushCyberfunkWorld(World):
self.multiworld.itempool += pool
def create_regions(self):
multiworld = self.multiworld
player = self.player
@@ -211,4 +200,4 @@ class BombRushCyberfunkItem(Item):
class BombRushCyberfunkLocation(Location):
game: str = "Bomb Rush Cyberfunk"
game: str = "Bomb Rush Cyberfunk"