y
This commit is contained in:
parent
61718e2981
commit
f657b6a4a4
94 changed files with 3970 additions and 1241 deletions
|
|
@ -127,13 +127,13 @@
|
|||
if (item.stage === "fresh" && item.freshness < 0.45) { item.stage = "dry"; item.stageTimer = 0; }
|
||||
if (item.stage === "dry" && item.freshness < 0.18) { item.stage = "decomposing"; item.stageTimer = 0; item.fertility = Math.max(item.fertility || 0, 0.18); }
|
||||
if (worldRef?.effects && typeof Effect === "function" && global.deterministicChance(worldRef, "zunchi-fire-effect", dt * 1.15, item)) {
|
||||
worldRef.effects.push(new Effect("flame", item.x + deterministicRange(worldRef, "zunchi-fire-x", -5, 5, item), item.y - Math.max(4, (item.r || 14) * 0.25), {
|
||||
worldRef.spawnEffect("flame", item.x + deterministicRange(worldRef, "zunchi-fire-x", -5, 5, item), item.y - Math.max(4, (item.r || 14) * 0.25), {
|
||||
vx: deterministicRange(worldRef, "zunchi-fire-vx", -3, 3, item),
|
||||
vy: deterministicRange(worldRef, "zunchi-fire-vy", -10, -4, item),
|
||||
size: deterministicRange(worldRef, "zunchi-fire-size", 6, 12, item),
|
||||
life: deterministicRange(worldRef, "zunchi-fire-life", 0.18, 0.34, item),
|
||||
color: "rgba(236,46,24,0.72)",
|
||||
}));
|
||||
});
|
||||
}
|
||||
if (item.burnTimer <= 0.01 || (item.amount || 0) <= 0.5) {
|
||||
item.burning = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue