# ✨ 效果

## 介绍

钓鱼效果是一种临时增益，为玩家的单次钓鱼尝试提供加成。这种加成可以来自钓鱼竿、鱼饵，甚至是附魔和图腾！钓鱼效果遵循特定的配置格式。以下是所有效果的设置方式。

所有效果都遵循以下格式：

```yaml
star_fishing_rod:
  requirements: # 使用此物品的要求
    ...
  effects: 
    effect_0: # 效果名称可以自定义
      type: weight-mod
      value:
      - rubbish:-10
      - golden_star_fish:+10
```

## 鱼饵

要使用鱼饵，需要将其放在副手或者钓鱼袋中。每次投掷钓竿时，鱼钩都会与钩子一起抛出。

## 钩子

要在钓竿上装备钩子，请确保你处于生存模式。将钩子拖动到你的钓竿上即可应用。要从钓竿上取下钩子，只需右键单击钓竿，钩子就会出现在你的鼠标上。

<figure><img src="https://2403073102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn2ogeAAIntzmG4ra344J%2Fuploads%2Fgit-blob-3464c3da8997510be4f369bf15816eca824a6d2d%2Fimage.gif?alt=media" alt=""><figcaption><p>鱼钩和鱼饵</p></figcaption></figure>

## 效果库

> weight-mod（weight-mod 提供了一种调整单个战利品权重或几率的方式，可以快速改变获得特定物品的概率。如果没有可用的战利品，效果将不会生效。）

```yaml
xxx_effect:
  type: weight-mod
  value:
  - rubbish:-10
  - golden_star_fish:+10
```

> weight-mod-ignore-conditions（区别在于，即使没有这样的战利品可用，效果仍然会生效。）

```yaml
xxx_effect:
  type: weight-mod-ignore-conditions
  value:
  - enchantmentbook:+1
```

> group-mod（与 weight-mod 不同，group-mod 允许同时修改多个战利品的权重。当然，一个物品可以属于多个组，例如“金质”组和“海洋”组。有关如何将战利品分配给组的指导，请参考战利品系统。）

```yaml
xxx_effect:
  type: group-mod
  value:
  - gold:+20
  - normal:-6
```

> weight-group-ignore-conditions

```yaml
xxx_effect:
  type: group-mod-ignore-conditions
  value:
  - enchantment:+10  
```

> wait-time（调整鱼儿上钩的等待时间）

```yaml
xxx_effect:
  type: wait-time
  value: -20          <- 减少 20 个刻
```

> wait-time-multiplier（调整鱼儿上钩的等待时间）\
> ~~（在旧版本中也称为“hook-time”）~~

```yaml
xxx_effect:
  type: wait-time-multiplier
  value: 0.8          <- "大于1"使时间更长；"<1"相反
                      <- 减少 20% 等待时间
```

> difficulty（调整游戏难度）

```yaml
xxx_effect:
  type: difficulty
  value: -17         <- 减少 17 难度
```

> difficulty-multiplier（调整游戏难度）

```yaml
xxx_effect:
  type: difficulty-multiplier
  value: 0.7         <- 减少 30% 难度
```

> multiple-loot（玩家可以在一次钓鱼尝试中获得多个物品。每 0.01 代表 1% 的机会。如果值超过 1，玩家保证可以获得双倍物品，但有小概率获得三倍。如果值超过 2，他们保证可以获得三倍物品，但有小概率获得四倍。）

```yaml
xxx_effect:
  type: multiple-loot
  value: 0.05
```

> lava-fishing（允许玩家在岩浆中钓鱼）

```yaml
xxx_effect:
  type: lava-fishing
```

> size（size 为战利品提供大小加成，最终战利品的大小增加了这个值。此选项影响在鱼的大小决定分数的比赛中的得分。）

```yaml
xxx_effect:
  type: size
  value: 10.5      <- 增加 10.5 鱼的大小
```

> size-multiplier（size-bonus 为战利品提供大小加成，最终战利品的大小将乘以此值。此选项影响在鱼的大小决定分数的比赛中的得分。）
>
> ~~（在旧版本中也称为“size-bonus”）~~

```yaml
xxx_effect:
  type: size-multiplier
  value: 1.3         <- 增加 30% 鱼的大小
```

> score（score 在比赛中提供得分加成，最终战利品的得分增加了这个值。注意：这仅在 TOTAL\_SCORE 模式下起作用。）

```yaml
xxx_effect:
  type: score
  value: 20         <- 增加 20 得分
```

> score-multiplier（score-bonus 在比赛中提供得分加成，最终战利品的得分将乘以此值。注意：这仅在 TOTAL\_SCORE 模式下起作用。）\
> ~~（在旧版本中也称为“score-bonus”）~~

```yaml
xxx_effect:
  type: score-multiplier
  value: 1.5        <- 增加 50% 得分
```

> game-time（game-time 允许调整小游戏的持续时间，使玩家有更多的时间做出反应并获得更多成功的机会。）

```yaml
xxx_effect:
  type: game-time
  value: 10           <- 增加 10 秒
```

> game-time-multiplier（game-time 允许调整小游戏的持续时间，使玩家有更多的时间做出反应并获得更多成功的机会。）

```yaml
xxx_effect:
  type: game-time-multiplier
  value: 1.3          <- 增加30% 秒
```

> conditional （将条件系统应用于某些效果）

```yaml
xxx_effect:
  type: conditional
  conditions:
    ...
  effects:
    ...
```

## 全局效果 <a href="#global-effects" id="global-effects"></a>

全局效果位于 config.yml。它允许您为玩家创建全局效果。这是默认配置，可在比赛进行时加快钓鱼速度。

```yaml
mechanics:
  global-effects:
    effect_1:
      type: conditional
      conditions:
        competition:
          ongoing: true
          id:
            - weekend_competition
      effects:
        effect_1:
          type: wait-time-multiplier
          value: 0.85
```
