diff --git a/game/scripts/doll/chibi.rpy b/game/scripts/doll/chibi.rpy index 877d1af6..b16723e8 100644 --- a/game/scripts/doll/chibi.rpy +++ b/game/scripts/doll/chibi.rpy @@ -1,3 +1,6 @@ +# will be populated by the chibi inits +define __poses = {} + init 5 python: class DollChibi(renpy.Displayable): @@ -21,7 +24,10 @@ init 5 python: if doll is None: doll = states.dolls[name] self.char = doll - self.poses = poses or {} + + __poses[name] = {} + if poses is not None: + self.poses.update(poses) # Animation self.anim_frames = None @@ -42,6 +48,11 @@ init 5 python: self.instances[name] = self + # no setter, on purpose + @property + def poses(self): + return __poses[self.name] + def register(self, pose, frames, size): self.poses[pose] = (frames, size)