This commit is contained in:
33333-33333 2026-06-20 21:41:15 +09:00
commit 10fbeb2327
18 changed files with 794 additions and 16 deletions

View file

@ -17,6 +17,7 @@ const HEALTH = (() => {
explosionDisease: "\u7206\u767a\u75c5",
fightDisease: "\u304d\u305a\u3064\u304d\u75c5",
zunchiDisease: "\u305a\u3093\u3061\u75c5",
antEaten: "\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f",
});
const DISEASE_RE = /([^\u3001\u3002\s]+\u75c5)/;
@ -33,6 +34,7 @@ const HEALTH = (() => {
if (/\u7206\u767a\u75c5|explosion.*disease/.test(text)) return CAUSES.explosionDisease;
if (/\u3051\u3093\u304b\u75c5|\u304d\u305a\u3064\u304d\u75c5|fight.*disease/.test(text)) return CAUSES.fightDisease;
if (/\u305a\u3093\u3061\u75c5|zunchi_sick|zunchi.*\u75c5/.test(text)) return CAUSES.zunchiDisease;
if (/\u30a2\u30ea\u306b\u98df\u3079\u3089\u308c\u305f|eaten.*ant|ant.*eaten/.test(text)) return CAUSES.antEaten;
if (/\u75c5/.test(text)) {
const disease = text.match(DISEASE_RE);
return disease ? disease[1] : CAUSES.zunchiDisease;