yazirushi-CanUseValuable icon

CanUseValuable

[WIP!]Use the Interact key to make valuables that activate when damaged function like weapons. [作業中!]損傷すると動作する貴重品をインタラクトキーで武器のように動作できるようにします。

Last updated 2 hours ago
Total downloads 5
Total rating 0 
Categories Mods Client-side Server-side
Dependency string yazirushi-CanUseValuable-0.9.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]

CanUseValuable

Use the Interact key to make valuables that activate when damaged function like weapons.

Feature

It allows you to activate the effects of valuables—which trigger when damaged—using the E key, just like you would with a weapon.
Currently in the prototype stage, it supports three types of items: the “Staff” and “LevitationPotion” from the Magic School, and the “Camera” found at Headman's Mansion and Macjaneck Station.
When you hold a supported item, a UI will appear, allowing you to check the number of uses remaining and its current status.
Usage counts and cooldowns are tracked individually for each object (so even if you have two of the same item and one has reached its limit, the other may still be usable). Ultimately, I plan to support most of these items (if possible...!).

The configuration options are robust, allowing you to enable or disable items individually, as well as freely adjust the number of uses and cooldown times.
Note that this mod only uses the host’s settings, so changing the values yourself or secretly installing it without the host mod is pointless.

Config

  • General

    • Enable
      Default: true
      Whether to enable this mod
  • WizardStaff

    • Enable
      Default: true
      Whether the staff can be activated

    • UseLimit
      Default: 5
      Number of times the staff can be activated

    • UseTime
      Default: 10.0
      Number of seconds the staff remains active

    • CoolTime
      Default: 20.0
      Number of seconds until the staff can be used again after activation ends

  • WizardLevitationPotion

    • Enable
      Default: true
      Whether the levitation potion can be activated

    • UseLimit
      Default: 3
      Number of times the levitation potion can be activated

    • CoolTime
      Default: 60.0
      Seconds until the Levitation Potion becomes available again after activation

  • Manor&ArcticCamera

    • Enable
      Default: true
      Whether the camera can be activated

    • UseLimit
      Default: 30
      Number of times the camera can be activated

    • CoolTime
      Default: 2.5
      The number of seconds until the camera becomes available again after activation ends

  • DebugLog

    • EnableLogging
      Default: false
      Display logs used for debugging (Since there are a lot of logs, we recommend disabling this if you want to view logs from other mods)

How This Mod Works

Who Needs to Download

Everyone must download this.
If only the host downloads it, only the host can use it (synchronization will not occur, so this is not recommended).
If only the participants download it, this mod will not work.

Everyone Host only Participants only
Works

About the Config

As mentioned earlier, only the host’s settings are used, except for the log.

About “UseLimit” in the Config

Setting UseLimit to 0 or lower removes the usage limit.
Recommended if you want to have wild, unrestrained fun.

A Few Points to Note

  • Depending on your config settings, performance may become sluggish (especially if CoolTime is short).

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]

CanUseValuable

損傷すると動作する貴重品をインタラクトキーで武器のように動作できるようにします。

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

損傷したときに何かが起きる貴重品の動作を武器みたいにEキーで発動できるようになります。
現在は試作段階なので、魔法学校の 「杖」「浮遊ポーション」 。ヘッドマン邸宅・マクジャネックステーションの 「カメラ」 の三種類に対応しています。
対応している貴重品を持つとUIが表示され、使える回数や状態などが確認できます。
使用回数やクールタイムは、オブジェクトごとに個別に記録されます(2つあって片方は上限まで使ってても、もう片方はまだ使えたりする)。 最終的にはこれらの大半を対応させたいと考えています(できれば...!)。

コンフィグ機能も充実していて、個別に有効化無効化できたり、使える回数やクールタイムなども自由に変更可能です。
一応、ホストの設定のみを使用するので勝手に値を変えたり、あるいはホスト未導入なのにこっそり導入していても意味はありません。

コンフィグ

  • General

    • Enable
      初期値:true
      このmodを動作させるかどうか
  • WizardStaff

    • Enable
      初期値:true
      杖を発動できるかどうか

    • UseLimit
      初期値:5
      杖を発動できる回数

    • UseTime
      初期値:10.0
      杖を発動し続ける秒数

    • CoolTime
      初期値:20.0
      杖の発動終了後、次に使用可能になるまでの秒数

  • WizardLevitationPotion

    • Enable
      初期値:true
      浮遊ポーションを発動できるかどうか

    • UseLimit
      初期値:3
      浮遊ポーションを発動できる回数

    • CoolTime
      初期値:60.0
      浮遊ポーションの発動終了後、次に使用可能になるまでの秒数

  • Manor&ArcticCamera

    • Enable
      初期値:true
      カメラを発動できるかどうか

    • UseLimit
      初期値:30
      カメラを発動できる回数

    • CoolTime
      初期値:2.5
      カメラの発動終了後、次に使用可能になるまでの秒数

  • DebugLog

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

このmodの動作について

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

全員がダウンロードしてください。
ホストのみがダウンロードしている場合、ホストのみ使えます(同期はされないのでおすすめしません)。
参加者のみがダウンロードしている場合、このmodは動作しません。

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

コンフィグについて

先ほども記載しましたが、ログ以外はホストの設定のみを使用します。

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

UseLimitを0以下の値に設定すると回数制限がなくなります。
ハチャメチャに楽しみたい場合におすすめ。

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

  • コンフィグの設定によっては動作が重たくなる可能性があります(特にCoolTimeが短い場合)。

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