summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ueditor.rpy5
1 files 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