diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-23 21:34:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-23 21:34:50 -0300 |
commit | db5789d98b822547cca92a55be258fd8e341fd24 (patch) | |
tree | 3b20ba3232c964ece336f9e7e8256cf1ea0e96e8 | |
parent | ee47ffc71d56c00f1cb296068deec89c86293bea (diff) | |
download | sdk-db5789d98b822547cca92a55be258fd8e341fd24.tar.gz sdk-db5789d98b822547cca92a55be258fd8e341fd24.tar.bz2 sdk-db5789d98b822547cca92a55be258fd8e341fd24.tar.xz sdk-db5789d98b822547cca92a55be258fd8e341fd24.zip |
Protection
-rw-r--r-- | ueditor.rpy | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ueditor.rpy b/ueditor.rpy index a8d580c..a77faf5 100644 --- a/ueditor.rpy +++ b/ueditor.rpy @@ -74,10 +74,6 @@ screen units_editor(): 0, 1), True) hbox: spacing 10 - #textbutton _("-") action Function(ueditor, "unit_id", -1) - #label ("%d" % uedit["unit_id"]) - #textbutton _("+") action Function(ueditor, "unit_id", 1) - #def __init__(self, variable, key1, key2, inpu="int", key3=None, key4=None): label _("ID: ") $ input=Input( value=UEditorInputValue(uedit, "unit_id", None, "int", dp=True), @@ -178,7 +174,7 @@ screen units_editor(): action input.enable add input - # TODO: Loot, waves + # TODO: Skills, portraits ########################################### null height 40 hbox: @@ -307,8 +303,8 @@ init python: # Apply rarity modified STR*=(rar+1)/2.0 HP*=(rar+1)/2.0 - STR=int(STR) - HP=int(HP) + STR=max(int(STR), 1) + HP=max(int(HP), 1) # Save data renpy.notify("%s\nHP %d->%d \n ATK %d->%d" % (uedit["name"], uedit["hp"], HP, |