From fbd12fd6e2e24f680d53d13691a0dcfa2e7dcc39 Mon Sep 17 00:00:00 2001 From: Midorica Date: Mon, 6 Nov 2023 21:54:06 -0500 Subject: [PATCH] fixing get_energy for CXB --- titles/cxb/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/cxb/base.py b/titles/cxb/base.py index 3de83c7..9f74f5f 100644 --- a/titles/cxb/base.py +++ b/titles/cxb/base.py @@ -530,7 +530,6 @@ class CxbBase: profile = self.data.profile.get_profile_index(0, uid, self.version) data1 = profile["data"] p = self.data.item.get_energy(uid) - energy = p["energy"] if not p: self.data.item.put_energy(uid, 5) @@ -543,6 +542,7 @@ class CxbBase: } array = [] + energy = p["energy"] newenergy = int(energy) + 5 self.data.item.put_energy(uid, newenergy)