LttP: move some LttP specific things more towards locations where they belong.

This commit is contained in:
Fabian Dill
2021-08-10 08:00:53 +02:00
parent 4bfeb77a3a
commit 299036ecca
8 changed files with 54 additions and 75 deletions

View File

@@ -1,4 +1,5 @@
import typing
import random
from Options import Choice, Range, Option, Toggle, DefaultOnToggle
@@ -94,6 +95,7 @@ class Palette(Choice):
option_negative = 6
option_dizzy = 7
option_sick = 8
alias_random = 1
class OWPalette(Palette):
@@ -136,6 +138,11 @@ class HeartColor(Choice):
option_green = 2
option_yellow = 3
@classmethod
def from_text(cls, text: str) -> Choice:
# remove when this becomes a base Choice feature
if text == "random":
return cls(random.randint(0, 3))
class QuickSwap(DefaultOnToggle):
displayname = "L/R Quickswapping"