Add chatty lathes (#34959)

This commit is contained in:
pathetic meowmeow
2025-04-16 15:29:25 -04:00
committed by GitHub
parent be5bbd4dc3
commit 5d38ae56de
8 changed files with 69 additions and 4 deletions

View File

@@ -119,15 +119,17 @@ public sealed partial class ResearchSystem
}
component.UnlockedTechnologies.Add(technology.ID);
var addedRecipes = new List<string>();
foreach (var unlock in technology.RecipeUnlocks)
{
if (component.UnlockedRecipes.Contains(unlock))
continue;
component.UnlockedRecipes.Add(unlock);
addedRecipes.Add(unlock);
}
Dirty(uid, component);
var ev = new TechnologyDatabaseModifiedEvent();
var ev = new TechnologyDatabaseModifiedEvent(addedRecipes);
RaiseLocalEvent(uid, ref ev);
}