Parcourir la source

Round resources to nearest integer

Frans Bergman il y a 7 ans
Parent
commit
0f894eccf9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      cbc/client.py

+ 1 - 1
cbc/client.py

@@ -44,7 +44,7 @@ class MyPrompt(Cmd):
         """List available resources."""
         global player_data
         for resource, amount in player_data['resources'].items():
-            print(resource.title() + ": " + str(amount))
+            print(resource.title() + ": " + str(int(amount)))
 
     def do_buildings(self, args):
         """List the buildings of the city and their levels."""