public void AddSystemInfluence(long systemAddress, int amount, ulong missionId)
            {
                SystemInfluence si;

                if (!Systems.TryGetValue(systemAddress, out si))
                {
                    si = new SystemInfluence(systemAddress, amount, missionId);
                    Systems.Add(systemAddress, si);
                }
                else
                {
                    si.AddInfluence(amount, missionId);
                }
            }
Esempio n. 2
0
            public void AddSystemInfluence(long systemAddress, int amount, ulong missionId)
            {
                SystemInfluence si;

                if (!SystemsWithInfluence.TryGetValue(systemAddress, out si))
                {
                    si = new SystemInfluence(systemAddress, amount, missionId);
                    SystemsWithInfluence.Add(systemAddress, si);
                    //System.Diagnostics.Debug.WriteLine($"Faction sys influence made for {systemAddress}");
                }
                else
                {
                    si.AddInfluence(amount, missionId);
                }
            }