Commits

Anonymous committed cfdee3e

fixed give exp (only gave 1 exp, regardless of the amount specified).

Comments (0)

Files changed (2)

rpg_lib/anyrpg.py

         """Show the experience the chars get and what they do with it."""
         text = ""
         print(self.get_experience_header(chars=chars, amount=amount))
-            
-        # Info text for each char. 
-        for i in chars: 
-            result = i.incremental_upgrade(amount=1)
-            if result: 
-                text += result 
+
+        # Info text for each char.
+        for char in chars:
+            for i in range(amount): 
+                result = char.incremental_upgrade(amount=1)
+                if result: 
+                    text += result 
             
         # Dialog footer. 
         text += self.get_experience_footer(chars, amount=amount)

rpg_lib/textrpg_1d6/char.py

             - Jemor lost the battle against Haske and left the battlefield. 
             - Jemor stayed in the medics tent. 
             - Jemor stayed in the medics tent. 
-            - Jemor started into battle again. One of his wounds didn't bother him anymore. 
+            - Jemor started into battle again. One of his wounds didn\'t bother him anymore. 
             - Jemor lost the Battle against Grishkar the beheader and left the battlefield for good. 
 
 Doctests: