darkTime = $fastOrSlow; $f->maxLight = $sec->lightLevel; $f->minLight = World::minSurroundingLight($sec, $sec->lightLevel); if ($f->minLight === $f->maxLight) { $f->minLight = 0; } $sec->special = 0; $f->count = $inSync ? 1 : (Random::p() & 7) + 1; return $f; } public function think(World $w): void { if (--$this->count > 0) { return; } if ($this->sector->lightLevel === $this->minLight) { $this->sector->lightLevel = $this->maxLight; $this->count = $this->brightTime; } else { $this->sector->lightLevel = $this->minLight; $this->count = $this->darkTime; } } public function isRemoved(): bool { return false; } }