// Token: 0x06000002 RID: 2 RVA: 0x000020A8 File Offset: 0x000002A8 public void Update() { try { if (UserConfig.Instance.IsAutoShoesHide) { List <Maid> visibleMaidList = CommonUtil.GetVisibleMaidList(); if (visibleMaidList.Count != 0) { string bgname = GameMain.Instance.BgMgr.GetBGName(); if (!(this._lastBGName == bgname) || this._lastMaidCount != visibleMaidList.Count) { if (Config.Instance.TargetBGList.Contains(bgname, StringComparer.OrdinalIgnoreCase)) { using (List <Maid> .Enumerator enumerator = visibleMaidList.GetEnumerator()) { while (enumerator.MoveNext()) { Maid maid = enumerator.Current; if (maid.IsAllProcPropBusy) { return; } if (maid.GetProp(MPN.shoes).strTempFileName != "_i_shoes_del.menu") { Menu.SetMaidItemTemp(maid, "_i_shoes_del.menu", true); maid.AllProcProp(); } } goto IL_189; } } foreach (Maid maid2 in visibleMaidList) { if (maid2.IsAllProcPropBusy) { return; } bool flag = true; foreach (MPN mpn in this.checkMPNs) { MaidProp prop = maid2.GetProp(mpn); if (prop.strFileName == prop.strTempFileName) { flag = false; break; } } if (flag && maid2.GetProp(MPN.shoes).strTempFileName == "_i_shoes_del.menu") { maid2.ResetProp(MPN.shoes, false); maid2.AllProcProp(); } } IL_189: this._lastBGName = bgname; this._lastMaidCount = visibleMaidList.Count; } } } } catch (Exception) { } }