mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
update
This commit is contained in:
+9
-1
@@ -37,8 +37,16 @@ def get_num_options(num):
|
||||
|
||||
def player_died(text):
|
||||
|
||||
reg_phrases = ["You[a-zA-Z ]*die", "you[a-zA-Z ]*die"]
|
||||
|
||||
for phrase in reg_phrases:
|
||||
reg_expr = re.compile(phrase)
|
||||
matches = re.findall(reg_expr, text)
|
||||
if len(matches) > 0:
|
||||
return True
|
||||
|
||||
dead_phrases = ["you die", "You die", "you died", "you are dead", "You died", "You are dead", "You're dead",
|
||||
"you're dead", "you have died", "You have died"]
|
||||
"you're dead", "you have died", "You have died", "finish you off"]
|
||||
for phrase in dead_phrases:
|
||||
if phrase in text:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user