示例#1
0
            private static void Postfix(ref WoundMonitor __instance)
            {
                __instance.wounded
                .Exit(UnassignClinic);

                __instance.wounded.light
                .ToggleUrge(Db.Get().Urges.Heal)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);

                __instance.wounded.medium
                .ToggleUrge(Db.Get().Urges.Heal)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);

                __instance.wounded.heavy
                .ToggleUrge(Db.Get().Urges.Heal)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);
            }
示例#2
0
            private static void Postfix(ref WoundMonitor __instance)
            {
                __instance.wounded
                .Exit(smi => UnassignClinic(smi));

                __instance.wounded.light
                .ToggleUrge(Db.Get().Urges.RestDueToDisease)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);

                __instance.wounded.medium
                .ToggleUrge(Db.Get().Urges.RestDueToDisease)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);

                __instance.wounded.heavy.ToggleAnims("anim_loco_wounded_kanim", 3f)
                .ToggleUrge(Db.Get().Urges.RestDueToDisease)
                .Update("AutoAssignClinic", ((smi, dt) => AutoAssignClinic(smi)), UpdateRate.SIM_4000ms);
            }