WTL ThingSetMaker Patch
# WTL ThingSetMaker Patch **Game Version: RimWorld 1.
# WTL ThingSetMaker Patch
**Game Version: RimWorld 1.6 only**
## What does this mod do?
This is a **small, lightweight supplemental patch for World Tech Level (WTL)** that closes the ThingSetMaker gap.
WTL already filters almost every spawn path in the game: trader stock, research projects, quest rewards, incidents, factions, creatures, apparel, weapons, starting possessions, prosthetics, backstories, traits, diseases, addictions, building materials, mineable resources, ancient debris, world generation...
But there is one gap: **ThingSetMaker.Generate()**.
This is the internal system that generates loot for:
- Ancient ruins and ancient complexes
- Hidden cryptosleep caskets
- Some quest reward pods
- Various other randomly generated item sources
WTL does not patch ThingSetMaker, so even when WTL is set to Medieval, you can still find Royalty techprints, power armor, laser weapons, and other high-tech items in ancient ruins.
## What this mod changes
Harmony patches all 17 concrete ThingSetMaker subclass `Generate()` methods, and removes any item whose required tech level exceeds your configured limit.
## Features
### 🤝 Follow WTL mode (default ON)
- Directly calls WTL's own `TechLevelUtility.MinRequiredTechLevel(Thing)` method
- Fully respects **all WTL Overrides** you configure
- Uses WTL's current world tech level as the threshold
- No duplicate logic, no desync — if WTL changes, this mod follows automatically
### 🎛️ Standalone mode
- Fully functional without WTL
- Choose your own maximum tech level from 8 options:
- Unrestricted / Animal / Neolithic / Medieval / Industrial / Spacer / Ultra / Archotech
- Uses vanilla `ThingDef.techLevel` as the filter rule
### 📄 Techprint filter (independent toggle)
- Explicitly filters all items whose `defName` starts with `Techprint_`
- On by default, because techprints often don't have proper `techLevel` tags in their defs
## Settings
- **Maximum tech level to allow** — radio button list, only used when Follow WTL is off
- **Also filter all Techprints explicitly** — checkbox
- **Follow World Tech Level (recommended)** — checkbox, uses WTL's Overrides
## Compatibility
- **RimWorld 1.6 only**
- **Requires:** Harmony
- **Recommended:** World Tech Level (for full Overrides support)
- Automatically loads after WTL and Harmony
- Does NOT modify WTL or any other mod's DLL
- Safe to add mid-game
- Safe to remove mid-game
## Credits
- **World Tech Level** by m00nl1ght — https://github.com/m00nl1ght-dev/WorldTechLevel