Mercurial > sypikslang
comparison gamelib/missions.py @ 181:07e81cd0cdd6
Take over the city
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 12 May 2012 12:28:56 +0200 |
parents | 8868ac7ece8b |
children | eda2f399b90e |
comparison
equal
deleted
inserted
replaced
180:8868ac7ece8b | 181:07e81cd0cdd6 |
---|---|
454 | 454 |
455 if cat.MIND_CONTROL in categorised: | 455 if cat.MIND_CONTROL in categorised: |
456 self.succeed( | 456 self.succeed( |
457 "Propaganda and persuasion are good tools, but you'll need" | 457 "Propaganda and persuasion are good tools, but you'll need" |
458 " some force to back them up.", rep=randint(2, 4)) | 458 " some force to back them up.", rep=randint(2, 4)) |
459 | |
460 | |
461 class TakeOverTheCity(Mission): | |
462 NAME = "Take over the city" | |
463 SHORT_DESCRIPTION = "Time to grow" | |
464 LONG_DESCRIPTION = ( | |
465 "It's time to spread your wings and take your rightful place as" | |
466 " a major player. And what better way than by securing your base" | |
467 " of operations?") | |
468 | |
469 MINIMUM_REPUTATION = 100 | |
470 MINIMUM_MILESTONE = "neighbourhood" | |
471 | |
472 NO_EQUIP_FAILURE = ( | |
473 "You are thrown out of city hall for making a scene. The fools will" | |
474 " pay for this when you return with more firepower.") | |
475 GENERIC_FAILURE = ( | |
476 "Well, that didn't work. Maybe a better equipment selection is in" | |
477 " order.") | |
478 | |
479 def attempt_with(self, categorised, state): | |
480 if cat.DOOMSDAY_DEVICE in categorised: | |
481 self.data['completed'] = True | |
482 self.succeed( | |
483 "Overwhelming force! It works for governments, and it works" | |
484 " for you. The city cowers before you, and you finally" | |
485 " feel like you're getting somewhere. Soon, the world will" | |
486 " be yours.", money=randint(10000, 20000), | |
487 rep=randint(10, 20), new_milestone='city') | |
488 | |
489 if cat.AI in categorised: | |
490 self.use_equipment( | |
491 {cat.AI: categorised[cat.AI]}) | |
492 self.succeed( | |
493 "While the AI can't control the entire city, you can at" | |
494 " least ensure the budget is well spent", | |
495 money=randint(10000, 30000)) | |
496 | |
497 if cat.MIND_CONTROL in categorised: | |
498 self.use_equipment( | |
499 {cat.MIND_CONTROL: categorised[cat.MIND_CONTROL]}) | |
500 self.succeed( | |
501 "Running a city requires controlling more than just a few" | |
502 " key people. Still, making the mayor dance to your tune" | |
503 " is not without it's benefits", money=randint(3000, 7000), | |
504 rep=randint(3, 7)) | |
505 | |
506 if cat.VEHICLE in categorised: | |
507 self.fail( | |
508 "While you can muster a significant force, you don't want" | |
509 " to destroy the city in the inevitable fighting. You need" | |
510 " to ensure no-one tries to resist.") | |
511 | |
512 if cat.HAND_WEAPON in categorised: | |
513 self.fail( | |
514 "You'll need more than a handful of guns, no matter" | |
515 " how powerful, to subdue a city") | |
459 | 516 |
460 | 517 |
461 class ShowThemAll(Mission): | 518 class ShowThemAll(Mission): |
462 | 519 |
463 NAME = "And they called me mad!" | 520 NAME = "And they called me mad!" |