Lethal Company
Install

Details

Last Updated
First Uploaded
Downloads
320
Likes
0
Size
31KB
Dependency string
Solon-DestroyedMoons-1.1.0
Dependants

DestroyedMoons

Author: Solo00n

An addon for FacilityMeltdown. When a moon is destroyed by a nuclear meltdown, that moon becomes permanently unvisitable for the current save file. You can no longer route there through the terminal or the ship lever. The block survives between sessions and is stored inside the save itself, so deleting the save also clears it.

Features

  • Permanently blocks a moon for the current save after a FacilityMeltdown nuclear explosion.
  • Stops routing to a destroyed moon from both the terminal and the ship lever.
  • Strikes a line through destroyed moon names in the terminal moons list.
  • Buy back a destroyed moon for credits, with a dedicated section on the terminal HELP page.
  • Splits the terminal moons list into active moons and a separate DESTROYED MOONS section with the buyback price.
  • Once every moon is destroyed the ship is routed to the Company building instead of being refused, so the run stays playable.
  • Works with vanilla and modded moons.

Multiplayer

The host is authoritative. Only the host detects a meltdown, records the destroyed moon and saves it, then syncs the list to every client so their terminals and levers also refuse the route. Buyback is decided on the host and synced to everyone.

Requirements

  • BepInEx
  • FacilityMeltdown (by loaforc)

Terminal commands

  • moonstatus — list the destroyed moons.
  • buyback — show the buyback list and price.
  • buyback [moon name] — restore a destroyed moon for 500 credits (configurable).

Configuration

Section Setting Default What it does
General Enabled true Master on/off switch.
General AutoResetWhenAllBlocked false Wipe the list once every moon is destroyed. Left off, buyback is the way back.
General RedirectToCompanyWhenAllBlocked true Send the ship to the Company building once every moon is destroyed.
General BlockOnMeltdownStart true Block the moon the moment a meltdown starts.
Buyback EnableMoonBuyback true Allow paying to restore a destroyed moon.
Buyback MoonBuybackPrice 500 Credit cost to restore one moon.
Visuals SplitMoonsList true Split the moons list into active and destroyed sections.
Visuals StrikethroughBlockedMoons true Strike through destroyed moon names in the terminal.
Lists ManualBlacklist (empty) Moons that are always blocked.
Lists Whitelist (empty) Moons that are never blocked.
Compatibility FilterRandomMoonFXPool true Remove destroyed moons from the RandomMoonFX random pool.
Maintenance ResetBlockedListOnNextLoad false One-shot clear of the stored list.

Compatibility

  • FacilityMeltdown (required) — provides the meltdown and explosion that trigger the block.
  • RandomMoonFX (optional) — destroyed moons are excluded from the random lever pool, with a built-in anti-hang guard.
  • Meltdown_Chance (optional) — blocking only happens when a meltdown really occurs.
  • LethalLevelLoader (optional) — vanilla and custom moons supported.
  • TerminalFormatter / TerminalUtils (mrov, optional) — their moons page is hooked directly, so the active/destroyed split lands on the right page.

Credits

  • Solo00n — author.
  • Built with BepInEx and HarmonyX.

Русский

Аддон для FacilityMeltdown. Когда луну уничтожает ядерный взрыв, она навсегда становится недоступной в текущем сохранении — на неё нельзя прилететь ни через терминал, ни через рычаг. Блокировка сохраняется между сессиями и хранится внутри самого сейва, поэтому удаление сейва её очищает.

Возможности

  • Навсегда блокирует луну в текущем сохранении после ядерного взрыва FacilityMeltdown.
  • Запрещает маршрут на уничтоженную луну через терминал и через рычаг корабля.
  • Перечёркивает названия уничтоженных лун в списке лун в терминале.
  • Выкуп уничтоженной луны за кредиты, с отдельным разделом на странице HELP в терминале.
  • Разделяет список лун в терминале на активные и отдельную секцию DESTROYED MOONS с ценой выкупа.
  • Когда уничтожены все луны, корабль отправляется к зданию Компании вместо отказа, и игра продолжается.
  • Поддерживает ванильные и модовые луны.

Мультиплеер

Решение принимает хост. Только хост определяет meltdown, записывает уничтоженную луну и сохраняет её, а затем рассылает список всем клиентам, чтобы их терминалы и рычаги тоже отказывали в маршруте. Выкуп решается на хосте и синхронизируется со всеми.

Зависимости

  • BepInEx
  • FacilityMeltdown (от loaforc)

Команды терминала

  • moonstatus — показать список уничтоженных лун.
  • buyback — показать список для выкупа и цену.
  • buyback [название] — восстановить уничтоженную луну за 500 кредитов (настраивается).

Changelog

1.1.0

  • The moons list is split into active moons and a DESTROYED MOONS section showing the buyback price, so destroyed moons can be seen and restored from the moons page.
  • Direct support for TerminalFormatter and TerminalUtils (mrov).
  • Once every moon is destroyed the ship routes to the Company building instead of refusing, keeping the run playable so you can earn credits and buy a moon back.
  • AutoResetWhenAllBlocked now defaults to false, so destroyed moons stay destroyed.

1.0.8

  • Fixed stale blocked lists surviving across save deletion. The save data is now the single source of truth, and deleting a save clears its destroyed-moon list.

1.0.7

  • Fixed a freeze when pulling the ship lever with many destroyed moons. Added an anti-hang guard, a routing safety net, and a config toggle to disable the random-pool filtering if needed.

1.0.6

  • Performance and stability hardening; cached checks and safer strikethrough.

1.0.5

  • Added crash safety so the moon pool can never be fully emptied, and the moon buyback system.

1.0.4

  • Auto-reset the list when every moon is destroyed.

1.0.3

  • Kept only the moonstatus command; more robust strikethrough in the moons list.

1.0.2

  • Fixed the save list not loading; added reliable meltdown-start detection and terminal strikethrough.

1.0.1

  • Fixed the meltdown auto-detection crash and dependency detection.

1.0.0

  • Initial release.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.