Lan-JunkAndItemAutoDestroy icon

JunkAndItemAutoDestroy

自动回收腐烂商品和垃圾(可配置),拒绝当垃圾回收厂的搬运工。Auto-Recycle Rotten Items and Junk (Configurable) – Never Be the Junkyard's Porter Again!

By Lan
Last updated 13 hours ago
Total downloads 326
Total rating 2 
Categories Mods
Dependency string Lan-JunkAndItemAutoDestroy-1.2.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100

README

自动回收垃圾和过期商品

🔮 中文

✨ 功能说明

(2025.8.28)1.2.1更新

修复了丢弃在地上的垃圾不会被自动回收的错误。

(2025.8.25)1.2.0更新

现在过期商品自动销毁功能不会将货架上的商品连带篮子一起回收,而是仅回收篮子内的食材,在货架上保留篮子,方便地窖专员帮您捕获,但是丢弃在地上的垃圾和过期商品会连同篮子一起被回收掉。

自动回收系统
每日早上6点自动回收过期物品、垃圾处理,包含两大核心机制:

  • 🗑️ 过期商品自动回收
    自动检测并回收已过期的商品,回收价格与垃圾回收厂开出来的价格一致

  • ♻️ 智能垃圾清理
    自动检测并回收背包/场景中的垃圾物品(junk),回收价格与垃圾回收厂开出来的价格一致

  • ⚙️ 双重回收模式
    可通过配置文件自由组合:

    • 仅回收过期商品
    • 仅回收垃圾
    • 同时回收两者

📦 技术细节

  • 执行时间检测
    检测游戏时间6:00 AM,通过GameManager.OnTimelineChanged后置补丁触发

  • 回收价格计算
    与垃圾回收厂使用的价格计算公式一致,即过期商品半价出售,如果该商品有篮子或者盘子,会有额外的20C

  • 兼容性 目前暂未发现与该Mod冲突的其他Mod。 为了与AutoRestock以及其他自动补货的Mod兼容,这里不提供自动回收空篮子的功能。

🛠️ 安装指南

  1. 下载 Lan-JunkAndItemAutoDestroy-1.1.0.zip
  2. 解压至 Old Market Simulator 根目录

Auto-Recycle Junk and Rotten Items

🔮 English

✨ Feature Description

(2025.8.28)1.2.1 Update Fixed a bug where junk discarded on the ground would not be automatically recycled.

(2025.8.25)1.2.0 Update

The expired item auto-recycle feature now preserves baskets on shelves (only recycling ingredients inside), allowing cellar specialists to capture them, while ground-discarded junk and expired items will be recycled along with their baskets.

Automatic Recycling System automatically processes rotten items and junk daily at 6:00 AM, featuring two core mechanisms:

  • 🗑️ Rotten Item Auto-Recycle
    Automatically detects and recycles expired goods using the same pricing formula as the junkyard

  • ♻️ Smart Junk Cleanup
    Automatically detects and recycles junk items (marked as "junk") from inventory/scenes using junkyard pricing

  • ⚙️ Dual Recycling Modes
    Configurable through settings file:

    • Recycle rotten items only
    • Recycle junk only
    • Recycle both

📦 Technical Details

  • Execution Timing
    Triggers via postfix patch on GameManager.OnTimelineChanged when game time reaches 6:00 AM

  • Price Calculation
    Uses identical pricing formula as junkyard:

    • Rotten items sold at 50% base price
    • Additional 20C compensation for containers (baskets/plates)
  • Compatibility
    Currently no known mod conflicts. To maintain compatibility with AutoRestock and other auto-restock mods, this mod intentionally excludes automatic recycling of empty containers.

🛠️ Installation Guide

  1. Download Lan-JunkAndItemAutoDestroy-1.1.0.zip
  2. Extract to Old Market Simulator root directory