Core, all worlds: Hard-deprecate old options API (by August 10th 2024) (#3284)

* Core: deprecate old options API

* also deprecate assigning options via option_definitions

---------

Co-authored-by: alwaysintreble <mmmcheese158@gmail.com>
This commit is contained in:
NewSoupVi
2025-04-21 00:43:31 +02:00
committed by GitHub
parent b62c1364a9
commit 1a6de25ab6
2 changed files with 4 additions and 4 deletions

View File

@@ -223,7 +223,7 @@ class MultiWorld():
AutoWorld.AutoWorldRegister.world_types[self.game[player]].options_dataclass.type_hints}
for option_key in all_keys:
option = Utils.DeprecateDict(f"Getting options from multiworld is now deprecated. "
f"Please use `self.options.{option_key}` instead.")
f"Please use `self.options.{option_key}` instead.", True)
option.update(getattr(args, option_key, {}))
setattr(self, option_key, option)