> For the complete documentation index, see [llms.txt](https://1294243258.gitbook.io/untiltheend-introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://1294243258.gitbook.io/untiltheend-introduction/gu-you-shu-xing/shi-pin-de-fu-lan.md).

# 饥饿与食品的腐烂

## 自然饥饿

#### 正常情况下，玩家每30秒饥饿值固定-1

{% code title="config.yml" %}

```yaml
food:
  hunger: 
    speed: 30   #每多少秒固定减少1点饥饿值
```

{% endcode %}

## 食物新鲜度计算

#### 食品新鲜度

* 食品的新鲜度将会以lore的形式显示
* 新鲜度最大100
* 当新鲜度变为0的时候食物则会腐烂

#### 新鲜度计算

* 玩家背包内每个食物 -1新鲜度/30秒
* 存放在容器中的食物不会腐败（暂定）

{% code title="config.yml" %}

```yaml
food:
  rotten: 
    enable: true   #是否打开食物腐烂机制
    speed: 30   #每多少秒计算一次腐烂-1
```

{% endcode %}

## 新鲜度带来的结果

#### 饱食度的变化

* 食品的饱食度随其新鲜度的改变而改变
* 其新鲜度越低，其提供饱食度越低
* 计算公式为：
* 饱食度D = 新鲜度F / 100 \* 原版食品饱食度 + 1

{% hint style="info" %}
也就是说，如果你吃非常新鲜的食物，提供的饱食度会比原版
{% endhint %}

#### 过期食品

* 如果一个食品的新鲜度低于60，则定义它为过期食品
* 每食用一个过期食品，玩家的理智值将会有所变化
* 其过期时间越长，理智值扣得越多
* 计算公式为：
* 扣除的理智值S = 新鲜度 / 100 \* 15

#### 腐烂食品

* 当食品新鲜度掉至0时，它会变成腐肉
* 如果玩家使用腐肉，他将会得到以下DEBUFF:
* **理智值-30**
* **伤害2点+5秒凋零效果**
* **饱食度-1**

## 怎么防止食物腐败

#### 贮存于容器之中

* 目前容器中的食物新鲜度不会变化
* 后续有打算在容器中食品也会变化\~

#### 穿上便携隔热包

* 没错！这就是那个比普通背包贵、提供的多余格子还比普通背包少的便携背包
* 但是它可以使玩家背包内所有物品都不会腐烂/掉新鲜度
* 穿上它远行吧\~

### 饥饿与食品的腐烂-完

赞助地址：<https://afdian.net/order/create?plan_id=7cc5be1eb8dd11e9a25e52540025c377>

QQ官方交流群：1051331429


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://1294243258.gitbook.io/untiltheend-introduction/gu-you-shu-xing/shi-pin-de-fu-lan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
