# HG changeset patch # User Neil Muller # Date 1336861004 -7200 # Node ID f5d9a063013b19670bd65d1b753ca3a6ad58e348 # Parent af86a207d8d22c220b29c6e0b50c11ff59f00bed Fail very long equipment lists automatically diff -r af86a207d8d2 -r f5d9a063013b gamelib/missions.py --- a/gamelib/missions.py Sun May 13 00:13:46 2012 +0200 +++ b/gamelib/missions.py Sun May 13 00:16:44 2012 +0200 @@ -145,6 +145,12 @@ if not equipment: return self.attempt_no_equipment(state) + # Fail overly complex plans automatically + if len(equipment) > 10: + self.fail( + "Your plan is much too complicated, doctor. Surely there" + " is a more elegant solution?") + # Try with some equipment. self.attempt_with(self.categorise_equipment(equipment), state)