> For the complete documentation index, see [llms.txt](https://meta-14.gitbook.io/meta-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://meta-14.gitbook.io/meta-docs/meta-racing-whitepaper/detali-parts/metallolom-scrap.md).

# Металлолом (Scrap)

Металлолом — это игровой ресурс, который получают путем разборки ненужных деталей и используют для крафта/тюнинга.

Правила

* Разбирать можно только незаблокированные и не оборудованные детали.
* Деталь исчезает, а игрок получает Лом (+ редкий шанс на Ядро редкости Rare+).
* Если деталь была улучшена, часть вложенных материалов возвращается (в эквиваленте Лома), но не IGT.

#### Базовая стоимость в металлоломе (S\_cost)

Стоимость металлолома связана со стоимостью общей части и параметром, которые создают математическую кривую для стоимости других частей со сложностью. Это обеспечит гибкость для будущих корректировок.

S\_cost (Rarity) = S\_cost (Common) x P\_mult

| Rarity    | Amount of scrap | Part multiplicator (P\_mult) |
| --------- | --------------: | ---------------------------: |
| Common    |             100 |                              |
| Uncommon  |             300 |                            3 |
| Rare      |             600 |                            6 |
| Epic      |            1200 |                           12 |
| Legendary |            2400 |                           24 |

#### Логика разборки

Разборка деталей должна контролироваться для смягчения циклических циклов покупки-изготовления. Для сбалансирования экономики возврат лома связан с коэффициентом возврата и базовой стоимостью детали в ломе.

Scrap = floor(r × S\_cost × P\_type × P\_gen) P\_gen = a ^ b

| Parameter      |                                Value | Description                                                                                            | Rules                                                                                                                 |
| -------------- | -----------------------------------: | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| r              |                                 0.75 | Return ratio                                                                                           | If Scrap accumulates too quickly, make parameter "r" smaller. If players find it painful parameter should be raised.  |
| S\_cost        | \[\[#Basic cost in scrap (S\_cost)]] | Basic cost in scrap                                                                                    | -                                                                                                                     |
| P\_type (Part) |                                    1 | Parameter for balancing scrap returns by part type. Defaults to 1 for all parts.                       | If analytics show 40% of scrap comes from a specific part (e.g., tires), type\_mod(Tires) can be reduced to cut waste |
| P\_gen         |                                a ^ b | Penalty for depth of crafting (constructed via exponent)                                               | -                                                                                                                     |
| a              |                                 0.95 | Attenuation parameter for crafted parts                                                                | If purchased and crafted parts should be equal, set a = 1                                                             |
| b              |                                g = N | N indicates crafting depth (0 = purchased, 1 = crafted from purchased, 2 = crafted from crafted, etc.) | b stored in part metadata; persists through sales                                                                     |
| floor()        |                                    - | Floor function rounds down to the greatest integer less than or equal to value                         | -                                                                                                                     |
