ninja 2 electric boogaloo (#15534)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -169,6 +169,18 @@ public abstract class SharedResearchSystem : EntitySystem
|
||||
if (prototype.Tier < discipline.LockoutTier)
|
||||
return;
|
||||
component.MainDiscipline = prototype.Discipline;
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clear all unlocked technologies from the database.
|
||||
/// </summary>
|
||||
public void ClearTechs(EntityUid uid, TechnologyDatabaseComponent? comp = null)
|
||||
{
|
||||
if (!Resolve(uid, ref comp) || comp.UnlockedTechnologies.Count == 0)
|
||||
return;
|
||||
|
||||
comp.UnlockedTechnologies.Clear();
|
||||
Dirty(uid, comp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user