REPO_JP-EnemyKillBonus icon

EnemyKillBonus

【Host Only MOD】adds money to your savings based on the strength of enemies you defeat.倒した敵の強さに応じた額を貯金に反映させるMOD

By REPO_JP
Last updated 6 hours ago
Total downloads 90
Total rating 2 
Categories Mods Monsters Server-side AI Generated
Dependency string REPO_JP-EnemyKillBonus-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100

README

EnemyKillBonus

This mod is a host-only mod that adds money to your savings based on the strength of enemies you defeat.

Features

  • Gives bonus money whenever an enemy dies
  • Uses separate reward ranges for Tier 1, Tier 2, and Tier 3 enemies
  • Chooses the nearest living player to the dead enemy
  • Forces a public chat message in the format +nk$
  • Runs only during normal level scenes
  • Does not run in Arena, Lobby, LobbyMenu, Shop, levelMainMenu, levelSplashScreen, or Tutorial

How it works

When an enemy dies, the host checks the enemy tier and rolls a reward amount from that tier's configured minimum and maximum range. The rolled amount is added directly to the current run money. Then the mod finds the nearest living player to the dead enemy and makes that player's name post +nk$ in public chat.

This is handled only by the host so that the reward and chat behavior stay consistent for the room.

Configuration

Tier1MinK

  • Description: Minimum reward for Tier 1 enemies in k$
  • Default: 0
  • Minimum: 0
  • Maximum: No hard cap

Tier1MaxK

  • Description: Maximum reward for Tier 1 enemies in k$
  • Default: 2
  • Minimum: 0
  • Maximum: No hard cap

Tier2MinK

  • Description: Minimum reward for Tier 2 enemies in k$
  • Default: 2
  • Minimum: 0
  • Maximum: No hard cap

Tier2MaxK

  • Description: Maximum reward for Tier 2 enemies in k$
  • Default: 5
  • Minimum: 0
  • Maximum: No hard cap

Tier3MinK

  • Description: Minimum reward for Tier 3 enemies in k$
  • Default: 5
  • Minimum: 0
  • Maximum: No hard cap

Tier3MaxK

  • Description: Maximum reward for Tier 3 enemies in k$
  • Default: 10
  • Minimum: 0
  • Maximum: No hard cap

DebugLog

  • Description: Enables debug logs for reward processing and target selection
  • Default: false
  • Minimum: false
  • Maximum: true

Notes

  • This mod uses the dead enemy position to find the nearest living player
  • If there is no living player, the money reward can still be applied but no chat message is sent
  • Reward values are handled in k$ units
  • Duplicate reward processing for the same enemy is prevented internally

For developers

The mod is intended to hook enemy death once, prevent duplicate reward application per networked enemy instance, and keep reward logic host-authoritative. The feature is intentionally limited to normal level scenes so it does not affect Arena, menus, or shop flow.

※Mod created by AI

EnemyKillBonus

REPOが好きな日本人のための日本人のみのREPOのDiscordサーバーあります! 参加は以下のリンクから! https://discord.gg/h5ATY4m5bZ

このMODは、ホストのみの導入で動作する、倒した敵の強さに応じた額を貯金に反映させるMOD。

機能

  • 敵が死ぬたびにボーナス所持金を追加
  • Tier 1、Tier 2、Tier 3 で別々の報酬範囲を使用
  • 死んだ敵に最も近い生存プレイヤーを選択
  • +nk$ 形式の公開強制チャットを送信
  • 通常のレベルシーンでのみ動作
  • Arena、Lobby、LobbyMenu、Shop、levelMainMenu、levelSplashScreen、Tutorial では動作しない

動作内容

敵が死ぬと、ホストがその敵のティアを確認し、そのティアに対応した最小値と最大値の設定範囲から報酬額を抽選します。 抽選された値はそのまま現在のラン所持金へ加算されます。 その後、死んだ敵に最も近い生存プレイヤーを探し、そのプレイヤー名義で +nk$ の公開チャットを送信します。

この処理はホストのみが行うため、部屋全体で報酬とチャットの見え方を統一できます。

設定項目

Tier1MinK

  • 設定内容説明: ティア1敵の最小報酬k$
  • 初期値: 0
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

Tier1MaxK

  • 設定内容説明: ティア1敵の最大報酬k$
  • 初期値: 2
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

Tier2MinK

  • 設定内容説明: ティア2敵の最小報酬k$
  • 初期値: 2
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

Tier2MaxK

  • 設定内容説明: ティア2敵の最大報酬k$
  • 初期値: 5
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

Tier3MinK

  • 設定内容説明: ティア3敵の最小報酬k$
  • 初期値: 5
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

Tier3MaxK

  • 設定内容説明: ティア3敵の最大報酬k$
  • 初期値: 10
  • 設定可能最小値: 0
  • 設定可能最大値: 上限なし

DebugLog

  • 設定内容説明: 報酬処理や対象選定のデバッグログを有効化
  • 初期値: false
  • 設定可能最小値: false
  • 設定可能最大値: true

補足

  • 死亡した敵の位置を基準に最寄りの生存プレイヤーを選びます
  • 生存プレイヤーがいない場合は、報酬だけ加算されてチャットは送られないことがあります
  • 報酬値は k$ 単位で処理されます
  • 同じ敵に対する二重報酬は内部で防止されています

開発者向け詳細

このMODは、敵死亡処理を1回だけ拾い、ネットワーク上の同一敵インスタンスに対して二重に報酬を与えないように設計されています。 また、報酬処理をホスト権限に限定することで、所持金加算とチャット結果を部屋全体で安定させています。 通常レベル以外では動かないようにしてあるため、アリーナ、各種メニュー、ショップ進行へ影響しません。

※AI生成MOD