p
This commit is contained in:
parent
d14550dad6
commit
63e10af865
86 changed files with 5400 additions and 1209 deletions
|
|
@ -128,6 +128,7 @@
|
|||
const fanRange = 320;
|
||||
for (const it of this.nearbyItems(x, y, Math.max(range + 8, fanRange + 40))) {
|
||||
if (!it || it.dead || (it.type !== "dry_ice" && it.type !== "stove" && it.type !== "fan")) continue;
|
||||
if (global.TarinaiSignalSystem?.powerOverride?.(it) === false) continue;
|
||||
if (it.type === "fan") {
|
||||
const wind = global.TarinaiItemDynamicBallSystem?.fanWindAt?.(it, x, y, { range: fanRange }) || null;
|
||||
if (!wind) continue;
|
||||
|
|
@ -152,7 +153,7 @@
|
|||
break;
|
||||
}
|
||||
const parasolSystem = global.TarinaiParasolSystem || global.TarinaiRainShelterSystem;
|
||||
const weatherBlocked = Boolean(actor && parasolSystem?.blocksWeatherAt?.(this, x, y));
|
||||
const weatherBlocked = Boolean(actor && parasolSystem?.blocksWeatherAt?.(this, x, y, actor));
|
||||
temp += weatherBlocked ? 0 : (this.weatherFeltTemperatureOffsetAt?.(x, y, actor) || 0);
|
||||
if (actor && !weatherBlocked && (actor.state === "sunbath" || (actor.sunbathTimer || 0) > 0.04)) temp += 3;
|
||||
return this.temperatureNumber(temp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue