This commit is contained in:
33333-33333 2026-08-08 15:31:31 +09:00
commit 28591233f3
85 changed files with 946 additions and 267 deletions

View file

@ -180,10 +180,16 @@ const HEALTH = (() => {
const MAJOR_DAMAGE_REACTIONS = Object.freeze([
{ id: "voice_major_damage_01", text: "\u3042\u3042\u3042\u3042\uff01" },
{ id: "voice_major_damage_02", text: "\u3048\u3048\u3048\u3048\uff01" },
{ id: "voice_major_damage_03", text: "\u306f\u3046\u3046\u3046\uff01" },
{ id: "voice_major_damage_04", text: "\u306f\u3046\u306f\u3046\uff01" },
{ id: "voice_major_damage_01", text: "ああああ!" },
{ id: "voice_major_damage_02", text: "ええええ!" },
{ id: "voice_major_damage_03", text: "はううう!" },
{ id: "voice_major_damage_04", text: "はうはう!" },
]);
const OCHIBI_MAJOR_DAMAGE_REACTIONS = Object.freeze([
{ id: "voice_ochibi_damage_001", text: "いちゃい!" },
{ id: "voice_ochibi_damage_002", text: "ごふっ" },
{ id: "voice_ochibi_damage_003", text: "ああああああああ" },
]);
function spawnSilentDamageBubble(t, text = "!", color = "rgba(142,58,58,0.86)") {
@ -242,7 +248,7 @@ const HEALTH = (() => {
t.lastMajorDamageAt = now;
if (now < Number(t.nextMajorDamageVoiceAt || -999)) return false;
t.nextMajorDamageVoiceAt = now + 1.0;
const list = MAJOR_DAMAGE_REACTIONS;
const list = t.isAcquiredTarinai ? OCHIBI_MAJOR_DAMAGE_REACTIONS : MAJOR_DAMAGE_REACTIONS;
const reaction = list[Math.floor(Math.random() * list.length)] || list[0];
audio.play?.(reaction.id, { category: "voice", minGap: 0.85 });
spawnSilentDamageBubble(t, reaction.text, "rgba(146,58,58,0.88)");