浏览代码

Show max resource capacity in resource list

Frans Bergman 7 年之前
父节点
当前提交
aae3bd5193
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cbc/client.py

+ 1 - 1
cbc/client.py

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