Several issues in [AddonGen, most importantly that generated scripts do
not compile.
Compile-breaking (verified by compiling the generator's output):
- Item component emission wrote a trailing comma into the
AddComponent(...) argument list and omitted the terminating semicolon
(CS1525 / CS1002). Now emitted on a single line, matching the
static-tile path:
AddComponent(new AddonComponent(id) { Light = ..., Hue = ... }, x, y, z);
- Generated Deed property referenced the deed type as a method without
`new` (CS1955). Added the missing `new`.
Gather-logic fixes (reasoned from the code):
- Z-range guards were inverted for the tile/item scan (`if (range && ...)`),
so with the range filter off (the default) map tiles and items were
never captured, inconsistent with the Static pass (`if (!range || ...)`).
- "Export Items" was nested inside `if (statics)`, so it did nothing
unless "Export Statics" was also checked. Items now scan independently;
placed Static items are skipped here since they are already captured
(with hue/light) by the GetItemsInBounds<Static> pass, avoiding dupes.
- Swapped the gump's Min/Max labels, which sat over the opposite entries.