Esempio n. 1
0
    public virtual void OnDeath(GClass218 gclass218_0)
    {
        int deaths = this.Deaths;

        this.Deaths = deaths + 1;
        MapProfile mapProfile  = this.Context.MapProfile;
        int        num         = (mapProfile != null) ? mapProfile.MaxDeaths : 0;
        MapProfile mapProfile2 = this.Context.MapProfile;
        int        num2        = (mapProfile2 != null) ? mapProfile2.MapCooldown : 1;

        if (num > 0 && this.Deaths >= num)
        {
            TimeSpan timeSpan_ = TimeSpan.FromMinutes((double)num2);
            this.SetCooldown(timeSpan_, true);
        }
    }
Esempio n. 2
0
        internal void method_7(GClass218 gclass218_0)
        {
            bool isInitialized = this.Hero.IsInitialized;

            this.Hero.Hp = 0;
            this.Hero.Clear();
            this.Hero.IsInitialized = false;
            this.LastDied           = DateTimeOffset.Now;
            this.IsLoggedOut        = true;
            GameManager.GClass77.GDelegate2 heroDied = this.HeroDied;
            if (heroDied == null)
            {
                return;
            }
            heroDied(this, this.Hero, gclass218_0, isInitialized);
        }
Esempio n. 3
0
 public void Run(GClass218 e)
 {
     ConnectionManager.Instance.Value.Game.Hero.Pet.method_17(e);
 }
Esempio n. 4
0
 public void method_17(GClass218 gclass218_0)
 {
     this.IsAvailable = true;
     this.Fuel        = gclass218_0.int_0;
 }