REPO_JP-Simple_ValuableScaler icon

Simple ValuableScaler

Host-or-single valuables spawn amount multiplier and per-size ratio multipliers.貴重品の生成量倍率とサイズ別生成割合倍率を変更するMOD

By REPO_JP
Last updated 12 hours ago
Total downloads 88
Total rating 1 
Categories Mods Valuables Server-side
Dependency string REPO_JP-Simple_ValuableScaler-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2304 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2304

README

Simple_ValuableScaler

  • Host-or-single valuables spawn amount multiplier + per-size ratio multipliers

Overview

  • What this mod does

    • Multiplies the total amount of valuables spawned by the host (or in singleplayer)
    • Provides per-size ratio multiplier configs to bias which size category is chosen
    • Provides an option to bypass level-based size restrictions (config entry)
  • Who it is for

    • Hosts who want a super simple way to increase or decrease valuables and control size distribution
  • What changes after installation

    • The host scales ValuableDirector spawn limits during setup and can bias size category weights via config

Features

  • Host-or-single execution

    • The spawn setup is host-driven (ValuableDirector.SetupHost patch)
    • Clients do not need the mod for host-side spawn amount changes to take effect
  • Total spawn amount scaling

    • Hooks ValuableDirector.SetupHost (enumerator transpiler)
    • Injects ApplySettings(ValuableDirector inst) right after valuableTargetAmount is assigned
    • Reads and scales:
      • totalMaxAmount -> scaled by General.AmountMultiplier
    • Restores original values before applying scaling to avoid stacking
  • Per-size ratio multiplier configs (weight multipliers)

    • Provides per-size multiplier config entries under SizeMultiplier
    • Sizes:
      • TinySizeMultiplier
      • SmallSizeMultiplier
      • MediumSizeMultiplier
      • BigSizeMultiplier
      • WideSizeMultiplier
      • TallSizeMultiplier
      • VeryTallSizeMultiplier
    • Intended behavior: set one size to 1.0 and others to 0.0 to force 100% that size
  • Level size restriction bypass (config entry)

    • General.IgnoreLevelSizeRestrictions
    • Intended to allow valuables normally locked to higher levels to spawn on any level

Configuration

  • General.AmountMultiplier

    • Default: 1.5
    • Range: 0.0..10.0
    • Meaning: multiplies the total amount of valuables spawned
    • Examples
      • 1.0 = vanilla
      • 2.0 = roughly 2x valuables
      • 0.0 = 0 valuables
  • General.IgnoreLevelSizeRestrictions

    • Default: false
    • Meaning: allow higher-level-only size valuables to spawn on any level
  • SizeMultiplier.TinySizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Tiny valuables
  • SizeMultiplier.SmallSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Small valuables
  • SizeMultiplier.MediumSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Medium valuables
  • SizeMultiplier.BigSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Big valuables
  • SizeMultiplier.WideSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Wide valuables
  • SizeMultiplier.TallSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for Tall valuables
  • SizeMultiplier.VeryTallSizeMultiplier

    • Default: 1.0
    • Range: 0.0..10.0
    • Meaning: spawn ratio weight multiplier for VeryTall valuables

Usage

  • Minimal steps

    • Install the mod on the host (or in singleplayer)
    • Launch the game once to generate the config
    • Set General.AmountMultiplier
    • Optionally adjust SizeMultiplier.* to bias or force sizes
    • Start a run and valuables are scaled automatically
  • Notes

    • Works only for host or singleplayer
    • Clients do not need the mod for the host’s valuables scaling to apply

Contact


Simple_ValuableScaler

  • 貴重品生成量倍率 + サイズ別生成割合倍率を変更するホスト/ソロ専用MOD

概要

  • このMODが何をするか

    • ホスト(またはソロ)で貴重品の総生成量を倍率変更
    • サイズ別の生成割合倍率設定を用意し サイズの偏りを調整可能
    • レベル依存サイズ制限解除のオプションを用意(設定項目)
  • どんな人向けか

    • 超シンプルに貴重品の量とサイズ比率だけを調整したいホスト向け
  • 導入で何が変わるか

    • セットアップ時に ValuableDirector の上限が倍率適用され サイズの重みを設定で調整できる

特徴

  • ホスト/ソロ前提動作

    • ValuableDirector.SetupHost のパッチにより ホスト側のセットアップで倍率適用
    • クライアントはMOD不要で ホスト側の生成量変更が反映される
  • 総生成量の倍率変更

    • ValuableDirector.SetupHost(Enumerator)に Transpiler で注入
    • valuableTargetAmount 設定直後に ApplySettings(ValuableDirector inst) を呼ぶ
    • totalMaxAmountGeneral.AmountMultiplier で倍率適用
    • 多重適用を避けるため 毎回元値へ復元してから倍率適用
  • サイズ別生成割合倍率(重み倍率)

    • SizeMultiplier セクションにサイズ別倍率を用意
    • 対象サイズ
      • Tiny / Small / Medium / Big / Wide / Tall / VeryTall
    • 想定例
      • Tallだけ 1.0 他を 0.0 にすると Tallのみ生成に寄せられる
  • レベル制限解除(設定項目)

    • General.IgnoreLevelSizeRestrictions
    • 本来高レベル限定のサイズ貴重品を全レベルで生成可能にする想定

設定

  • General.AmountMultiplier

    • 既定値: 1.5
    • 範囲: 0.0..10.0
    • 意味: 貴重品の総生成量へ倍率適用
      • 1.0 = バニラ
      • 2.0 = だいたい2倍
      • 0.0 = 0個
  • General.IgnoreLevelSizeRestrictions

    • 既定値: false
    • 意味: 高レベル限定のサイズ貴重品を全レベルで生成可能にする
  • SizeMultiplier.TinySizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Tinyサイズの生成割合重み倍率
  • SizeMultiplier.SmallSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Smallサイズの生成割合重み倍率
  • SizeMultiplier.MediumSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Mediumサイズの生成割合重み倍率
  • SizeMultiplier.BigSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Bigサイズの生成割合重み倍率
  • SizeMultiplier.WideSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Wideサイズの生成割合重み倍率
  • SizeMultiplier.TallSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: Tallサイズの生成割合重み倍率
  • SizeMultiplier.VeryTallSizeMultiplier

    • 既定値: 1.0
    • 範囲: 0.0..10.0
    • 意味: VeryTallサイズの生成割合重み倍率

使い方

  • 最短手順

    • ホスト または ソロにMODを導入
    • 1回起動して設定ファイル生成
    • General.AmountMultiplier を設定
    • 必要に応じて SizeMultiplier.* を調整
    • Run開始で自動的に貴重品生成量が倍率適用される
  • 注意点

    • 動作するのはホスト または ソロのみ
    • クライアント側はMOD不要で ホスト側の生成量変更が反映される

連絡先