From 090c5bcf00a41e632857081118abf60ef0728d5b Mon Sep 17 00:00:00 2001 From: Vale <58179315+Vale-X@users.noreply.github.com> Date: Fri, 15 Jul 2022 22:21:36 +0100 Subject: [PATCH] RoR2: FinalStageDeath (#766) Added a YAML option for 'FinalStageDeath', a toggle for 'death on the final boss stage counts as a win'. Defaults to on. Co-authored-by: Vale <58179315+DelosIX@users.noreply.github.com> --- worlds/ror2/Options.py | 5 +++++ worlds/ror2/__init__.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/worlds/ror2/Options.py b/worlds/ror2/Options.py index 4abca9a33a..0ab43443e0 100644 --- a/worlds/ror2/Options.py +++ b/worlds/ror2/Options.py @@ -36,6 +36,10 @@ class AllowLunarItems(DefaultOnToggle): class StartWithRevive(DefaultOnToggle): """Start the game with a `Dio's Best Friend` item.""" display_name = "Start with a Revive" + +class FinalStageDeath(DefaultOnToggle): + """Death on the final boss stage counts as a win.""" + display_name = "Final Stage Death is Win" class GreenScrap(Range): @@ -163,6 +167,7 @@ ror2_options: typing.Dict[str, type(Option)] = { "total_locations": TotalLocations, "total_revivals": TotalRevivals, "start_with_revive": StartWithRevive, + "final_stage_death": FinalStageDeath, "item_pickup_step": ItemPickupStep, "enable_lunar": AllowLunarItems, "item_weights": ItemWeights, diff --git a/worlds/ror2/__init__.py b/worlds/ror2/__init__.py index 6e240ee1c1..1a7060786f 100644 --- a/worlds/ror2/__init__.py +++ b/worlds/ror2/__init__.py @@ -110,7 +110,8 @@ class RiskOfRainWorld(World): "seed": "".join(self.world.slot_seeds[self.player].choice(string.digits) for i in range(16)), "totalLocations": self.world.total_locations[self.player].value, "totalRevivals": self.world.total_revivals[self.player].value, - "startWithDio": self.world.start_with_revive[self.player].value + "startWithDio": self.world.start_with_revive[self.player].value, + "FinalStageDeath": self.world.final_stage_death[self.player].value } def create_item(self, name: str) -> Item: