duu
This commit is contained in:
parent
88f618cadf
commit
8f9f5b5100
108 changed files with 2139 additions and 1500 deletions
|
|
@ -35,8 +35,18 @@
|
|||
if (fireCount > 36) return mobile ? 0.42 : 0.25;
|
||||
return mobile ? 0.30 : 0.18;
|
||||
}
|
||||
if (item.type === "nest_box" && global.TarinaiItemDynamicToolSystem?.nestBoxFireActive?.(item)) return mobile ? 0.30 : 0.18;
|
||||
if ((item.dropTimer || 0) > 0 || Math.hypot(item.vx || 0, item.vy || 0) > 0.08) return 0;
|
||||
if (item.type === "zunchi") return 2.4;
|
||||
if (item.type === "zunchi" && (item.burning || (item.burnTimer || 0) > 0.02)) return mobile ? 0.30 : 0.18;
|
||||
if (item.type === "zunchi") {
|
||||
const groundId = item.world?.groundType || (typeof world !== "undefined" ? world?.groundType : "") || "soil";
|
||||
const decayMul = Number(global.TarinaiGround?.zunchiDecayMultiplier?.(groundId) || 1) || 1;
|
||||
// High-decay grounds need a shorter update cadence; otherwise the amount
|
||||
// changes only once every few seconds and the laboratory effect looks idle.
|
||||
if (decayMul >= 100) return mobile ? 0.18 : 0.12;
|
||||
if (decayMul > 1.01) return mobile ? 0.42 : 0.28;
|
||||
return 2.4;
|
||||
}
|
||||
if (item.type === "grass") return Infinity;
|
||||
if (item.type === "duplicator") return mobile ? 0.8 : 0.5;
|
||||
if (item.type === "water") return mobile ? 2.4 : 1.8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue