yazirushi-Conversion icon

Conversion

We will add a feature that converts stamina into health when stamina is low. スタミナが少ない時に体力をスタミナに変換する仕組みを追加します。

Last updated 5 hours ago
Total downloads 15
Total rating 0 
Categories Mods Client-side Server-side
Dependency string yazirushi-Conversion-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

[En]

Conversion

We will add a feature that converts stamina into health when stamina is low.

Feature

By holding down the F key while running, you can continue running even after your stamina reaches 0 by converting your health into stamina (the key, consumption rate, and recovery rate can be customized).

If you’ve ever played R.E.P.O., you’ve probably experienced this at least once...

  • Getting attacked by enemies
  • Being eliminated by teammates
    Most of these deaths are caused by running out of stamina.
    This mod aims to address these frustrating (or perhaps not so frustrating) situations by adding a new mechanic, making the game more comfortable and strategic.

Config

  • Host Settings

    • Percent Mode (Stamina)
      Default: false
      Whether to convert based on maximum stamina (this will be explained in detail below)

    • Percent Mode (Health)
      Default: false
      Whether to convert based on maximum health

    • Gain Stamina
      Default: 10
      Amount of stamina recovered during conversion (must be 1 or higher)

    • HP Cost
      Default: 1
      Amount of health consumed during conversion (must be 1 or higher)

    • Safety
      Default: true
      Whether to abort the conversion if health drops to 0 during the process

  • Client Settings

    • ConvertKey
      Default: F
      Key to press to perform the conversion
  • DebugLog

    • EnableLogging
      Default: false
      Display debug logs (Since there is a lot of log output, we recommend disabling this if you want to view logs from other mods)

How This Mod Works

Who Needs to Download It

We recommend that everyone download it.
If only the host downloads it, only the host can use it.
If only the participants download it, this mod will not work (an error will appear on the host’s side, but it will not affect other gameplay functions).

Everyone Host Only Participants Only
Works

About the Config

The host's config settings apply to all players.

About “Percent Mode” in the Config

When “Percent Mode” is enabled, “Gain Stamina” and “HP Cost” are set as percentages rather than absolute values.
If Gain Stamina = 10 and maximum HP = 200,

Percent Mode Consumption
true 20
false 10

It will look like this. The same applies to Stamina.
As the game progresses, maximum values increase and the conversion amounts no longer match, so I added this feature for that reason.

About “Safety” in the Config

If “Safety” is enabled, the conversion will be interrupted if the HP cost exceeds your current HP; if disabled, you will die without mercy.
I originally disabled conversion because dying during it felt unfair, but I added this option because it seemed interesting.

A Few Points to Note

  • It may be slow due to insufficient optimization (I’d appreciate any suggestions for improvements).

I'm on Discord's “R.E.P.O. Modding Server”.
The URL below is my mod's forum page, so feel free to contact me if you encounter any issues or have requests.
yazirushi's Mods General Forum



[Jp]

Conversion

スタミナが少ない時に体力をスタミナに変換する仕組みを追加します。

具体的にこのmodが何をするのか

Fキーを長押ししながら走ることで、スタミナが0になっても体力をスタミナに変換して走り続けることができます(キーや消費量・回復量は変更可能です)。

R.E.P.O.をプレイしたことがある人なら一度はあるでしょう...

  • 敵に攻撃される
  • 仲間に排除される
    これらの死因のほとんどはスタミナがないことが原因です。
    このmodはそんな理不尽(でもないかもしれないけど)な事象を新たな仕組みを追加することで、快適でより戦略性のあるものにできると期待しています。

コンフィグ

  • Host Setting

    • Percent Mode(Stamina)
      初期値:false
      最大スタミナを基準に変換するかどうか(この辺は下で詳しく説明します)

    • Percent Mode (Health)
      初期値:false
      最大体力を基準に変換するかどうか

    • Gain Stamina
      初期値:10
      変換で回復するスタミナの量(1以上の値にしてください)

    • HP Cost
      初期値:1
      変換で消費する体力の量(1以上の値にしてください)

    • Safety
      初期値:true
      変換時に体力が0になる場合、変換を中断するかどうか

  • Client Setting

    • ConvertKey
      初期値:F
      変換を行うために入力するキー
  • DebugLog

    • EnableLogging
      初期値:false
      デバッグに使用したログを表示する(ログが多めなので他のmodのログを見たい場合は無効にすることをおすすめします)

このmodの動作について

ダウンロードする必要のある人

全員がダウンロードすることをおすすめします。
ホストのみがダウンロードしている場合、ホストのみ使えます。
参加者のみがダウンロードしている場合、このmodは動作しません(ホスト側にエラーが出ますが、他の動作に影響はありません)。

全員 ホストのみ 参加者のみ
動作

コンフィグについて

ホストのコンフィグが全てのプレイヤーに適応されます。

コンフィグの「Percent Mode」について

「Percent Mode」を有効にすると、「Gain Stamina」と「HP Cost」は量ではなく割合を設定するものになります。
Gain Stamina = 10 で最大体力 = 200の場合、

Percent Mode 消費量
true 20
false 10

このようになります。これはスタミナでも同様です。
後半になると最大値も大きくなって変換量が合わなくなるので、このために用意しました。

コンフィグの「Safety」について

「Safety」が有効だと、体力の消費が現在の体力より大きい場合は変換を中断しますが、無効だと容赦なく死ぬようになります。
変換で死ぬのは理不尽に感じていたのでもともとは変換不可にしていたのですが、面白そうなので用意しました。

ちょっとだけ注意するべき点

  • 最適化不足なので重いかもしれません(何か改善案などあれば教えてもらえると嬉しいです)。

Discordの「R.E.P.O. Modding Server」にいます。
以下URLは私のmodのフォーラムのページなので、不具合や要望等あれば気軽に連絡してください。
yazirushiが作ったmodの総合フォーラム