@@ -290,6 +290,9 @@ def get_disable_calculation(self):
290290# If boolean is true, result was successful and str contains result.
291291# If boolean is false, result was unsuccessful and str contains error message
292292def general_kill_handler (weapon_fuzzy_name , target_fuzzy_name ):
293+ if (result := easter_egg_check (weapon_fuzzy_name ,target_fuzzy_name )) is not None :
294+ return result
295+
293296 args = None
294297 if weapon_fuzzy_name in parse .weapons_dictionary :
295298 weapon_name = parse .weapons_dictionary [weapon_fuzzy_name ]
@@ -446,3 +449,40 @@ def statsheet_handler(entity_name):
446449 return "I could not process a request because the entity is not a valid weapon, structure or vehicle."
447450 except :
448451 return bot .EntityNotFoundError (entity_name )
452+
453+ # whimsy
454+ def easter_egg_check (weapon_fuzzy_name , target_fuzzy_name ):
455+ easter_eggs = [
456+ ("Watch Tower" , "Scout Plane" , 1 , 95 )
457+ ]
458+ for weapon , target , hits , threshold in easter_eggs :
459+ if fuzz .normalized_ratio_equal (weapon_fuzzy_name ,weapon ,threshold ) and fuzz .normalized_partial_ratio_equal (target_fuzzy_name ,target ,threshold ):
460+ return f"It takes { hits } { weapon } to kill a { target } "
461+ return None
462+
463+ # .--.
464+ # `. \
465+ # \ \
466+ # . \
467+ # : .
468+ # | .
469+ # | :
470+ # | |
471+ # ..._ ___ | |
472+ # `."".`''''""--..___ | |
473+ # ,-\ \ ""-...__ _____________/ |
474+ # / ` " ' `"""""""" .
475+ # \ L
476+ # (> \
477+ # / \
478+ # \_ ___..---. L
479+ # `--' '. \
480+ # . \_
481+ # _/`. `.._
482+ # .' -. `.
483+ # / __.-Y /''''''-...___,...--------.._ |
484+ # / _." | / ' . \ '---..._ |
485+ # / / / / _,. ' ,/ | |
486+ # \_,' _.' / /'' _,-' _| |
487+ # ' / `-----'' / |
488+ # `...-' `...-'
0 commit comments