diff --git a/game/scripts/doll/main.rpy b/game/scripts/doll/main.rpy index b200f6ad..1a3621be 100644 --- a/game/scripts/doll/main.rpy +++ b/game/scripts/doll/main.rpy @@ -1,3 +1,5 @@ +define renpy.store.states.dolls = {} + init python: class Doll(DollMethods): # 0 - 50 = Skin/Body Layers @@ -77,15 +79,11 @@ init python: self.build_image() - # Add doll name to global doll states store - try: - renpy.store.states.dolls.add(name) - except AttributeError: - renpy.store.states.dolls = {name} + renpy.store.states.dolls[name] = self def generate_hash(self): clothes_hash = str([x[0]._hash for x in self.states.values() if istype(x[0], (DollCloth, DollClothDynamic, DollMakeup)) and x[2]]) - salt = str( [self.name, self.pose, str(self.body._hash), str(self.face._hash), str(self.cum._hash), clothes_hash] ) + salt = str([self.name, self.pose, str(self.body._hash), str(self.face._hash), str(self.cum._hash), clothes_hash]) return hash(salt) def show(self, force=False, ignore_skipping=False):