A RimWorld 1.6 mod that replaces the vanilla "Kill" debug tool with an intelligent version that prioritizes targets based on threat level.
Instead of killing everything under your mouse cursor indiscriminately, this mod makes the debug kill tool smart:
- Only kills one target per click - the most relevant one
- Follows a logical priority system - enemies first, colonists last
- Shows what was killed and why - helpful debug logging
- Maintains debug tool permissions - works exactly like the original for what it targets
- 🎯 Hostile pawns - Raiders, manhunters, hostile faction members
- 🤖 Mechanoids - Both hostile and inactive mechanoids
- 🐺 Wild animals - Including manhunters and regular wildlife
- 📦 Items - Weapons, apparel, resources, dropped items
- 🏗️ Buildings - Turrets, doors, furniture, structures
- 💀 Corpses - Dead bodies and remains
- 🌿 Other - Filth, plants, debris, neutral pawns
- 👥 Colonists & Tamed - Player pawns and tamed animals (absolute last resort)
- Enable Developer Mode (
F12or Options menu) - Open Debug Actions (
Ctrl+F12) - Use the "Kill" tool as normal - it now intelligently prioritizes targets!
- Configure the tool via Options → Mod Settings → Prioritized Kill Tool
The mod includes comprehensive settings accessible through the mod options:
Target Type Toggles:
- Enable/disable each priority category individually
- Useful for focusing on specific types of cleanup
- Safety option to disable colonist targeting entirely
Radius Mode:
- Toggle between single-target mode (default) and radius mode
- Adjustable radius from 0.5 to 10 tiles
- Kill all valid targets within the specified area
General Options:
- Toggle log messages on/off
- Prioritize by distance when targets have same priority
- Reset all settings to defaults
The tool tooltip remains "Kill" but the behavior is completely replaced.
- Download/clone this mod to your RimWorld Mods folder
- Enable it in the mod list
- No restart required - works immediately
- Harmony patch replaces
DebugToolsGeneral.Kill()method - Uses
Selector.SelectableObjectsAt()to find all targets at mouse position - Sorts by priority and kills only the highest priority target
- Maintains original debug permissions through reflection
- RimWorld 1.6 - Built and tested for current version
- Mod compatibility - Should work with any other mods
- No performance impact - Only runs when using the debug kill tool
This mod was created by ProgrammerLily based on the specifications in Mod_Base.md. The implementation prioritizes safety (colonists last) while maintaining the power of the original debug tool for development purposes.
For technical details, see IMPLEMENTATION_SUMMARY.md.