Commits

Alexander Schremmer  committed 7d8fc85

Fix options/automatic_money_foo.

  • Participants
  • Parent commits 49fde35

Comments (0)

Files changed (1)

File domination/gameengine.py

 TLS = local()
 
 
-def make_false():
-    return False
-
 class Condition(PristineCondition):
     def __getstate__(self):
         return True
             generator_forward(gen)
             for player in self.players:
                 player.prepare_hand(self.cards_to_draw)
+                for optionkey, optionvalue in self.player_option_defaults.items():
+                    player.options[optionkey] = optionvalue
         while True:
             yield Checkpoint(self)
             self.round += 1
         self.kicked_by = None
         self.turn_cleanups = []
         self.duration_cards = [] # duration_cards from seaside
-        self.options = defaultdict(make_false)
-        for optionkey, optionvalue in game.player_option_defaults.items():
-            self.options[optionkey] = optionvalue
+        self.options = {}
         self.activated_treasure_cards = None
 
         self.request_queue = []