Пример #1
0
        public override void Tick()
        {
            var state = TendDuration.GetInfectionState();

            if (state == InfectionState.None)
            {
                base.Tick();
                return;
            }

            if (state == InfectionState.Infected)
            {
                Tools.QueueConvertToZombie(pawn);
                return;
            }

            if (TendDuration.IsTended && (state >= InfectionState.BittenHarmless && state <= InfectionState.Infecting))
            {
                if (Severity > 0f)
                {
                    Severity = Math.Max(0f, Severity - 0.001f);
                }
            }
            else
            {
                base.Tick();
            }
        }