From 631653d94092be71ae3ed4406c0de2e0cb31c5b8 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 27 Nov 2026 01:21:29 +0100 Subject: [PATCH] Delete the applied CommodityShapes batch Co-Authored-By: Claude Sonnet 5.5 --- tools/AetherDb/Economy/CommodityShapes.cs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 tools/AetherDb/Economy/CommodityShapes.cs diff --git a/tools/AetherDb/Economy/CommodityShapes.cs b/tools/AetherDb/Economy/CommodityShapes.cs deleted file mode 100644 index 6a35e15d8..000000000 --- a/tools/AetherDb/Economy/CommodityShapes.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Linq; -using GameCult.Caching; - -// One-shot (aetheria-living-world, cut commodity-shapes): gives every commodity stored with no Shape a one-cell Shape, put back by its -// concrete type. Writes only where Shape is null, so a rerun writes nothing. Deleted once applied. -public sealed class CommodityShapes : EconomyBatch -{ - public override void Author(EconomyAuthor author) - { - var catalog = author.Catalog; - foreach (var item in catalog.GetAll().Where(Recipes.IsCommodity).Where(item => item.Shape == null).ToArray()) - { - item.Shape = new Shape(); - var key = catalog.RefOf(item).Key; - if (item is SimpleCommodityData simple) author.Put(simple, key); - else author.Put((CompoundCommodityData) item, key); - } - } -}