Окно крольчатника: шифт-клик и лимит ячеек производителей (#2)

Тест 14.11: шифт-клик пропадал (RequiredModsOnly=true загонял предмет в
скрытые слоты модов), пачка мешков ложилась в одну ячейку целиком.

- blocks.xml: RequiredModsOnly=false - TryAddMod сразу отказывается,
  шифт-клик идёт к корму и производителям, ничего не исчезает.
- HutchSlots.cs (новый): OverrideStackCount=1 на ячейках катализаторной
  сетки для стекуемого катализатора (мешок MaxCount 10; курица 1 - ваниль
  не задета) - драг-дроп и разбор по одному кладут по одному; префикс
  HandleMoveToPreferredLocation раскладывает шифт-клик по одному в пустые
  ячейки, излишек остаётся в рюкзаке (ванильный TryAddFuel клал весь стек
  и доливал в занятые до MaxCount - StackTransferCount про
  OverrideStackCount не знает).
- rabbithutch cells on|off - выключатель (шифт-клик сразу, лимит - со
  следующего открытия окна).

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-11-14 13:19:16 +03:00
co-authored by Claude Code
parent 9723d38dd6
commit a1e3ce663d
5 changed files with 142 additions and 4 deletions
+8 -2
View File
@@ -166,7 +166,8 @@ namespace RabbitHutch
{
return "rabbithutch - status\n" +
"rabbithutch on|off - off: vanilla grab, the sack goes to the hand like a chicken\n" +
"rabbithutch mods on|off - hutch: hide the empty Tools panel (on by default)";
"rabbithutch mods on|off - hutch: hide the empty Tools panel (on by default)\n" +
"rabbithutch cells on|off - hutch: one rabbit sack per breeder cell, shift-click spreads (on by default)";
}
public override void Execute(List<string> _params, CommandSenderInfo _senderInfo)
@@ -180,8 +181,13 @@ namespace RabbitHutch
{
HutchWindow.HideEmptyMods = _params[1] == "on";
}
if (_params.Count >= 2 && _params[0] == "cells" && (_params[1] == "on" || _params[1] == "off"))
{
HutchSlots.OnePerCell = _params[1] == "on";
}
con.Output("rabbithutch: " + (RabbitGrab.Enabled ? "on - rabbit sack goes to the backpack" : "off - vanilla grab")
+ "; mods panel " + (HutchWindow.HideEmptyMods ? "hidden when empty" : "always shown"));
+ "; mods panel " + (HutchWindow.HideEmptyMods ? "hidden when empty" : "always shown")
+ "; breeders " + (HutchSlots.OnePerCell ? "one sack per cell" : "vanilla stacks"));
}
}
}