示例#1
0
        public static void OnNPCDied(NPC.NPCBase nPC)
        {
            var cs = ColonyState.GetColonyState(nPC.Colony);

            if (!DieCount.ContainsKey(nPC.Colony))
            {
                DieCount.Add(nPC.Colony, new List <double>());
            }

            DieCount[nPC.Colony].Add(TimeCycle.TotalTime.Value.TotalSeconds + cs.Difficulty.TimeUnhappyAfterColonistDeathSeconds);
        }
        public static void OnNPCDied(NPC.NPCBase nPC)
        {
            var cs = ColonyState.GetColonyState(nPC.Colony);

            if (cs.Difficulty.Name == GameDifficulty.Normal.Name)
            {
                return;
            }

            if (!DieCount.ContainsKey(nPC.Colony))
            {
                DieCount.Add(nPC.Colony, new List <double>());
            }

            DieCount[nPC.Colony].Add(TimeCycle.TotalHours + 24);
        }