You are viewing a potentially older version of this package. View all versions.
REPOTeam-ValuablesCounted-1.0.0 icon

ValuablesCounted

Counts valuables dropped by monsters and shows the count in TimerMod's enemy list UI.

Date uploaded a month ago
Version 1.0.0
Download link REPOTeam-ValuablesCounted-1.0.0.zip
Downloads 17
Dependency string REPOTeam-ValuablesCounted-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305
Rune580-REPO_SteamNetworking_Lib-0.1.2 icon
Rune580-REPO_SteamNetworking_Lib

API/Library for networking using Steamworks socket relays. Very much WIP, but still usable, mostly.

Preferred version: 0.1.2
Bydlo-TimerMod-1.2.0 icon
Bydlo-TimerMod

Add timer spent on level and enemies' respawn times

Preferred version: 1.2.0

README

ValuablesCounted

R.E.P.O mod that counts the valuables dropped by monsters.

Requirements

  • BepInEx: required for loading the mod.
  • RepoSteamNetworking: required for multiplayer drop-count sync.
  • TimerMod: optional, but required if you want the counts shown in TimerMod's enemy-list UI.

Without TimerMod, ValuablesCounted still tracks drops and writes count updates to the BepInEx log.

Project Structure

ValuablesCounted.slnx
NuGet.config
src/
  ValuablesCounted/
    EnemyParentPatch.cs
    LevelGeneratorPatch.cs
    MonsterDropRecord.cs
    MonsterDropSyncPacket.cs
    MonsterDropTracker.cs
    MultiplayerDropSync.cs
    Plugin.cs
    TimerModUiIntegration.cs
    ValuablesCounted.csproj
tests/
  ValuablesCounted.Tests/
    MonsterDropRecordTests.cs
    ValuablesCounted.Tests.csproj

Build

dotnet build

The mod project targets netstandard2.1 and uses the R.E.P.O modding SDK packages for BepInEx/HarmonyX development.

To deploy directly to a local R.E.P.O profile, create a local Directory.Repo.props file with your game and BepInEx profile paths. Keep that file out of source control because it contains machine-specific paths.

Runtime

ValuablesCounted tracks each spawned monster separately and logs how many enemy valuables that monster dropped. In multiplayer, the host syncs drop counts to clients so each player sees the same totals.