RND Rework [Death to Techweb] (#16370)
* Techweb rework * more ui work * finishing ui * Finish all the C# logic * the techs + lathes * remove old-tech * mirror-review
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Content.Server.Research.Disk
|
||||
if (!TryComp<ResearchServerComponent>(args.Target, out var server))
|
||||
return;
|
||||
|
||||
_research.AddPointsToServer(server.Owner, component.Points, server);
|
||||
_research.ModifyServerPoints(args.Target.Value, component.Points, server);
|
||||
_popupSystem.PopupEntity(Loc.GetString("research-disk-inserted", ("points", component.Points)), args.Target.Value, args.User);
|
||||
EntityManager.QueueDeleteEntity(uid);
|
||||
}
|
||||
@@ -39,7 +39,7 @@ namespace Content.Server.Research.Disk
|
||||
return;
|
||||
|
||||
component.Points = _prototype.EnumeratePrototypes<TechnologyPrototype>()
|
||||
.Sum(tech => tech.RequiredPoints);
|
||||
.Sum(tech => tech.Cost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user