From 86b612f3b5b973f1a1657101e1c11b0e123bc3f2 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sat, 12 Jun 2021 21:05:45 +0200 Subject: [PATCH] implement random-middle --- Options.py | 2 ++ playerSettings.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Options.py b/Options.py index 5150ec80..d1cd3af0 100644 --- a/Options.py +++ b/Options.py @@ -161,6 +161,8 @@ class Range(Option, int): return cls(int(round(random.triangular(cls.range_start, cls.range_end, cls.range_start), 0))) elif text == "random-high": return cls(int(round(random.triangular(cls.range_start, cls.range_end, cls.range_end), 0))) + elif text == "random-middle": + return cls(int(round(random.triangular(cls.range_start, cls.range_end), 0))) else: return cls(random.randint(cls.range_start, cls.range_end)) return cls(int(text)) diff --git a/playerSettings.yaml b/playerSettings.yaml index 7c3e4fc4..411a0055 100644 --- a/playerSettings.yaml +++ b/playerSettings.yaml @@ -238,7 +238,8 @@ crystals_needed_for_gt: # Crystals required to open GT 7: 0 random: 0 random-low: 50 # any valid number, weighted towards the lower end - random-high: 0 + random-middle: 0 # any valid number, weighted towards the central range + random-high: 0 # any valid number, weighted towards the higher end crystals_needed_for_ganon: # Crystals required to hurt Ganon 0: 0 1: 0 @@ -250,7 +251,8 @@ crystals_needed_for_ganon: # Crystals required to hurt Ganon 7: 0 random: 0 random-low: 0 - random-high: 50 # any valid number, weighted towards the higher end + random-middle: 0 + random-high: 50 mode: standard: 50 # Begin the game by rescuing Zelda from her cell and escorting her to the Sanctuary open: 50 # Begin the game from your choice of Link's House or the Sanctuary