فهرست منبع

Round resources to nearest integer

Frans Bergman 7 سال پیش
والد
کامیت
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."""
         """List available resources."""
         global player_data
         global player_data
         for resource, amount in player_data['resources'].items():
         for resource, amount in player_data['resources'].items():
-            print(resource.title() + ": " + str(amount))
+            print(resource.title() + ": " + str(int(amount)))
 
 
     def do_buildings(self, args):
     def do_buildings(self, args):
         """List the buildings of the city and their levels."""
         """List the buildings of the city and their levels."""