# 技能升级和分解

#### 英雄的技能 <a href="#undefined" id="undefined"></a>

* 每个英雄有三个技能。技能最高可升至101级。
* 技能分蓝色技能和紫色技能两种。根据英雄品质划分，相对应的数量为

| 品质 | 名称    | 蓝色技能数量 | 紫色技能数量 |
| -- | ----- | ------ | ------ |
| 白  | 普通武将  | 3      | 0      |
| 绿  | 稀有武将  | 3      | 0      |
| 蓝  | 超稀有武将 | 2      | 1      |
| 紫  | 传说武将  | 1      | 2      |
| 橙  | 史诗武将  | 0      | 3      |

* 技能点数通过分解英雄卡片可获得。

#### 升级英雄技能 <a href="#undefined" id="undefined"></a>

* 升级蓝色技能，需要消耗蓝色技能点数

> 消耗蓝色技能点数公式为 = 技能等级\*5

* 升级紫色技能，需要消耗紫色技能点数。

> 消耗蓝色技能点数公式为 = 技能等级\*10

* 升级需要SGP

> 蓝色技能所需SGP公式 = (100+(技能等级-1) \* 技能等级 \* 5)\
> 紫色技能所需SGP公式 = (1000+(技能等级-1) \* 技能等级 \* 技能等级\*2)

#### 分解英雄获得技能点数 <a href="#undefined" id="undefined"></a>

* 根据分解英雄卡片的品质、英雄等级、三个技能的等级，会获得相对应的技能点数。
* 蓝色的技能分解获得蓝色技能点数，紫色的技能分解获得紫色的技能点数。因此，因为白色和绿色英雄只有蓝色技能，所以分解时只会获得蓝色技能点数；而橙色英雄分解时，将只会获得紫色技能点数。 分解公式如下：

> 技能点数 = 系数1 + 取整(英雄等级/10) \* 系数2 + 升级累计消耗的的技能点数 \* 80%

| 品质 | 系数1  | 系数2 |
| -- | ---- | --- |
| 白  | 30   | 5   |
| 绿  | 120  | 10  |
| 蓝  | 500  | 15  |
| 紫  | 1500 | 20  |
| 橙  | 3000 | 25  |

```
根据此公式推导，假设有一张蓝色的英雄，英雄等级为105级，三个技能的等级分别为 12级 1级 5级

那么分解该卡可得：

技能1获得蓝点 = 500 + INT(105/10) * 15 + 330 * 80% = 914
技能2获得蓝点 = 500 + INT(105/10) * 15 + 0   * 80% = 650
技能3获得紫点 = 500 + INT(105/10) * 15 + 100 * 80% = 730

总共获得

蓝色技能点 1564
紫色技能点 730
```


---

# Agent Instructions: 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://samurai-gold.gitbook.io/samurai/you-xi/ji-neng-sheng-ji-he-fen-jie.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.
