changeset 194:cb57ccc8f119

Publish or perish
author Neil Muller <drnlmuller@gmail.com>
date Sat, 12 May 2012 15:42:53 +0200
parents 9e86ed5343d9
children 75989ca906cd
files gamelib/missions.py
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/missions.py	Sat May 12 15:26:09 2012 +0200
+++ b/gamelib/missions.py	Sat May 12 15:42:53 2012 +0200
@@ -901,3 +901,29 @@
                 self.succeed("Dr. X's defenses are better than you"
                     " anticipated. You'll have to return with more"
                     " firepower.", rep=-randint(3, 7))
+
+
+class Publish(Mission):
+    NAME = "Publish your results"
+    SHORT_DESCRIPTION = "The world must know of your genius"
+    LONG_DESCRIPTION = (
+        "You've seen further than others. Surely you can open their"
+        " eyes to the truth (and secure your place in history)?")
+    MINIMUM_REPUTATION = 5
+    MINIMUM_MILESTONE = 'basement'
+
+    NO_EQUIP_FAILURE = (
+        "The review board rejects your paper, clearly failing to"
+        " realise the significant of your results")
+    GENERIC_FAILURE = (
+        "You fail to persuade the review board of the need to publish"
+        " your results. Perhaps a different appraoch is required?")
+
+    def attempt_with(self, categorised, state):
+        if cat.MIND_CONTROL in categorised:
+            self.use_equipment(
+                {cat.MIND_CONTROL: categorised[cat.MIND_CONTROL]})
+            self.data['completed'] = True
+            self.succeed("With the correct persuasion, the review board"
+                    " recognises the significance of your work.",
+                    rep=randint(10, 15))