static void DiggerLimitResearch(AbstractResearchable res, ColonyScienceState manager, EResearchCompletionReason reason) { int current = manager.Colony.TemporaryData.GetAsOrDefault("pipliz.diggerlimit", 0); int next = DiggerLimits[res.GetKey()]; manager.Colony.TemporaryData.SetAs("pipliz.diggerlimit", Math.Max(current, next)); ConstructionHelper.SendPacket(manager.Colony); }
public override void OnResearchComplete(ColonyScienceState manager, EResearchCompletionReason reason) { manager.Colony.TemporaryData.SetAs("pipliz.builderlimit", 25000000); ConstructionHelper.SendPacket(manager.Colony); }