From 0fdc481082fb3649a95140c75e3425f608a82fad Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:12:35 +0200 Subject: [PATCH] Verbose af --- worlds/AutoWorld.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index 067bf30403..8b7e127cdf 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -109,7 +109,12 @@ class AutoLogicRegister(type): raise Exception(f"Name conflict on Logic Mixin {name} trying to overwrite {item_name}") assert callable(function) or "init_mixin" in dct, ( - f"{name} defined class variable {item_name} without also having init_mixin." + f"{name} defined class variable {item_name} without also having init_mixin.\n\n" + "Explanation:\n" + "Class variables that will be mutated need to be ininialized as instance variables in init_mixin.\n" + "If your LogicMixin variables aren't actually mutable / you don't intend to mutate them, " + "there is no point in using LogixMixin.\n" + "LogicMixin exists to track custom state variables that change when items are collected/removed." ) setattr(CollectionState, item_name, function)