> For the complete documentation index, see [llms.txt](https://atiysus-organization.gitbook.io/aty-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atiysus-organization.gitbook.io/aty-scripts/restaurant-creator/features/hygiene-cleaning-and-health-inspector.md).

# Hygiene, Cleaning & Health Inspector

A restaurant that isn't kept clean loses hygiene, reputation, and eventually gets sealed.

#### Pollution & dirt

* Cooking actions add pollution (`Config.PollutionTickRate` per action, capped at `Config.MaxPollutionBeforePenalty`).
* Open restaurants periodically spawn **trash** and **stains** near stations — the lower the hygiene, the higher the chance (auto-spawn runs every minute).
* Each active pollution reduces the restaurant's max hygiene.

#### Cleaning

| Tool / Station                               | Cleans                                                                                                        |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| **Trash Bin / hand pickup**                  | Litter/trash — walk up and take it.                                                                           |
| **Mop (from Mop Bucket / Cleaning Station)** | Stains — take the mop, target the stain and complete the **scrub minigame** (top-down camera, drag to clean). |
| **Sink**                                     | Wash action; grants a hygiene bonus (`Config.CleaningHygieneBonus`).                                          |

Collected trash/stains despawn together with their interaction targets. Return the mop at the bucket when finished.

#### Health inspector

A virtual inspector checks restaurants every `Config.InspectorCheckInterval` (default 5 min). If hygiene is critically low:

* The owner/staff get a warning.
* Continued neglect can **seal** the restaurant (state 3), blocking operation until the fine is paid or the restaurant is transferred.

#### Spoilage

Ingredients spoil over time based on `Config.SpoilTimes` (per category) or a per-item `spoilTime`. A background thread removes spoiled items from prep boards and storage. Dispose of spoiled goods from the Supply tab or a trash bin.

{% hint style="warning" %}
Keep hygiene high: it directly drives reputation and inspector outcomes.
{% endhint %}
