public void AddVase(AncientClayVase vase) { if (Vases == null) { Vases = new List <AncientClayVase>(); } if (!Vases.Contains(vase)) { Vases.Add(vase); } }
public void RemoveVase(AncientClayVase vase) { if (Vases != null) { if (Vases.Contains(vase)) { Vases.Remove(vase); } if (TreasuresOfDoomEvent.Instance.Running && Vases.Count < VaseCount) { Timer.DelayCall(TimeSpan.FromMinutes(Utility.RandomMinMax(MinSpawn, MaxSpawn)), () => { CreateVases(1); }); } } }
public void RemoveVase(AncientClayVase vase) { if (Vases != null) { if (Vases.Contains(vase)) { Vases.Remove(vase); } if (PointsSystem.TreasuresOfDoom.InSeason && Vases.Count < VaseCount) { Timer.DelayCall(TimeSpan.FromMinutes(Utility.RandomMinMax(MinSpawn, MaxSpawn)), () => { CreateVases(1); }); } } }