Commit Graph
17 Commits
Author SHA1 Message Date
MagicBotandClaude Opus 5.5 145bb15232 Skip the warehouse delete when the owner destroys warehouse rubble
city.warehouse is already null after a combat destruction, which threw in
DELETE_WAREHOUSE. If a new warehouse was placed it would have deleted that
one instead, so only a live (rank != -1) warehouse clears city.warehouse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 09:20:21 -04:00
MagicBotandClaude Opus 5.5 e64d64bf18 Keep destroyed warehouse contents in memory so the rubble can be looted
destroyOrDerank nulled city.warehouse on destruction, so the loot click
found no warehouse and returned silently. The destroyed Warehouse is now
held in Warehouse.destroyedWarehouses keyed by the rubble building UUID
until it is looted empty, the rubble is destroyed, or the city places a
new warehouse. Contents are not persisted across a reboot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 09:19:40 -04:00
MagicBot 4a217d1a6b Warehouse record needs cleanup 2026-07-25 19:07:30 -04:00
MagicBot f8180a7000 Removed custom exception candy 2024-05-12 13:42:11 -04:00
MagicBot 1cb01b1cce Unused field removed 2024-05-12 11:55:12 -04:00
MagicBot f10141eddb Variable removed from city 2024-04-06 15:45:45 -04:00
MagicBot c1ee6f5b52 Renamed class to not conflict with the java.lang version. 2024-04-05 07:59:44 -04:00
MagicBot 838776c471 Method made static and moved to manager. 2023-10-18 11:30:22 -04:00
MagicBot 9bbdef224d Project cleanup pre merge. 2023-07-15 09:23:48 -04:00
FatBoy cfe8d20d2b added barracks list to city object 2023-04-20 21:23:42 -05:00
MagicBot e6af752c6d Hotfix: bane null check order. 2022-07-27 08:56:45 -04:00
MagicBot afa74ba6fe Optimized imports. 2022-06-23 18:25:45 -04:00
FatBoy 45234d24ca stupid error fixed (!=) 2022-06-05 17:36:30 -05:00
FatBoy d9b5544894 added message to player trying to delete asset during active siege 2022-06-05 17:12:56 -05:00
FatBoy a62617324d added message to player trying to delete asset during active siege 2022-06-05 17:03:44 -05:00
FatBoy 8665011457 can no longer delete building during active bane 2022-06-05 16:56:54 -05:00
MagicBot bbfdde57a3 Initial Repository Push 2022-04-30 09:41:17 -04:00