This commit is contained in:
33333-33333 2026-07-20 14:36:59 +09:00
commit f6d7412744
94 changed files with 3836 additions and 1226 deletions

View file

@ -34,6 +34,8 @@ const HEALTH = (() => {
heatstroke: "\u71B1\u4E2D\u75C7",
cleaning: "\u6383\u9664",
electrocution: "\u611f\u96fb",
trap: "\u7f60\u306b\u6355\u307e\u3063\u305f",
poisonGas: "\u6bd2\u30ac\u30b9",
});
const DISEASE_RE = /([^\u3001\u3002\s]+\u75c5)/;
@ -41,6 +43,8 @@ const HEALTH = (() => {
const text = String(reason || "");
if (!text) return "";
if (/\u6383\u9664|\u30ed\u30dc\u6383\u9664\u6a5f|robot.?cleaner|cleaned/.test(text)) return CAUSES.cleaning;
if (/\u7f60\u306b\u6355\u307e\u3063\u305f|bear.?trap|trapped/i.test(text)) return CAUSES.trap;
if (/\u6bd2\u30ac\u30b9|poison.?gas/i.test(text)) return CAUSES.poisonGas;
if (/\u611f\u96fb|\u901a\u96fb\u4e2d\u306e\u96fb\u7dda|electrocution|electric.?shock|shocked/i.test(text)) return CAUSES.electrocution;
if (text.includes(WEAKENED_SUFFIX)) return text.replace(/\u3067\u8870\u5f31.*$/, "");
if (/\u51CD\u7D50|\u4F4E\u6E29|\u5BD2\u3055|cold|freeze|freezing/i.test(text)) return CAUSES.freeze;