special = 0; $f = new self($sec); $f->maxLight = $sec->lightLevel; $f->minLight = World::minSurroundingLight($sec, $sec->lightLevel) + 16; return $f; } public function think(World $w): void { if (--$this->count > 0) { return; } $amount = (Random::p() & 3) * 16; if ($this->sector->lightLevel - $amount < $this->minLight) { $this->sector->lightLevel = $this->minLight; } else { $this->sector->lightLevel = $this->maxLight - $amount; } $this->count = 4; } public function isRemoved(): bool { return false; } }