
RepoMarketHub
Adds a live 3D Stock Exchange Terminal in the Shop: warehouse holding, volatile markets, -EV item hacking, Sealed Crypto Cases, Shield Drone, Black Market buyback, and Expedition modifiers. Host + Co-op synced (EN/RU).
# RepoMarketHub — Syndicate Exchange Hub (v0.1.6)
**RepoMarketHub** transforms the R.E.P.O. between-level Shop into an interactive **3D Syndicate Stock Exchange Terminal** featuring volatile supply-and-demand cycles, unlimited free Warehouse storage, high-risk item hacking, rare **Sealed Crypto Cases**, an illicit **Black Market**, a custom **Shield Barrier Drone**, and **Expeditions + Threat Escalation** modifiers — **100% synchronized in Co-op** with automatic **English / Russian** localization.
**Multiplayer Requirement:** Both the **Host and all Clients** must install this mod.
**Required Dependency:**
BepInEx-BepInExPack-5.4.2305
---


## Full Feature Breakdown
### 1. Live 3D Exchange Terminal & Persistent Warehouse
* **Persistent Warehouse Storage (repo\_market\_hub.json)**: Extracted valuables are deposited into your save-specific **Warehouse** instead of flat instant cash (level extraction quotas still complete normally). Warehouse storage is **free and unlimited**.
* **Exact Dollars & Change Bank (PendingDollars)**: Items calculate to $1 precision ($1,350, $2,480). Every $1,000 sold converts into **+$1K** team cash while storing leftover change ($0–$999) inside the terminal bank.
* **Shop Purchasing Power Sync**: Vanilla Shop assortment and UpgradeStand rerolls automatically include stored Warehouse value + pending bank alongside cash so shelves scale properly even before liquidating loot.
* **3 Volatile Market Macro Regimes**: Every run shifts category multipliers across **25% Bull Surge** (1 Hot 1.38x–1.72x), **45% Mixed**, and **30% Bear Slump** (3 Cold 0.50x–0.76x), alongside per-item demand (0.78x–1.20x) and subtle live Hub micro-ticks. Blind average payout sits around \~0.88x–0.90x.
* **Smart Selling & Co-op Synced Sorting Toolbar**:
* **SELL ALL -10%**: Liquidates all unlocked loot at once with a **-10%** wholesale fee (0.90x).
* **PROFIT >=1.0**: Sells all standard items currently trading at **>= 1.00x** for **100% (1:1)** value with zero fee — hoard red dips and sell into hot booms!
* **Synced Sorting (DEFAULT, COEFF ↓, PRICE ↓, HACK ↑)**: Live-synced sorting order across all players.
### 2. High-Stakes Hacking (-EV Casino) & Batch Hack
* Curated valuables across all 6 categories feature thematic actions (**Hack**, **Dismantle**, **Inspect**, **Decode**, **Appraise**, **Open**) costing **25% of Extracted Value** (min $1K):
* **3% Chance** *(while Black Market is locked)*: Consumes item to extract a **Black Market Access Key**.
* **55%–58% Chance**: **Dud ($0)** — item becomes worthless scrap.
* **30% Chance**: **Bonus Find (1.65x – 2.35x)**.
* **12% Chance**: **Jackpot (2.80x – 4.20x)**.
* **HACK ALL Batch Processing**: Processes affordable unhacked regular items in current sort order behind a **4.5-second 2-click safety confirmation** (automatically skips $30K Sealed Crypto Cases).
### 3. Sealed Crypto Cases

* Custom 3D chained armored lockbox (200 HP durability, 1.4x rarer than Blue Uncommon cosmetic crates) spawning across levels with HUD extraction notices.
* Extracted cases arrive in Warehouse **SEALED** (protected from Sell All).
* Cracking a seal costs **$30K** and rolls across 7 cryptocurrency tiers (Dogecoin/Shiba low drops $1K–$27K, Solid/Blue-Chip coins $34K–$78K, and Vintage BTC/Whale cold vaults $90K–$220K; ~38% < $30K, ~62% > $30K, \~$42K–$43K average gross return).
### 4. Black Market Buyback & Custom Shield Drone
* **3 Unlock Paths**: Pay **$200K** directly, find a **3% Key** while hacking valuables, or hit a **20%** unlock chance when extracting a **Rare (purple)** cosmetic crate.
* **Illicit Catalog**: Buy extra Crystals (2.75x), Drones (5.0x), Grenades/Mines (7.0x), Melee (7.5x), Guns (8.5x), and Launchers (9.0x), bypassing vanilla duplicate purchase limits. Smuggled purchases drop right in front of the terminal ($0 inside the shop extractor).
* **Custom Item — Shield Barrier Drone ($12K–$13K tier)**: Rechargeable **0–100%** barrier absorbing fragile physics impacts (25% light, 40% medium, 65% heavy damage soaked; dynamic Blue → Orange → Red laser beams; 10%/s regen after 1.0s hit delay or 3.0s shatter reboot, co-op ripple FX).
### 5. Sector Expeditions & Permanent Threat Escalation

* **1-Run Blueprint Nodes** (Extractions $7K / $16K, Monsters $5K / $13K):
* **Extractions**: Adds +4 / +8 rooms (+34% / +68% map scale), +1 / +2 extraction points (auto-capped at 5/5), +35% / +70% loot count, and +40% / +80% loot budget vs extra foes.
* **Monsters & Valuables**: Spawns extra Tier-2 / Tier-3 foes and speeds up enemy respawns (-15% / -25%) for a modest **+8% / +16%** loot value boost and +8% / +16% cosmetic crate chance.
* **Save-Wide Threat Escalation (Lv. 1–6: $8K to $90K)**:
* Focuses difficulty on **Enemy Speed (+12% to +80%)**, mild HP (+4% to +25%), extra enemy slots, and faster respawns (-7.5%/level) with **no enemy damage buff**, paired with a modest **+4% to +24%** loot value bonus (\~35% quota scaling).
### 6. Co-op Terminal Sync & Configuration
* **Full Photon PUN2 Co-op Sync**: Host-authoritative economy, chunked GZip late-join sync, synchronized tabs, scrolls, sorting, Hack All confirmation state, expedition inspector hover, and live remote player laser cursors with Unicode/Cyrillic badges.
* **Config (BepInEx/config/com.pavel.repomarkethub.cfg)**:
| Section | Key | Default | Description |
| --- | --- | --- | --- |
| BlackMarket | UnlockCostK | 200 | Cost in $K to buy Black Market clearance |
| BlackMarket | RareBoxUnlockChance | 0.20 | Rare purple cosmetic box Black Market unlock chance |
| BlackMarket | HackBlackMarketKeyChance | 0.03 | Regular hack Black Market key drop chance |
| Market | MinimumMultiplier | 0.50 | Minimum allowed category × item market multiplier |
| Market | HubMicroTickIntervalSeconds | 7.0 | Seconds between minor live ticker & drift updates in Hub |
| Market | HubMicroDriftRange | 0.04 | Maximum ± drift range inside the Shop hub |
---
## 🇷🇺 Русское описание — Syndicate Exchange Hub (v0.1.6)
**RepoMarketHub** добавляет в Магазин R.E.P.O. интерактивный **3D-терминал Биржи Синдиката** с рыночными циклами, бесплатным безлимитным Складом, рискованным взломом лута, **Опечатанными Крипто-кейсами**, **Чёрным выкупом**, кастомным **Барьерным дроном** и **Экспедициями / Эскалацией угрозы** — с полной **кооп-синхронизацией** и автоматической локализацией **RU / EN**.
**Важно для коопа:** мод должен быть установлен **и у хоста, и у всех игроков** в лобби. Зависимость:
BepInEx-BepInExPack-5.4.2305.
* **Склад и точные $ (PendingDollars)**: эвакуированный лут падает на бесплатный безлимитный Склад (repo\_market\_hub.json). Точные доллары до $999 копятся в копилке и каждые $1,000 зачисляются в кассу +$1K.
* **Волатильный рынок**: 3 макро-режима между вылазками (25% Памп / 45% Флэт / 30% Спад). Слепая кнопка **ПРОД. ВСЁ -10%** даёт оптовый дисконт -10%, а **ПЛЮС >=1.0** продаёт зелёные лоты (>= 1.00x) 1:1 без комиссии. В шапке Склада доступна кооп-сортировка (**Новые / Коэфф. ↓ / Цена ↓ / Взлом ↑**).
* **Взлом (казик -EV) и ВЗЛОМАТЬ ВСЕ**: стоимость 25% от цены (мин. $1K): 3% Ключ Чёрного выкупа, 55%–58% Пустышка ($0), 30% Бонус (1.65x–2.35x), 12% Джекпот (2.80x–4.20x). Пакетный взлом работает с защитой 2-го клика (4.5с) и не трогает $30K крипто-кейсы.
* **Крипто-кейсы ($30K вскрытие)**: редкий 3D-сейф (200 HP), внутри 7 тиров монет от $1K до $220K (в среднем \~$42K–$43K).
* **Чёрный выкуп и Барьерный дрон**: открывается за $200K, ключом из взлома (3%) или редким ящиком (20%). Позволяет докупать кристаллы, дронов и оружие без лимита магазина. **Барьерный дрон** гасит удары лута (25% / 40% / 65%) и заряжается по 10%/с.
* **Экспедиции и Эскалация**: апгрейды на 1 забег (**Экстракции $7K/$16K** с лимитом 5/5, **Монстры $5K/$13K** за +8% / +16% цены лута) и общая **Эскалация Ур.1–6** с упором на скорость монстров (+12%..+80%, без урона врагов) и +4%..+24% бонусом стоимости.