コード例 #1
0
        public override void CompPostTick(ref float severityAdjustment)
        {
            base.CompPostTick(ref severityAdjustment);
            float severity            = this.parent.Severity;
            bool  isPassedMinchoTrans = severity >= 0.1f;

            if (isPassedMinchoTrans)
            {
                MinchoGenerator.ConvertToMincho(base.Pawn, this.parent);
            }
        }
コード例 #2
0
        public override void CompPostTick(ref float severityAdjustment)
        {
            base.CompPostTick(ref severityAdjustment);
            float severity     = this.parent.Severity;
            bool  isFinalStage = severity >= 0.75f && !this.finalStage;

            if (isFinalStage)
            {
                this.parent.comps.RemoveAll((HediffComp x) => x is HediffComp_TendDuration);
                this.finalStage = true;
            }
            bool isPassedMinchoTrans = severity >= 1f;

            if (isPassedMinchoTrans)
            {
                MinchoGenerator.ConvertToMincho(base.Pawn, this.parent);
            }
        }