Code cleanup: Dirty(Comp) (#26238)
* Replaced uses of Dirty(Component) with Dirty(Uid, Component) Modified some systems (notably pulling-related) to use uids. * Missed a few * Revert changes to pulling * No
This commit is contained in:
@@ -21,7 +21,7 @@ public sealed partial class ResearchSystem
|
||||
primaryDb.UnlockedTechnologies = otherDb.UnlockedTechnologies;
|
||||
primaryDb.UnlockedRecipes = otherDb.UnlockedRecipes;
|
||||
|
||||
Dirty(primaryDb);
|
||||
Dirty(primaryUid, primaryDb);
|
||||
|
||||
var ev = new TechnologyDatabaseModifiedEvent();
|
||||
RaiseLocalEvent(primaryUid, ref ev);
|
||||
@@ -125,7 +125,7 @@ public sealed partial class ResearchSystem
|
||||
continue;
|
||||
component.UnlockedRecipes.Add(unlock);
|
||||
}
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
|
||||
var ev = new TechnologyDatabaseModifiedEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
@@ -144,7 +144,7 @@ public sealed partial class ResearchSystem
|
||||
return;
|
||||
|
||||
component.UnlockedRecipes.Add(recipe);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
|
||||
var ev = new TechnologyDatabaseModifiedEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
@@ -185,6 +185,6 @@ public sealed partial class ResearchSystem
|
||||
component.SupportedDisciplines = new List<string>();
|
||||
component.UnlockedTechnologies = new List<string>();
|
||||
component.UnlockedRecipes = new List<string>();
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user