public void init(int quest) { this.btnOK.Text = SK.Text("GENERIC_OK", "OK"); this.label1.Text = SK.Text("QuestRewardPopup_Reward", "Reward") + " : "; this.Text = base.Title = SK.Text("QuestRewardPopup_Quest_Reward", "Quest Reward"); bool flag = false; List <Quests.QuestReward> list = Quests.getQuestRewards(quest, true, GameEngine.NFI); string str = ""; bool flag2 = true; foreach (Quests.QuestReward reward in list) { if (!flag2) { str = str + ", "; } else { flag2 = false; } str = str + reward.explanation; if ((reward.type == 0x4e24) || (reward.type == 0x4e26)) { flag = true; } } this.lblReward.Text = str; int tutorialID = Tutorials.getQuestsTutorialStage(quest); if (tutorialID == -1) { this.lblInfo.Text = ""; } else { this.lblInfo.Text = Tutorials.getTutorialRewardText(tutorialID); } if (flag) { PlayCardsWindow.resetRewardCardTimer(); } }