Put in support for old Progressive item key

I will probably regret this.
This commit is contained in:
Fabian Dill 2021-08-09 10:05:45 +02:00
parent d3e71ecb9b
commit 50ad661796
3 changed files with 5 additions and 3 deletions

View File

@ -448,7 +448,7 @@ A Link to the Past:
enemy_damage:
default: 50 # Vanilla enemy damage
shuffled: 0 # Enemies deal 0 to 4 hearts and armor helps
random: 0 # Enemies deal 0 to 8 hearts and armor just reshuffles the damage
chaos: 0 # Enemies deal 0 to 8 hearts and armor just reshuffles the damage
enemy_health:
default: 50 # Vanilla enemy HP
easy: 0 # Enemies have reduced health

View File

@ -79,9 +79,10 @@ class Progressive(Choice):
alias_false = 0
alias_true = 2
default = 2
alias_random = 1
def want_progressives(self, random):
return random.choice([True, False]) if self.value == self.option_grouped_random else int(self.value)
return random.choice([True, False]) if self.value == self.option_grouped_random else bool(self.value)
class Palette(Choice):
option_default = 0

View File

@ -108,9 +108,10 @@ class Progressive(Choice):
alias_false = 0
alias_true = 2
default = 2
alias_random = 1
def want_progressives(self, random):
return random.choice([True, False]) if self.value == self.option_grouped_random else int(self.value)
return random.choice([True, False]) if self.value == self.option_grouped_random else bool(self.value)
class RecipeIngredients(Choice):