From 6b74829858f043be16ab9103710bfc3aa2cb4771 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 23 Dec 2020 22:57:35 -0300 Subject: Recalculate unit base ID as well --- ueditor.rpy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ueditor.rpy b/ueditor.rpy index a77faf5..ef4aa6a 100644 --- a/ueditor.rpy +++ b/ueditor.rpy @@ -313,6 +313,8 @@ init python: uedit["hp"]=copy.copy(HP) allunitsbase[current]["strength"]=copy.copy(STR) allunitsbase[current]["hp"]=copy.copy(HP) + # Correct unit family if needed + allunitsbase[current]["unit_base_id"]=allunitsbase[current]["unit_id"]/100 return -- cgit v1.2.3-60-g2f50