From e9ec437d1ced2c4bd672e2d38a9608957194f39e Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Thu, 4 Apr 2024 22:55:15 +0200 Subject: [PATCH] Eliminate more uses of eval --- game/scripts/doll/chibi.rpy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/game/scripts/doll/chibi.rpy b/game/scripts/doll/chibi.rpy index b1799010..c79838e2 100644 --- a/game/scripts/doll/chibi.rpy +++ b/game/scripts/doll/chibi.rpy @@ -18,7 +18,7 @@ init 5 python: self.zoom = zoom self.pos = (0,0) self.xzoom = 1 - self.char = eval(name) + self.char = states.dolls[name] self.poses = {} # Animation @@ -216,11 +216,9 @@ init 5 python: self.set_pose(pose or self.walk) - # Note: Warper names and their count can change over time, - # so it's easier to just evaluate the input. # List of available warpers: # https://www.renpy.org/doc/html/atl.html?#warpers - warper = eval(f"_warper.{warper}") + warper = getattr(_warper, warper) distances = [] times = []