else:
return False
+ def export(self):
+ raise NotImplementedError("TODO")
+
class DoNothing(LocationAction):
TEXT = "No effect."
def perform_action(self, board, location):
pass
+ def export(self):
+ return {'required_bits': list(self.required_bits),
+ 'action_class': 'DoNothing'}
+
class LoseHeathOrMSB(LocationAction):
TEXT = "Lose health. If MSB is set, it will be cleared instead."