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>
This commit is contained in:
parent
82850d7f66
commit
090c5bcf00
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue