From 3fe056e4f962a015dfff2c6b176e537994617e20 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 23 Dec 2020 23:05:48 -0300 Subject: And max level. --- ueditor.rpy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ueditor.rpy b/ueditor.rpy index ef4aa6a..e66171d 100644 --- a/ueditor.rpy +++ b/ueditor.rpy @@ -96,7 +96,7 @@ screen units_editor(): $ input=Input( value=UEditorInputValue(uedit, "name", None, "str", dp=True), copypaste=True, - allow="qwertyuiopasdfghjklçzxcvbnm QWERTYUIOPASDFGHJKLÇZXCVBNM1234567890-+=!()", + allow="qwertyuiopasdfghjklçzxcvbnm QWERTYUIOPASDFGHJKLÇZXCVBNM1234567890-+=!(),.:;", length=32) button: #key_events True @@ -313,8 +313,9 @@ init python: uedit["hp"]=copy.copy(HP) allunitsbase[current]["strength"]=copy.copy(STR) allunitsbase[current]["hp"]=copy.copy(HP) - # Correct unit family if needed + # Correct unit family and max level if needed allunitsbase[current]["unit_base_id"]=allunitsbase[current]["unit_id"]/100 + allunitsbase[current]["max_level"]=10+(rar*10) return -- cgit v1.2.3-70-g09d2