10 public virtual string IdBook
19 public override void OnRead(
Chara c)
23 Tutorial.debugSkip =
false;
25 ExcelData excelData =
new ExcelData();
26 excelData.path = CorePath.DramaData + this.IdBook +
".xlsx";
29 excelData.path = CorePath.DramaDataLocal + this.IdBook +
".xlsx";
31 excelData.BuildList(
"index");
32 ExcelData.Sheet sheet = excelData.sheets[
"index"];
33 List<Dictionary<string, string>> rows = sheet.list;
34 if (!
EClass.debug.allStory)
36 rows.ForeachReverse(delegate(Dictionary<string, string> a)
38 int num = a[
"id"].ToInt();
39 if (!
EClass.player.flags.IsStoryPlayed(num) || num >= 950)
45 EClass.ui.AddLayer<
LayerList>().SetSize(450f, -1f).SetList2<Dictionary<string, string>>(rows, (Dictionary<string, string> a) =>
TraitStoryBook.<OnRead>g__GetText|2_1(a,
"text"), delegate(Dictionary<string, string> a,
ItemGeneral b)
47 EClass.player.flags.PlayStory(this.IdBook, a[
"id"].ToInt(),
true);
48 }, delegate(Dictionary<string, string> a,
ItemGeneral b)
55 internal static string <OnRead>g__GetText|2_1(Dictionary<string, string> dict,
string id)
61 if (!dict.ContainsKey(
id +
"_" + Lang.langCode))
63 return dict[
id +
"_JP"];
65 return dict[
id +
"_" + Lang.langCode];