2828 ]
2929DEFEAT_SUFFIX = [
3030 " says: `I'll be back!`" ,
31- " cries: ' lucky shot!'" ,
31+ " cries: ... 'a lucky shot!'" ,
3232 " sighs bitterly." ,
3333 " dies." ,
3434 " is rescued." ,
3838 " is eliminated." ,
3939 " was aborted. Few lives, matter?" ,
4040 " ejects." ,
41- " was confused." ,
4241 " crew is rescued." ,
4342 " crew is spaced." ,
4443 " crew is recycled." ,
4544 " crew is recovered." ,
45+ " yells: 'Thy mother mates poorly!'" ,
4646 " snarls: 'Lucky shot.'" ,
4747 " laughs: 'You'll not do THAT again!'" ,
4848 " says nothing." ,
49- " screams: 'Thy father was a Targ!'" ,
50- " yells: 'Thy mother is progressive!'" ,
49+ " screams: 'Thy father is a Targ!'" ,
50+ " yells: 'Your parents eat bats!'" ,
51+ " snarls: 'Thy people eat vermin!'" ,
52+ " yells: 'May you create social disease!'" ,
53+ " curses: 'Thy fathers spreadeth pox!'" ,
54+ " yells: 'Your mother is progressive!'" ,
5155 ]
5256MISTAKES = [
5357 "... the crew was not impressed ..." ,
5458 "... that's going to leave a mark ..." ,
5559 "... next time, remember to 'carry the 1'? ..." ,
5660 "... math lives matter ..." ,
5761 "... that's coming out of your paycheck ..." ,
58- "... this is not a bumpy car ..." ,
62+ "... this is not a bumper car ..." ,
5963 "... life can be tough, that way ..." ,
6064 "... who ordered THAT take-out ..." ,
6165 "... random is, what random does ..." ,
6266 "... you've got their attention ..." ,
67+ "... next time, just text them ..." ,
6368 "... how rude!" ,
6469 "... yes, karma CAN hurt ..." ,
6570 "... life is but a dream!" ,
6671 "... game over." ,
67- "... they will talk about this for years." ,
68- "... who is going to pay for that ?" ,
72+ "... they will talk about this one for years." ,
73+ "... who is going to pay for this ?" ,
6974 "... galactic insurance premiums skyrocket ..." ,
7075 "... captain goes down with the starship ..." ,
7176 "... we'll notify your next-of-kin." ,
@@ -83,15 +88,15 @@ def jibe(noun, prefix, suffix):
8388
8489 @staticmethod
8590 def jibe_damage (noun ):
86- if random .randint (0 , 100 ) > 25 :
91+ if random .randrange (0 , 100 ) > 25 :
8792 return f"{ noun .capitalize ()} damaged. Repairs are underway."
88- return Quips .jibe (noun . lower () , DAMAGE_PREFIX , DAMAGE_SUFFIX )
93+ return Quips .jibe (noun , DAMAGE_PREFIX , DAMAGE_SUFFIX )
8994
9095 @staticmethod
9196 def jibe_defeat (noun ):
92- if random .randint (0 , 100 ) > 25 :
97+ if random .randrange (0 , 100 ) > 25 :
9398 return f"Another { noun .lower ()} defeated."
94- return Quips .jibe (noun . lower () , DEFEAT_PREFIX , DEFEAT_SUFFIX )
99+ return Quips .jibe (noun , DEFEAT_PREFIX , DEFEAT_SUFFIX )
95100
96101 @staticmethod
97102 def jibe_fatal_mistake ():
0 commit comments