// Token: 0x0600E692 RID: 59026 RVA: 0x003DD970 File Offset: 0x003DBB70 public void InitLifeItem(int biographyId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitLifeItemInt32_hotfix != null) { this.m_InitLifeItemInt32_hotfix.call(new object[] { this, biographyId }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.m_heroBiographyInfo = configDataLoader.GetConfigDataHeroBiographyInfo(biographyId); if (this.m_heroBiographyInfo == null) { return; } this.m_isLock = (projectLPlayerContext.CanUnlockHeroBiography(biographyId) != 0); this.UpdateIsNewValue(); if (this.m_isLock) { this.m_uiStateCtrl.SetToUIState("Lock", false, true); int parm = this.m_heroBiographyInfo.UnlockConditions[0].Parm2; this.m_lockText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Msg_FavorabilityLimit), parm); } else { this.m_uiStateCtrl.SetToUIState("Unlock", false, true); this.m_unlockContentText.text = this.m_heroBiographyInfo.Desc; this.m_unlockTitleText.text = this.m_heroBiographyInfo.Title; bool?isNew = this.IsNew; if (isNew.Value) { this.m_uiStateCtrl.SetToUIState("New", false, true); } bool?isNew2 = this.IsNew; if (isNew2.Value) { LocalAccountConfig.Instance.AddHaveReadHeroBiography(biographyId); } } }