ScalingPrices

版本 v1.1.2·更新於 2025-03-12

Now you can customize price scaling for crystals, health packs and upgrades!

模組介紹 作者原文

Description

You can now adjust the price scaling for Crystals, Health Packs, and Upgrades (Boosters).

How It Works in the Code:

  • Initial Calculation:

The item's value is first calculated using a random range multiplied by ValueMultiplier. It is then normalized (with a minimum of 1000, then divided by 1000 and rounded up).

  • Bonus Adjustments:

Depending on the item type, the code increases the value further:

  • For Upgrades: The value is increased by a percentage based on the number of upgrades purchased multiplied by UpgradeIncrease (from the Default category) and an additional fixed bonus per player from the PerPlayerIncrease setting.
  • For Health Packs & Power Crystals: The value is boosted by a percentage based on the levels completed multiplied by their respective Default increase values and a fixed bonus per player from the corresponding PerPlayerIncrease value.

Summary of Scaling Factors

| Item Type | Scaling Factors |

| ------------------ | ---------------------------------------------- |

| Upgrades | Increases with number of purchases and players |

| Health Packs | Increases with levels completed and players |

| Power Crystals | Increases with levels completed and players |

Configuration

| Category | Variable | Default Value | Description |

| ------------------- | --------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------- |

| Default | ValueMultiplier | 4 | Multiplies the base random value range to determine the item's initial value. |

| Default | UpgradeIncrease | 0.5 | Applies a percentage bonus for upgrade items based on the number of upgrades purchased for the specific upgrade type. |

| Default | HealthPackIncrease | 0.05 | Applies a percentage bonus for health packs based on the number of levels completed. |

| Default | CrystalIncrease | 0.2 | Applies a percentage bonus for power crystals based on the number of levels completed. |

| PerPlayerIncrease | UpgradeIncrease | 0.0 | Adds a fixed bonus per active player for upgrade items. |

| PerPlayerIncrease | HealthPackIncrease | 0.0 | Adds a fixed bonus per active player for health pack items. |

| PerPlayerIncrease | CrystalIncrease | 0.0 | Adds a fixed bonus per active player for power crystal items. |

Feedback and Suggestions

If you have any feedback or suggestions, feel free to open an issue on the GitHub repository.

Say Thanks

If you'd like to show your appreciation, you can give me a profile award on my Steam Page.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
ScalingPrices-1.1.2.zip
檔案大小
134.2 KiB