Xatha-SoCRebalancePlugin icon

SoCRebalancePlugin

Makes purchases at the Shrine of Chance a viable choice in the early game.

Last updated 2 years ago
Total downloads 76278
Total rating 6 
Categories Mods Tweaks Server-side Survivors of the Void
Dependency string Xatha-SoCRebalancePlugin-1.1.0
Dependants 41 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.9 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.9
RiskofThunder-HookGenPatcher-1.2.1 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.1

README

Shrine of Chance Rebalance

In the vanilla game, the Shrine of Chance is a high-risk, low reward shrine without much use outside of the mid-end game or playing as Captain with hacking beacons. This mod aims to buff the Shrine of Chance, while keeping the vanilla high-risk gambling mechanic of occasionally rewarding you nothing at all. But now instead of purely wasting your money, each consecutive time you fail a Shrine of Chance, your chances of acquiring an item of higher rarities increases. Now the Shrine of Chance encourages a gambling, high-risk high-reward playstyle.

What This Mod Changes (as of version 1.1.0)

  • If the Shrine of Chance is hacked by a Captain beacon, it will revert to its vanilla behaviour. This can be disabled by configuring isBeaconHackingAllowed.
  • The first time you interact with the Shrine of Chance, the drop rates are the same as in the vanilla game;
  • but the more consecutive fails you have on the same shrine, the higher is the chance for you to get a higher quality drop. (The exact drop rates are shown in the table at the bottom of this chapter.)
  • After getting a successful gamble/drop at the Shrine, the drop rates reset.
  • If a red item drops, the Shrine of Chance will immediately deactivate regardless of how many items it has dropped already.
  • The colour of the interaction effect now changes with the rarity of the item dropped.
Consecutive Fails Drop Chances
0 Nothing: 45%
White (Common): 36%
Green (Uncommon): 9%
Red (Legendary): 1%
Orange (Equipment): 9%
1 Nothing: 44%
White (Common): 29%
Green (Uncommon): 17%
Red (Legendary): 2%
Orange (Equipment): 8%
2 Nothing: 44%
White (Common): 6%
Green (Uncommon): 34%
Red (Legendary): 6%
Orange (Equipment): 11%
3 Nothing: 43%
White (Common): 4%
Green (Uncommon): 33%
Red (Legendary): 11%
Orange (Equipment): 9%
4 Nothing: 43%
White (Common): 1%
Green (Uncommon): 37%
Red (Legendary): 15%
Orange (Equipment): 4%
5 Nothing: 44%
White (Common): 0%
Green (Uncommon): 26%
Red (Legendary): 30%
Orange (Equipment): 0%
6 Nothing: 0%
White (Common): 1%
Green (Uncommon): 0%
Red (Legendary): 99%
Orange (Equipment): 0%

Future Plans

I plan to refine and better organise my code. Furthermore, I plan to add lots of configurable parameters to my mod, such as the drop rates, shrine cost and more.

Feedback Is Very Much Welcomed

If you have any feedback, comments, or problems with the mod, I prefer you head over to my Github to post your 'issue'. If you feel like directly giving me feedback, you can always send me a friend request and give me your feedback directly on Discord. My Discord handle is: Luma#0069.

Compatibility

This mod works with or without SoTV. Very important; this mod is not compatible with any mod that changes/reads/modifies the Shrine of Chance's functions or methods. As far as I know, very few mods do anything with the Shrine of Chance already, so it probably will not cause you any trouble.

Confirmed Incompatibilities

  • Quality of Rain's feature that makes shrines activate faster does not work apply to the Shrine of Chance while this mod is enabled. You can change the activation speed through configuration of this mod. Quality of Rain still works fine otherwise.

Changelog

  • 1.1.0

    • Configs introduced:
      • MaximumPurchaseCount can now be configured.
      • refreshTimer can now be configured.
      • costMultiplier can now be configured.
      • deactivateIfRedItemDrops and isBeaconHackingAllowed can now be disabled.
      • Configs can be hot-reloaded with the console command: SoC_reload_config. This also works in multiplayer games.
    • Changed how the interaction effects work
      • The colour of the effect on interaction is now depending on the item rarity dropped.
    • Cleaned up a lot of code.
  • 1.0.2-beta Fixed missing effect and sound when interacting with the shrine.

  • 1.0.1-beta Fixed some leftover code used for debugging.

  • 1.0.0-beta Release!