• R/O
  • SSH

提交

标签

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Just a simple, and painful to use calculator for the game Factorio written in Python


Commit MetaInfo

修订版6483f0e78fbeb103a2b9b68f41ca9ad777cf6628 (tree)
时间2017-08-07 06:40:12
作者Eric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Stringifying an item just gives its name.

更改概述

差异

diff -r c208115a8fa7 -r 6483f0e78fbe factorio_calc.py
--- a/factorio_calc.py Sun Aug 06 14:39:51 2017 -0700
+++ b/factorio_calc.py Sun Aug 06 14:40:12 2017 -0700
@@ -26,6 +26,9 @@
2626 return f'ProductionItem({self._name!r}, {self._time}, ' \
2727 f'{self._ingredients!r}, produced={self._produced})'
2828
29+ def __str__(self):
30+ return self._name
31+
2932 @property
3033 def base_rate(self):
3134 if self._produced is None: