Эх сурвалжийг харах

Round resources to nearest integer

Frans Bergman 7 жил өмнө
parent
commit
0f894eccf9
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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."""