From e129921bc04e7b5ac30d3e73ce986a0b5c681050 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Thu, 4 Apr 2024 23:34:35 +0200 Subject: [PATCH] Take the doll parameter --- game/scripts/doll/chibi.rpy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game/scripts/doll/chibi.rpy b/game/scripts/doll/chibi.rpy index c0d5b016..35ca16dc 100644 --- a/game/scripts/doll/chibi.rpy +++ b/game/scripts/doll/chibi.rpy @@ -4,7 +4,7 @@ init 5 python: # class attribute instances = {} - def __init__(self, name, layer="screens", zorder=12, zoom=0.28, **properties): + def __init__(self, name, layer="screens", zorder=12, zoom=0.28, doll=None, **properties): super().__init__(**properties) @@ -18,7 +18,9 @@ init 5 python: self.zoom = zoom self.pos = (0,0) self.xzoom = 1 - self.char = states.dolls[name] + if doll is None: + doll = states.dolls[name] + self.char = doll self.poses = {} # Animation