From 34547cb0adb4c1447b36685fd0b1fb961475c5dd Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Thu, 4 Apr 2024 22:34:27 +0200 Subject: [PATCH] Use an instance storage dict to avoid main store pollution and evals --- game/scripts/doll/chibi.rpy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game/scripts/doll/chibi.rpy b/game/scripts/doll/chibi.rpy index d5e2bddf..885e0601 100644 --- a/game/scripts/doll/chibi.rpy +++ b/game/scripts/doll/chibi.rpy @@ -1,6 +1,9 @@ init 5 python: class DollChibi(renpy.Displayable): + # class attribute + instances = {} + def __init__(self, name, layer="screens", zorder=12, zoom=0.28, **properties): super().__init__(**properties) @@ -35,6 +38,8 @@ init 5 python: self.atl_pause = False self.atl_at_list = [] + self.instances[name] = self + def register(self, pose, frames, size): self.poses[pose] = (frames, size)