Facepalm
I spent several precious minutes trying to figure out why "Factory.try_to_start_building" wasn't getting printed by this method.def try_to_start_building(self, cls):
"Factory.try_to_start_building" ###
missing = self.resources.use(**cls.construction_resources)
if missing:
self.missing_resources = missing
...
(log in to comment)
Comments
That's the price we pay for Python sometimes. Perfectly legal but perfectly non-sensical statements.
jerith on 2013/09/07 08:20:
At least you have a docstring. :-P