Пример #1
0
        void Heal(PlayerSession session, bool health = true)
        {
            EntityStats stats = session.WorldPlayerEntity.GetComponent <EntityStats>();

            stats.GetFluidEffect(effect().TemperatureDelta).Reset(true);
            stats.GetFluidEffect(effect().InternalTemperature).Reset(true);
            stats.GetFluidEffect(effect().ExternalTemperature).Reset(true);
            stats.GetFluidEffect(effect().Toxin).SetValue(0f);
            if (health)
            {
                stats.GetFluidEffect(effect().Health).SetValue(100f);
            }
            foreach (var d in stats.GetBinaryEffects())
            {
                d.Value.Remove();
            }
        }