e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -196,14 +196,14 @@ const HEALTH = (() => {
|
|||
if (typeof Effect === "undefined") return false;
|
||||
if ((world.effectCounts?.bubble || 0) >= (CONFIG?.bubbleLimit || 80)) return false;
|
||||
const r = Math.max(16, t.radius || 22);
|
||||
world.effects?.push(new Effect("bubble", t.x, t.y - r * 1.38, {
|
||||
world.queueEffect?.("bubble", t.x, t.y - r * 1.38, {
|
||||
vx: (Math.random() - 0.5) * 2.4,
|
||||
vy: -4.8 - Math.random() * 2.8,
|
||||
life: 2.4 + Math.random() * 0.6,
|
||||
size: 9,
|
||||
text,
|
||||
color,
|
||||
}));
|
||||
});
|
||||
world.effectCounts.bubble = (world.effectCounts.bubble || 0) + 1;
|
||||
t.nextBubbleAt = Math.max(t.nextBubbleAt || 0, (world.time || 0) + 1.55);
|
||||
t._damageBubblePriorityUntil = Math.max(Number(t._damageBubblePriorityUntil || 0), (world.time || 0) + 1.55);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue