// public static List<RiftStats> DisposedRifts = new List<RiftStats>(); // public static RiftType RiftType; public void StartRift(Enigma.D3.Quest Quest) { RiftType = (RiftType)Quest.x000_QuestSnoId; RiftIsActive = true; CurrentRift = new Rift.RiftStats { StartTick = Quest.x004_CreationTick, Started = DateTime.Now.AddSeconds(-((GameManager.Instance.GameTicks - Quest.x004_CreationTick) / 60)), RiftType = this.RiftType, RiftLevel = -1, Legendary = new List <int>(), Levels = 1, Boss = -1, Difficulty = (Difficulty)GameManagerAccountHelper.Current.DiabloIII.ObjectManager.Storage.x004, }; if (GameManagerAccountHelper.Current.DiabloIII.ObjectManager.Storage._x05C != -1) // GR { CurrentRift.RiftLevel = (GameManagerAccountHelper.Current.DiabloIII.ObjectManager.Storage._x05C + 1); CurrentRift.Difficulty = Difficulty.GreaterRift; TownHelper.UpdateStash(); //RiftType = RiftType.GreaterRift; } Account = GameManagerAccountHelper.Current; SetTimer(); }
public Inventory() { InitializeComponent(); TownHelper.UpdateStash(); Set(); }