e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -108,7 +108,7 @@
|
|||
if (t.addStress) t.addStress(7, { threshold: 8, duration: 3.2 });
|
||||
}
|
||||
worldRef.spawnFallEffect?.(t.x, t.y + (t.radius || 20) * 0.45, 0.65);
|
||||
worldRef.effects?.push(new Effect("zunchi_miasma", item.x, item.y - 4, { size: 14, life: 0.38, color: "rgba(77,92,42,0.36)" }));
|
||||
worldRef.queueEffect?.("zunchi_miasma", item.x, item.y - 4, { size: 14, life: 0.38, color: "rgba(77,92,42,0.36)" });
|
||||
item.vx *= -0.18;
|
||||
item.vy *= -0.18;
|
||||
break;
|
||||
|
|
@ -139,7 +139,7 @@
|
|||
item.burning = false;
|
||||
item.burnTimer = 0;
|
||||
item.amount = 0;
|
||||
worldRef?.effects?.push(new Effect("zunchi_miasma", item.x, item.y - 4, { size: Math.max(13, (item.r || 15) * 1.25), life: 0.42, color: "rgba(64,44,34,0.44)" }));
|
||||
worldRef?.queueEffect?.("zunchi_miasma", item.x, item.y - 4, { size: Math.max(13, (item.r || 15) * 1.25), life: 0.42, color: "rgba(64,44,34,0.44)" });
|
||||
}
|
||||
worldRef?.markTerrainDirtyAt?.(item.x, item.y, Math.max(item.r || 15, 28), "zunchi-burning");
|
||||
worldRef?.markItemBucketsDirty?.("zunchi-burning");
|
||||
|
|
@ -183,7 +183,7 @@
|
|||
}
|
||||
if ((item.amount || 0) <= 0.5) {
|
||||
item.amount = 0;
|
||||
worldRef?.effects?.push(new Effect("zunchi_miasma", item.x, item.y - 4, { size: Math.max(12, (item.r || 15) * 1.15), life: 0.34, color: "rgba(64,44,34,0.34)" }));
|
||||
worldRef?.queueEffect?.("zunchi_miasma", item.x, item.y - 4, { size: Math.max(12, (item.r || 15) * 1.15), life: 0.34, color: "rgba(64,44,34,0.34)" });
|
||||
worldRef?.markTerrainDirtyAt?.(item.x, item.y, Math.max(item.r || 15, 28), "zunchi-decay-out");
|
||||
worldRef?.markItemBucketsDirty?.("zunchi-decay-out");
|
||||
worldRef?.markSpatialDirty?.("zunchi-decay-out");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue