not bad
This commit is contained in:
parent
2741b93dea
commit
434f07cc4e
103 changed files with 8387 additions and 8152 deletions
|
|
@ -70,15 +70,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
hasWaterCurableDisease() {
|
||||
return Boolean(this.zunchiDisease || this.explosionDisease);
|
||||
},
|
||||
|
||||
hasZundaCurableDisease() {
|
||||
return Boolean(this.explosionDisease || this.fightDisease);
|
||||
},
|
||||
|
||||
infectSleepDisease(source = null) {
|
||||
if (this.dead || this.sleepDisease) return false;
|
||||
this.sleepDisease = true;
|
||||
|
|
@ -204,11 +195,6 @@
|
|||
if (!id) return null;
|
||||
return this.world?.items?.find?.(it => it && !it.dead && it.id === id && it.type === "nest_box") || null;
|
||||
},
|
||||
|
||||
isInsideNestBox() {
|
||||
return Boolean(this.insideNestBoxId);
|
||||
},
|
||||
|
||||
wantsNestBox(box = null) {
|
||||
if (!box || box.dead || box.type !== "nest_box") return false;
|
||||
if (this.insideNestBoxId === box.id && (this.world?.time || 0) < (this.nestBoxStayUntil || -Infinity) && (this.state === "sleep" || this.state === "seek_bed" || this.sleeping)) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue