Skip to content

semimodder/Shared

Repository files navigation

Shared Mod

Thunderstore Version Thunderstore Downloads GitHub Issues

A highly customizable, unified sharing mod for REPO that combines and refines several gameplay sharing features into one optimized package.

Features

  1. Upgrade Sharing

    • Automatically distributes player upgrade levels to the entire team.
    • Configurable sharing chance percentage (0-100%) and roll mode (Whole Team vs. Individual).
    • Price scaling based on player count (Price = BasePrice * (1 + (PlayerCount - 1) * UpgradePriceScaling)) to keep upgrades balanced.
    • Syncs existing upgrade levels to late-joining players.
    • Integrates dynamically with custom upgrades registered via REPOLib.
  2. Health Pack Sharing

    • When a player consumes a health pack, the entire team is healed for the same amount.
  3. Death Liability (Damage Sharing)

    • Penalizes player deaths by dealing a configurable percentage of max health (default: 10%) as damage to survivors.
    • Safe zone exclusion: Players inside the truck or extraction point rooms can be spared from damage.
    • Built-in solidarity mark system to prevent cascading death loops.
  4. Battery / Energy Sharing

    • Drains charging station power crystals instead of item battery life when using battery-powered items (flashlights, vacuums, batons, drones).

Installation

  1. Ensure you have BepInEx installed for REPO.
  2. Place Shared.dll inside your BepInEx/plugins/ directory.

Configuration

A config file (semimodder-shared.cfg) is generated in your BepInEx config directory with highly customizable keys:

[General]

  • LoggingLevel (Type: String, Default: "Info", Acceptable Values: "None", "Info", "Debug", "Verbose"): Verbosity level of mod logs.
  • ShowWatermark (Type: Boolean, Default: true): Show a subtle watermark UI indicating the Shared mod is loaded.

[Upgrades]

  • EnableUpgradeSharing (Type: Boolean, Default: true): Enable sharing player stat upgrades with the team.
  • UpgradeShareChance (Type: Int32, Default: 100, Range: 0-100): The percentage chance that purchased upgrades are shared (0-100).
  • WholeTeamChance (Type: Boolean, Default: true): If true, a single roll is performed for the team. If false, each player rolls independently.
  • EnableModdedUpgradeSharing (Type: Boolean, Default: true): Enable sharing of modded/custom upgrades (including those from REPOLib).
  • EnableLateJoinUpgradeSync (Type: Boolean, Default: true): Synchronize existing team upgrades to players who join the lobby late.
  • UpgradePriceScaling (Type: Single (Float), Default: 0.5, Range: 0-2): Scale the price of upgrades based on player count: Price = BasePrice * (1 + (PlayerCount - 1) * UpgradePriceScaling). Set to 0 to disable scaling.
  • EnableUpgradeHeal (Type: Boolean, Default: true): Automatically heal players when sharing health capacity upgrades.
  • EnableShareNotification (Type: Boolean, Default: true): Play visual and audio cues when upgrades are shared.

[Health]

  • EnableHealthSharing (Type: Boolean, Default: true): When a health pack is used to heal a player, heal all other players by the same amount.

[Damage]

  • EnableDeathLiability (Type: Boolean, Default: true): When a player dies, all other players take damage as a penalty.
  • DeathDamagePercent (Type: Int32, Default: 10, Range: 0-100): Percentage of max health damage survivors take on team member death (0-100). 0 disables.
  • ExcludeSafeZones (Type: Boolean, Default: true): Do not deal liability damage to players inside the truck or extraction point rooms.

[Battery]

  • EnableBatterySharing (Type: Boolean, Default: true): Drain charging station power crystals instead of item battery life when using battery-powered items.

Bug Reports & Feedback

If you encounter any bugs, issues, or have feature requests, please report them on the GitHub Issues page.

About

Unified sharing mod for REPO. Shares upgrades, item batteries, damage/health packs, and death liability.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages