示例#1
0
        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);
        }
示例#2
0
 public override void OnResearchComplete(ColonyScienceState manager, EResearchCompletionReason reason)
 {
     manager.Colony.TemporaryData.SetAs("pipliz.builderlimit", 25000000);
     ConstructionHelper.SendPacket(manager.Colony);
 }