A compatibility patch for Emergency Dice REPOED by slayer6409.
Emergency Dice REPOED was built for an older version of R.E.P.O. Two things broke silently in the current version:
FixedUpdate logic called a method (RunManager.levelShop) whose type changed from Level to List<Level>, throwing a MissingFieldException every frame.ChatMessageSendRPC) no longer exists in the current R.E.P.O. ChatManager.This patch fixes both.
FixedUpdate with a fully compatible version that correctly detects throws (by velocity) and E-key presses (via ItemToggle). All reflection lookups are cached once at startup — no per-frame overhead.[Dice] Rugrats
[Dice] Random Upgrade
This works by patching each IEffect.Use() implementation and calling ChatManager.instance.ForceSendMessage().You need Emergency Dice REPOED installed — this is a patch for it, not a replacement.
All credit for the dice system goes to slayer6409, the author of Emergency Dice REPOED. Please install and support the original mod: https://thunderstore.io/c/repo/p/slayer6409/Emergency_Dice_REPOED/
Found a bug or have an idea? Please use this form: https://docs.google.com/forms/d/e/1FAIpQLSfl7f-oNiwjXjd7mUkfQoqBIhbJhQhhfV-ZmovjJVQ9orwuYQ/viewform
slayer6409 の Emergency Dice REPOED 向け互換パッチです。
Emergency Dice REPOED は古いバージョンの R.E.P.O. 向けに作られており、現在のバージョンでは以下の2点が壊れていました:
FixedUpdate が参照していた RunManager.levelShop の型が Level から List<Level> に変わり、毎フレーム MissingFieldException が発生していた。ChatMessageSendRPC)が現在の R.E.P.O. の ChatManager から削除されていた。このパッチで両方を修正します。
FixedUpdate を完全互換版に置き換え。速度による投擲検出と ItemToggle による E キー検出を正しく動作させます。リフレクション検索は起動時に1回キャッシュするため、毎フレームのオーバーヘッドはありません。[Dice] Rugrats
[Dice] Random Upgrade
各 IEffect.Use() 実装にパッチを当て、ChatManager.instance.ForceSendMessage() を呼び出すことで実現しています。Emergency Dice REPOED が必要です(このMODはパッチです。単体では動きません)。
サイコロシステムの全てのクレジットは slayer6409 氏にあります。オリジナルMODの導入もお願いします: https://thunderstore.io/c/repo/p/slayer6409/Emergency_Dice_REPOED/
このフォームからどうぞ: https://docs.google.com/forms/d/e/1FAIpQLSfl7f-oNiwjXjd7mUkfQoqBIhbJhQhhfV-ZmovjJVQ9orwuYQ/viewform