Noita: Don't allow impossible slot names (#2608)

* Noita: Add note about allowable slot names

* Update character list

* Update init to raise an exception if a yaml has bad characters

* Slightly adjust exception message
This commit is contained in:
Scipio Wright
2023-12-28 08:21:54 -05:00
committed by GitHub
parent c7617f92dd
commit 901201f675
2 changed files with 7 additions and 1 deletions

View File

@@ -35,6 +35,10 @@ class NoitaWorld(World):
web = NoitaWeb()
def generate_early(self):
if not self.multiworld.get_player_name(self.player).isascii():
raise Exception("Noita yaml's slot name has invalid character(s).")
# Returned items will be sent over to the client
def fill_slot_data(self):
return {name: getattr(self.multiworld, name)[self.player].value for name in self.option_definitions}