public void UpdateText() { EntityDef def; CardFlair flair; if (CraftingManager.Get().GetShownCardInfo(out def, out flair)) { TAG_RARITY rarity = def.GetRarity(); TAG_CARD_SET cardSet = def.GetCardSet(); if (cardSet == TAG_CARD_SET.CORE) { this.m_rarityLabel.Text = string.Empty; } else { this.m_rarityLabel.Text = GameStrings.GetRarityText(rarity); } this.AssignRarityColors(rarity, cardSet); this.m_rarityGem.SetRarityGem(rarity, cardSet); this.m_setName.Text = GameStrings.GetCardSetName(cardSet); object[] args = new object[] { def.GetArtistName() }; this.m_artistName.Text = GameStrings.Format("GLUE_COLLECTION_ARTIST", args); string str = "<color=#000000ff>" + def.GetFlavorText() + "</color>"; NetCache.CardValue cardValue = CraftingManager.Get().GetCardValue(def.GetCardId(), flair.Premium); if ((cardValue != null) && cardValue.Nerfed) { if (!string.IsNullOrEmpty(str)) { str = str + "\n\n"; } str = str + GameStrings.Get("GLUE_COLLECTION_RECENTLY_NERFED"); } this.m_flavorText.Text = str; } }