12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216 |
- using System;
- using System.Collections.Generic;
- using MaidStatus;
- using MaidStatus.Old;
- using UnityEngine;
- using wf;
- namespace Yotogis
- {
- public static class Skill
- {
- public static void CreateData()
- {
- if (Skill.skill_data_id_list_ != null)
- {
- return;
- }
- Skill.enabledSkillIds = new HashSet<int>();
- CsvCommonIdManager.ReadEnabledIdList(CsvCommonIdManager.FileSystemType.Normal, true, "yotogi_skill_enabled_list", ref Skill.enabledSkillIds);
- Dictionary<int, int[]> dictionary = new Dictionary<int, int[]>();
- using (AFileBase afileBase = GameUty.FileSystem.FileOpen("yotogi_skill_command_data.nei"))
- {
- using (CsvParser csvParser = new CsvParser())
- {
- bool condition = csvParser.Open(afileBase);
- NDebug.Assert(condition, "yotogi_skill_command_data.nei\nopen failed.");
- for (int i = 0; i < csvParser.max_cell_y; i++)
- {
- if (csvParser.IsCellToExistData(0, i))
- {
- NDebug.Assert(csvParser.IsCellToExistData(0, i + 1), "[2.1]yotogi_skill_command_data.nei\n" + csvParser.GetCellAsString(0, i) + "のスキルID設定がありません");
- int cellAsInteger = csvParser.GetCellAsInteger(0, i + 1);
- if (Skill.enabledSkillIds.Contains(cellAsInteger))
- {
- NDebug.Assert(!dictionary.ContainsKey(cellAsInteger), "コマンド設定\n" + cellAsInteger + "のスキルID設定が重複しています");
- Dictionary<int, int[]> dictionary2 = dictionary;
- int key = cellAsInteger;
- int[] array = new int[2];
- array[0] = i;
- dictionary2.Add(key, array);
- }
- i++;
- }
- }
- }
- }
- using (AFileBase afileBase2 = GameUty.FileSystem.FileOpen("yotogi_skill_command_status.nei"))
- {
- using (CsvParser csvParser2 = new CsvParser())
- {
- bool condition2 = csvParser2.Open(afileBase2);
- NDebug.Assert(condition2, "yotogi_skill_command_status.nei\nopen failed.");
- string str = string.Empty;
- for (int j = 0; j < csvParser2.max_cell_y; j++)
- {
- if (csvParser2.IsCellToExistData(0, j))
- {
- NDebug.Assert(csvParser2.IsCellToExistData(0, j + 1), "[2.1]yotogi_skill_command_status.nei\n" + csvParser2.GetCellAsString(0, j) + "のスキルID設定がありません");
- if (Skill.enabledSkillIds.Contains(csvParser2.GetCellAsInteger(0, j + 1)))
- {
- int cellAsInteger2 = csvParser2.GetCellAsInteger(0, j + 1);
- str = csvParser2.GetCellAsString(0, j);
- NDebug.Assert(dictionary.ContainsKey(cellAsInteger2), str + "の情報は見つかりませんでした");
- dictionary[cellAsInteger2][1] = j;
- }
- j++;
- }
- }
- }
- }
- Skill.skill_data_id_list_ = new SortedDictionary<int, Skill.Data>[8];
- for (int k = 0; k < Skill.skill_data_id_list_.Length; k++)
- {
- Skill.skill_data_id_list_[k] = new SortedDictionary<int, Skill.Data>();
- }
- HashSet<int> hashSet = new HashSet<int>();
- using (AFileBase afileBase3 = GameUty.FileSystem.FileOpen("yotogi_skill_acquisition.nei"))
- {
- using (CsvParser csvParser3 = new CsvParser())
- {
- bool condition3 = csvParser3.Open(afileBase3);
- NDebug.Assert(condition3, "yotogi_skill_acquisition.nei\nopen failed.");
- using (AFileBase afileBase4 = GameUty.FileSystem.FileOpen("yotogi_skill_list.nei"))
- {
- using (CsvParser csvParser4 = new CsvParser())
- {
- condition3 = csvParser4.Open(afileBase4);
- NDebug.Assert(condition3, "yotogi_skill_list.nei\nopen failed.");
- for (int l = 1; l < csvParser4.max_cell_y; l++)
- {
- if (Skill.enabledSkillIds.Contains(csvParser4.GetCellAsInteger(0, l)))
- {
- Skill.Data data = new Skill.Data(csvParser4, csvParser3, l, dictionary);
- if (!hashSet.Add(data.id))
- {
- NDebug.Assert("夜伽スキルID[" + data.id.ToString() + "]はすでに登録されています", false);
- }
- else
- {
- Skill.skill_data_id_list_[(int)data.category].Add(data.id, data);
- }
- }
- }
- }
- }
- }
- }
- Skill.Old.CreateData();
- foreach (SortedDictionary<int, Skill.Data> sortedDictionary in Skill.skill_data_id_list_)
- {
- foreach (KeyValuePair<int, Skill.Data> keyValuePair in sortedDictionary)
- {
- Skill.Data value = keyValuePair.Value;
- Skill.Old.Data data2 = Skill.Old.Get(value.id);
- if (data2 != null)
- {
- value.SetOldSkillData(data2);
- data2.SetNewSkillData(value);
- }
- if (0 <= value.connect_faint_skill_id)
- {
- value.SetConnectFaintSkill(Skill.Get(value.connect_faint_skill_id));
- }
- }
- }
- }
- public static bool Contains(int id)
- {
- foreach (SortedDictionary<int, Skill.Data> sortedDictionary in Skill.skill_data_id_list_)
- {
- if (sortedDictionary.ContainsKey(id))
- {
- return true;
- }
- }
- return false;
- }
- public static Skill.Data Get(int id)
- {
- foreach (SortedDictionary<int, Skill.Data> sortedDictionary in Skill.skill_data_id_list_)
- {
- if (sortedDictionary.ContainsKey(id))
- {
- return sortedDictionary[id];
- }
- }
- return null;
- }
- public static List<Skill.Data> GetLearnPossibleSkills(MaidStatus.Status status)
- {
- List<Skill.Data> list = new List<Skill.Data>();
- ReadOnlySortedDictionary<int, YotogiSkillData> datas = status.yotogiSkill.datas;
- for (int i = 0; i < Skill.skill_data_id_list_.Length; i++)
- {
- foreach (KeyValuePair<int, Skill.Data> keyValuePair in Skill.skill_data_id_list_[i])
- {
- if (!datas.ContainsKey(keyValuePair.Key) && keyValuePair.Value.IsCheckGetSkill(status, false))
- {
- list.Add(keyValuePair.Value);
- }
- }
- }
- return list;
- }
- public static SortedDictionary<int, Skill.Data> GetCategorySkillDataList(Yotogi.Category category)
- {
- return Skill.skill_data_id_list_[(int)category];
- }
- public static SortedDictionary<int, Skill.Data>[] skill_data_list
- {
- get
- {
- return Skill.skill_data_id_list_;
- }
- }
- private static HashSet<int> enabledSkillIds;
- private static SortedDictionary<int, Skill.Data>[] skill_data_id_list_;
- public static class Old
- {
- public static void CreateData()
- {
- if (Skill.Old.skill_data_id_list_ != null)
- {
- return;
- }
- AFileSystemBase fileSystem = GameUty.FileSystemOld;
- List<string> pathListOld = GameUty.PathListOld;
- if (!GameUty.IsEnabledCompatibilityMode)
- {
- Skill.Old.skill_data_id_list_ = new SortedDictionary<int, Skill.Old.Data>[0];
- return;
- }
- HashSet<int> enabled_id_list = new HashSet<int>();
- Action<string> action = delegate(string file_name)
- {
- file_name += ".nei";
- if (!fileSystem.IsExistentFile(file_name))
- {
- return;
- }
- using (AFileBase afileBase5 = fileSystem.FileOpen(file_name))
- {
- using (CsvParser csvParser5 = new CsvParser())
- {
- bool condition4 = csvParser5.Open(afileBase5);
- NDebug.Assert(condition4, file_name + "\nopen failed.");
- for (int num = 1; num < csvParser5.max_cell_y; num++)
- {
- if (csvParser5.IsCellToExistData(0, num))
- {
- int cellAsInteger3 = csvParser5.GetCellAsInteger(0, num);
- if (!enabled_id_list.Contains(cellAsInteger3))
- {
- enabled_id_list.Add(cellAsInteger3);
- }
- }
- }
- }
- }
- };
- action("yotogi_skil_list");
- for (int i = 0; i < pathListOld.Count; i++)
- {
- action("yotogi_skil_list_" + pathListOld[i]);
- }
- Dictionary<int, int[]> dictionary = new Dictionary<int, int[]>();
- using (AFileBase afileBase = fileSystem.FileOpen("yotogi_skil_command_data.nei"))
- {
- using (CsvParser csvParser = new CsvParser())
- {
- bool condition = csvParser.Open(afileBase);
- NDebug.Assert(condition, "yotogi_skil_command_data.nei\nopen failed.");
- for (int j = 0; j < csvParser.max_cell_y; j++)
- {
- if (csvParser.IsCellToExistData(0, j))
- {
- NDebug.Assert(csvParser.IsCellToExistData(0, j + 1), "[2.0]yotogi_skil_command_data.nei\n" + csvParser.GetCellAsString(0, j) + "のスキルID設定がありません");
- int cellAsInteger = csvParser.GetCellAsInteger(0, j + 1);
- if (enabled_id_list.Contains(cellAsInteger))
- {
- NDebug.Assert(!dictionary.ContainsKey(cellAsInteger), "コマンド設定\n" + cellAsInteger + "のスキルID設定が重複しています");
- Dictionary<int, int[]> dictionary2 = dictionary;
- int key = cellAsInteger;
- int[] array = new int[2];
- array[0] = j;
- dictionary2.Add(key, array);
- }
- j++;
- }
- }
- }
- }
- using (AFileBase afileBase2 = fileSystem.FileOpen("yotogi_skil_command_status.nei"))
- {
- using (CsvParser csvParser2 = new CsvParser())
- {
- bool condition2 = csvParser2.Open(afileBase2);
- NDebug.Assert(condition2, "yotogi_skil_command_status.nei\nopen failed.");
- string str = string.Empty;
- for (int k = 0; k < csvParser2.max_cell_y; k++)
- {
- if (csvParser2.IsCellToExistData(0, k))
- {
- NDebug.Assert(csvParser2.IsCellToExistData(0, k + 1), "[2.0]yotogi_skil_command_status.nei\n" + csvParser2.GetCellAsString(0, k) + "のスキルID設定がありません");
- if (enabled_id_list.Contains(csvParser2.GetCellAsInteger(0, k + 1)))
- {
- int cellAsInteger2 = csvParser2.GetCellAsInteger(0, k + 1);
- str = csvParser2.GetCellAsString(0, k);
- NDebug.Assert(dictionary.ContainsKey(cellAsInteger2), str + "の情報は見つかりませんでした");
- dictionary[cellAsInteger2][1] = k;
- }
- k++;
- }
- }
- }
- }
- Skill.Old.skill_data_id_list_ = new SortedDictionary<int, Skill.Old.Data>[9];
- for (int l = 0; l < Skill.Old.skill_data_id_list_.Length; l++)
- {
- Skill.Old.skill_data_id_list_[l] = new SortedDictionary<int, Skill.Old.Data>();
- }
- HashSet<int> hashSet = new HashSet<int>();
- using (AFileBase afileBase3 = fileSystem.FileOpen("yotogi_skil_acquisition.nei"))
- {
- using (CsvParser csvParser3 = new CsvParser())
- {
- bool condition3 = csvParser3.Open(afileBase3);
- NDebug.Assert(condition3, "yotogi_skil_acquisition.nei\nopen failed.");
- using (AFileBase afileBase4 = fileSystem.FileOpen("yotogi_skil_detail.nei"))
- {
- using (CsvParser csvParser4 = new CsvParser())
- {
- condition3 = csvParser4.Open(afileBase4);
- NDebug.Assert(condition3, "yotogi_skil_detail.nei\nopen failed.");
- for (int m = 1; m < csvParser4.max_cell_y; m++)
- {
- if (enabled_id_list.Contains(csvParser4.GetCellAsInteger(0, m)))
- {
- Skill.Old.Data data = new Skill.Old.Data(csvParser4, csvParser3, m, dictionary);
- if (!hashSet.Add(data.id))
- {
- NDebug.Assert("夜伽スキルID[" + data.id.ToString() + "]はすでに登録されています", false);
- }
- else
- {
- Skill.Old.skill_data_id_list_[(int)data.category].Add(data.id, data);
- }
- }
- }
- }
- }
- }
- }
- Dictionary<YotogiOld.Stage, string> enabled_stage_dic = new Dictionary<YotogiOld.Stage, string>();
- Action<string> action2 = delegate(string file_name)
- {
- file_name += ".nei";
- if (!fileSystem.IsExistentFile(file_name))
- {
- return;
- }
- using (AFileBase afileBase5 = fileSystem.FileOpen(file_name))
- {
- using (CsvParser csvParser5 = new CsvParser())
- {
- bool condition4 = csvParser5.Open(afileBase5);
- NDebug.Assert(condition4, file_name + "\nopen failed.");
- for (int num = 1; num < csvParser5.max_cell_y; num++)
- {
- if (csvParser5.IsCellToExistData(0, num))
- {
- string cellAsString = csvParser5.GetCellAsString(0, num);
- string cellAsString2 = csvParser5.GetCellAsString(1, num);
- YotogiOld.Stage stage = YotogiOld.Stage.MAX;
- try
- {
- stage = (YotogiOld.Stage)Enum.Parse(typeof(YotogiOld.Stage), cellAsString);
- }
- catch
- {
- NDebug.Assert(cellAsString + " enum error", false);
- }
- if (stage != YotogiOld.Stage.MAX && !enabled_stage_dic.ContainsKey(stage))
- {
- enabled_stage_dic.Add(stage, cellAsString2);
- }
- }
- }
- }
- }
- };
- action2("yotogi_stage_list");
- for (int n = 0; n < pathListOld.Count; n++)
- {
- action2("yotogi_stage_list_" + pathListOld[n]);
- }
- }
- public static bool Contains(int id)
- {
- foreach (SortedDictionary<int, Skill.Old.Data> sortedDictionary in Skill.Old.skill_data_id_list_)
- {
- if (sortedDictionary.ContainsKey(id))
- {
- return true;
- }
- }
- return false;
- }
- public static Skill.Old.Data Get(int id)
- {
- foreach (SortedDictionary<int, Skill.Old.Data> sortedDictionary in Skill.Old.skill_data_id_list_)
- {
- if (sortedDictionary.ContainsKey(id))
- {
- return sortedDictionary[id];
- }
- }
- return null;
- }
- public static List<Skill.Old.Data> GetLearnPossibleSkills(MaidStatus.Status status)
- {
- List<Skill.Old.Data> list = new List<Skill.Old.Data>();
- ReadOnlySortedDictionary<int, YotogiSkillData> oldDatas = status.yotogiSkill.oldDatas;
- for (int i = 0; i < Skill.Old.skill_data_id_list_.Length; i++)
- {
- foreach (KeyValuePair<int, Skill.Old.Data> keyValuePair in Skill.Old.skill_data_id_list_[i])
- {
- if (!oldDatas.ContainsKey(keyValuePair.Key) && keyValuePair.Value.IsCheckGetSkill(status, false))
- {
- list.Add(keyValuePair.Value);
- }
- }
- }
- return list;
- }
- public static SortedDictionary<int, Skill.Old.Data> GetCategorySkillDataList(YotogiOld.Category category)
- {
- return Skill.Old.skill_data_id_list_[(int)category];
- }
- public static SortedDictionary<int, Skill.Old.Data>[] skill_data_list
- {
- get
- {
- return Skill.Old.skill_data_id_list_;
- }
- }
- private static SortedDictionary<int, Skill.Old.Data>[] skill_data_id_list_;
- public class Data
- {
- public Data(CsvParser csv, CsvParser csv_acq, int y, Dictionary<int, int[]> command_data_cell_dic)
- {
- int num = 0;
- this.id = csv.GetCellAsInteger(num++, y);
- num++;
- string cellAsString = csv.GetCellAsString(num++, y);
- try
- {
- this.category = (YotogiOld.Category)Enum.Parse(typeof(YotogiOld.Category), cellAsString);
- }
- catch (ArgumentException)
- {
- NDebug.Assert("Yotogi.Category\nenum parse error.[" + cellAsString + "]", false);
- }
- this.name = csv.GetCellAsString(num++, y);
- this.icon_file_name = csv.GetCellAsString(num++, y);
- this.start_call_file = csv.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(this.start_call_file))
- {
- this.start_call_file += ".ks";
- }
- this.start_call_file2 = csv.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(this.start_call_file2))
- {
- this.start_call_file2 += ".ks";
- }
- this.exec_need_hp = csv.GetCellAsInteger(num++, y);
- this.add_yotogi_class_exp = csv.GetCellAsInteger(num++, y);
- int cellAsInteger = csv.GetCellAsInteger(num++, y);
- int cellAsInteger2 = csv.GetCellAsInteger(num++, y);
- this.skill_exp_table = new int[3];
- this.skill_exp_table[1] = cellAsInteger;
- this.skill_exp_table[2] = cellAsInteger2;
- cellAsString = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString) || cellAsString == "×")
- {
- this.ban_id_array = null;
- }
- else if (cellAsString == "○")
- {
- this.ban_id_array = new int[1];
- this.ban_id_array[0] = this.id;
- }
- else
- {
- string[] array = cellAsString.Split(new char[]
- {
- ','
- });
- this.ban_id_array = new int[array.Length];
- for (int i = 0; i < this.ban_id_array.Length; i++)
- {
- this.ban_id_array[i] = int.Parse(array[i]);
- }
- }
- this.player_num = csv.GetCellAsInteger(num++, y);
- if (this.player_num <= 0)
- {
- this.player_num = 1;
- }
- this.exec_seikeiken = new Dictionary<Seikeiken, bool>();
- Seikeiken[] array2 = new Seikeiken[]
- {
- Seikeiken.No_No,
- Seikeiken.Yes_No,
- Seikeiken.No_Yes,
- Seikeiken.Yes_Yes
- };
- for (int j = 0; j < array2.Length; j++)
- {
- if (csv.GetCellAsString(num++, y) == "○")
- {
- this.exec_seikeiken.Add(array2[j], true);
- }
- }
- for (int k = 0; k < 5; k++)
- {
- num++;
- }
- this.drunk_skill = (csv.GetCellAsString(num++, y) == "○");
- this.osioki_skill = (csv.GetCellAsString(num++, y) == "○");
- this.propensity_type = null;
- string cellAsString2 = csv.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(cellAsString2))
- {
- this.propensity_type = Propensity.GetData(cellAsString2);
- }
- this.exec_stage = new Dictionary<YotogiOld.Stage, bool>();
- while (csv.max_cell_x > num)
- {
- string cellAsString3 = csv.GetCellAsString(num, 0);
- string cellAsString4 = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString3))
- {
- IL_3BA:
- NDebug.Assert(command_data_cell_dic.ContainsKey(this.id), this.name + "の情報は見つかりませんでした");
- int[] array3 = command_data_cell_dic[this.id];
- this.command_basic_cell_y = array3[0];
- this.command_status_cell_y = array3[1];
- num = 0;
- int cellAsInteger3 = csv_acq.GetCellAsInteger(num++, y);
- num++;
- NDebug.Assert(cellAsInteger3 == this.id, "スキル取得条件とスキル詳細のIDラインが一致していません");
- this.getcondition_data = new Skill.Old.Data.GetConditionData();
- this.getcondition_data.seikeiken = new bool[4];
- for (int l = 0; l < this.getcondition_data.seikeiken.Length; l++)
- {
- this.getcondition_data.seikeiken[l] = (csv_acq.GetCellAsString(num++, y) == "○");
- }
- this.getcondition_data.inyoku = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.m_value = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.hentai = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.housi = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.lovely = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.elegance = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.charm = csv_acq.GetCellAsInteger(num++, y);
- num += 2;
- if (csv_acq.IsCellToExistData(num, y) && csv_acq.IsCellToExistData(1, y))
- {
- this.getcondition_data.yotogi_class = YotogiClass.GetData(csv_acq.GetCellAsString(num++, y));
- this.getcondition_data.yotogi_class_level = csv_acq.GetCellAsInteger(num++, y);
- }
- else
- {
- num += 2;
- }
- this.getcondition_data.marriage = (csv_acq.GetCellAsString(num++, y) == "○");
- this.getcondition_data.requestPersonals = new MaidStatus.Old.Personal[0];
- string cellAsString5 = csv_acq.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(cellAsString5))
- {
- string[] array4 = cellAsString5.Split(new char[]
- {
- ','
- });
- List<MaidStatus.Old.Personal> list = new List<MaidStatus.Old.Personal>();
- foreach (string text in array4)
- {
- try
- {
- MaidStatus.Old.Personal item = (MaidStatus.Old.Personal)Enum.Parse(typeof(MaidStatus.Old.Personal), text);
- list.Add(item);
- }
- catch (Exception)
- {
- Debug.LogWarning("Yotogi.SkillData::token_textのenum変換に失敗しました:" + text);
- }
- }
- if (0 < list.Count)
- {
- this.getcondition_data.requestPersonals = list.ToArray();
- }
- }
- return;
- }
- if (cellAsString4 == "○")
- {
- YotogiOld.Stage key = YotogiOld.Stage.サロン;
- try
- {
- key = (YotogiOld.Stage)Enum.Parse(typeof(YotogiOld.Stage), cellAsString3);
- }
- catch
- {
- NDebug.Assert("Yotogi.Stage - enum parse error.[" + cellAsString3 + "]", false);
- }
- this.exec_stage.Add(key, true);
- }
- }
- goto IL_3BA;
- }
- public void SetNewSkillData(Skill.Data data)
- {
- this.newData = data;
- }
- public bool IsExecMaid(MaidStatus.Status maid_status)
- {
- if (!this.IsExecRelation(maid_status.relation) || !this.IsExecSeikeiken(maid_status.seikeiken))
- {
- return false;
- }
- if (this.drunk_skill)
- {
- if (maid_status.OldStatus.condition != Condition.Drunk)
- {
- return false;
- }
- }
- else if (this.osioki_skill)
- {
- if (maid_status.OldStatus.condition != Condition.Osioki)
- {
- return false;
- }
- }
- else
- {
- if (maid_status.OldStatus.condition != Condition.Null)
- {
- return false;
- }
- if (0 < this.getcondition_data.yotogi_class_level && !YotogiClass.IsEnabled(this.getcondition_data.yotogi_class.id))
- {
- return false;
- }
- }
- return true;
- }
- public bool IsExecMaidForFreeMode(MaidStatus.Status maid_status)
- {
- return this.IsExecRelation(maid_status.relation) && this.IsExecSeikeiken(maid_status.seikeiken) && (0 >= this.getcondition_data.yotogi_class_level || YotogiClass.IsEnabled(this.getcondition_data.yotogi_class.id));
- }
- public bool IsExecRelation(MaidStatus.Relation check_condition)
- {
- return true;
- }
- public bool IsExecSeikeiken(Seikeiken check_seikeiken)
- {
- return this.exec_seikeiken.ContainsKey(check_seikeiken);
- }
- public bool IsExecPersonal(MaidStatus.Old.Personal personal)
- {
- if (this.getcondition_data.requestPersonals.Length == 0)
- {
- return true;
- }
- foreach (MaidStatus.Old.Personal personal2 in this.getcondition_data.requestPersonals)
- {
- if (personal2 == personal)
- {
- return true;
- }
- }
- return false;
- }
- public bool IsCheckGetSkill(MaidStatus.Status status, bool is_seikeiken_check)
- {
- if (is_seikeiken_check && !this.getcondition_data.seikeiken[(int)status.seikeiken])
- {
- return false;
- }
- if (this.getcondition_data.marriage && (status.OldStatus == null || !status.OldStatus.isMarriage))
- {
- return false;
- }
- if (status.inyoku < this.getcondition_data.inyoku)
- {
- return false;
- }
- if (status.mvalue < this.getcondition_data.m_value)
- {
- return false;
- }
- if (status.hentai < this.getcondition_data.hentai)
- {
- return false;
- }
- if (status.housi < this.getcondition_data.housi)
- {
- return false;
- }
- if (status.lovely < this.getcondition_data.lovely)
- {
- return false;
- }
- if (status.elegance < this.getcondition_data.elegance)
- {
- return false;
- }
- if (status.charm < this.getcondition_data.charm)
- {
- return false;
- }
- if (this.getcondition_data.requestPersonals.Length != 0)
- {
- bool flag = false;
- foreach (MaidStatus.Old.Personal personal in this.getcondition_data.requestPersonals)
- {
- flag |= (personal.ToString() == status.personal.uniqueName);
- }
- if (!flag)
- {
- return false;
- }
- }
- if (0 < this.getcondition_data.yotogi_class_level)
- {
- if (!status.yotogiClass.Contains(this.getcondition_data.yotogi_class.id))
- {
- return false;
- }
- ClassData<YotogiClass.Data> classData = status.yotogiClass.Get(this.getcondition_data.yotogi_class.id);
- if (classData.level < this.getcondition_data.yotogi_class_level)
- {
- return false;
- }
- }
- return true;
- }
- public bool IsExecStage(YotogiOld.Stage check_stage)
- {
- return this.exec_stage.ContainsKey(check_stage);
- }
- public Skill.Old.Data.Command command
- {
- get
- {
- if (this.command_ != null)
- {
- return this.command_;
- }
- using (AFileBase afileBase = GameUty.FileSystemOld.FileOpen("yotogi_skil_command_data.nei"))
- {
- using (CsvParser csvParser = new CsvParser())
- {
- csvParser.Open(afileBase);
- using (AFileBase afileBase2 = GameUty.FileSystemOld.FileOpen("yotogi_skil_command_status.nei"))
- {
- using (CsvParser csvParser2 = new CsvParser())
- {
- csvParser2.Open(afileBase2);
- this.command_ = new Skill.Old.Data.Command(this, csvParser, csvParser2);
- }
- }
- }
- }
- return this.command_;
- }
- }
- public Skill.Data newData { get; private set; }
- public bool isShareSkill
- {
- get
- {
- return this.newData != null;
- }
- }
- public readonly YotogiOld.Category category;
- public readonly int id;
- public readonly string name;
- public readonly string icon_file_name;
- public readonly string start_call_file;
- public readonly string start_call_file2;
- public readonly int exec_need_hp;
- public readonly int add_yotogi_class_exp;
- public readonly Propensity.Data propensity_type;
- public readonly int[] skill_exp_table;
- public readonly int[] ban_id_array;
- public readonly Dictionary<Seikeiken, bool> exec_seikeiken;
- public readonly Dictionary<YotogiOld.Stage, bool> exec_stage;
- public readonly bool drunk_skill;
- public readonly bool osioki_skill;
- public readonly int player_num;
- public readonly int command_basic_cell_x;
- public readonly int command_basic_cell_y;
- public readonly int command_status_cell_x;
- public readonly int command_status_cell_y;
- public readonly Skill.Old.Data.GetConditionData getcondition_data;
- private Skill.Old.Data.Command command_;
- public class Command
- {
- public Command(Skill.Old.Data parent_skill, CsvParser setting_csv, CsvParser status_csv)
- {
- this.skill = parent_skill;
- int num = this.skill.command_basic_cell_x + 1;
- int num2 = this.skill.command_basic_cell_y + 1;
- int num3 = 0;
- while (setting_csv.IsCellToExistData(num + 1, num2 + num3))
- {
- num3++;
- }
- NDebug.Assert(0 < num3, setting_csv.GetCellAsString(num - 1, num2 - 1) + "のコマンド設定は不正です");
- this.data = new Skill.Old.Data.Command.Data[num3];
- for (int i = 0; i < this.data.Length; i++)
- {
- this.data[i] = new Skill.Old.Data.Command.Data(this.skill, setting_csv, status_csv, i + 1);
- }
- }
- public readonly Skill.Old.Data skill;
- public readonly Skill.Old.Data.Command.Data[] data;
- public class Data
- {
- public Data(Skill.Old.Data parent_skill, CsvParser setting_csv, CsvParser status_csv, int no)
- {
- this.basic = new Skill.Old.Data.Command.Data.Basic(parent_skill, setting_csv, parent_skill.command_basic_cell_x + 1, parent_skill.command_basic_cell_y + no);
- this.status = new Skill.Old.Data.Command.Data.Status(this.basic, status_csv, parent_skill.command_status_cell_x + 1, parent_skill.command_status_cell_y + no);
- }
- public bool EvalExpression()
- {
- if (string.IsNullOrEmpty(this.basic.expression))
- {
- return true;
- }
- bool result = false;
- using (TJSVariant tjsvariant = new TJSVariant())
- {
- GameMain.Instance.ScriptMgr.EvalScript(this.basic.expression, tjsvariant);
- result = tjsvariant.AsBool();
- }
- return result;
- }
- public readonly Skill.Old.Data.Command.Data.Basic basic;
- public readonly Skill.Old.Data.Command.Data.Status status;
- public class Basic
- {
- public Basic(Skill.Old.Data parent_skill, CsvParser setting_csv, int cell_x, int cell_y)
- {
- this.skill_id = parent_skill.id;
- this.id = cell_y;
- if (setting_csv.IsCellToExistData(cell_x, cell_y))
- {
- this.group_name = setting_csv.GetCellAsString(cell_x++, cell_y);
- }
- else
- {
- int num = cell_y;
- for (;;)
- {
- num--;
- if (num < 0)
- {
- break;
- }
- if (setting_csv.IsCellToExistData(cell_x, num))
- {
- goto Block_3;
- }
- }
- goto IL_7E;
- Block_3:
- this.group_name = setting_csv.GetCellAsString(cell_x++, num);
- IL_7E:
- NDebug.Assert(this.group_name != string.Empty, "表示グループの特定に失敗しました");
- }
- this.name = setting_csv.GetCellAsString(cell_x++, cell_y);
- string cellAsString = setting_csv.GetCellAsString(cell_x++, cell_y);
- this.command_type = (YotogiOld.SkillCommandType)Enum.Parse(typeof(YotogiOld.SkillCommandType), cellAsString);
- this.request_skill_lv = setting_csv.GetCellAsInteger(cell_x++, cell_y);
- this.normal_file = setting_csv.GetCellAsString(cell_x++, cell_y) + ".ks";
- this.insert_file = setting_csv.GetCellAsString(cell_x++, cell_y) + ".ks";
- this.rc_file = setting_csv.GetCellAsString(cell_x++, cell_y) + ".ks";
- this.rrc_file = setting_csv.GetCellAsString(cell_x++, cell_y) + ".ks";
- this.rr_file = setting_csv.GetCellAsString(cell_x++, cell_y) + ".ks";
- if (this.command_type == YotogiOld.SkillCommandType.挿入)
- {
- NDebug.Assert(this.insert_file != string.Empty && this.rc_file != string.Empty && this.rr_file != string.Empty, this.name + "\n挿入系のファイル指定が不正です");
- }
- else
- {
- NDebug.Assert(this.normal_file != string.Empty, this.name + "\n通常ファイル指定が不正です");
- }
- this.ref_maid_no = setting_csv.GetCellAsInteger(cell_x++, cell_y);
- string cellAsString2 = setting_csv.GetCellAsString(cell_x++, cell_y);
- this.sexual_type = YotogiOld.SexualType.Null;
- if (cellAsString2 != string.Empty)
- {
- try
- {
- this.sexual_type = (YotogiOld.SexualType)Enum.Parse(typeof(YotogiOld.SexualType), cellAsString2);
- }
- catch (ArgumentException)
- {
- NDebug.Assert("enum parse error.[" + cellAsString2 + "]", false);
- }
- }
- this.seikan_arousal_file = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (this.sexual_type != YotogiOld.SexualType.Null)
- {
- NDebug.Assert(this.seikan_arousal_file != string.Empty, this.name + "\n性感帯ファイル指定が不正です");
- }
- this.propensity_sabun = null;
- cellAsString = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (cellAsString != string.Empty)
- {
- this.propensity_sabun = Propensity.GetData(cellAsString);
- this.propensity_arousal_file = setting_csv.GetCellAsString(cell_x++, cell_y);
- NDebug.Assert(this.propensity_arousal_file != string.Empty, this.name + "\n性癖ファイル指定が不正です");
- }
- else
- {
- cell_x++;
- }
- this.insert_release = !(setting_csv.GetCellAsString(cell_x++, cell_y) == "○");
- this.request_insert = (setting_csv.GetCellAsString(cell_x++, cell_y) == "○");
- if (this.command_type != YotogiOld.SkillCommandType.単発 && this.command_type != YotogiOld.SkillCommandType.単発_挿入)
- {
- this.request_insert = true;
- }
- if (setting_csv.IsCellToExistData(cell_x++, cell_y))
- {
- this.expression = setting_csv.GetCellAsString(cell_x - 1, cell_y);
- }
- else
- {
- this.expression = string.Empty;
- }
- this.active_command = !string.IsNullOrEmpty(this.expression);
- }
- public readonly int skill_id;
- public readonly int id;
- public readonly string name;
- public readonly string group_name;
- public readonly YotogiOld.SkillCommandType command_type;
- public readonly int request_skill_lv;
- public readonly string normal_file;
- public readonly string insert_file;
- public readonly string rc_file;
- public readonly string rrc_file;
- public readonly string rr_file;
- public readonly int ref_maid_no;
- public readonly YotogiOld.SexualType sexual_type;
- public readonly string seikan_arousal_file;
- public readonly Propensity.Data propensity_sabun;
- public readonly string propensity_arousal_file;
- public readonly bool insert_release;
- public readonly bool request_insert;
- public readonly bool active_command;
- public readonly string expression;
- }
- public class Status
- {
- public Status(Skill.Old.Data.Command.Data.Basic basic_data, CsvParser stats_csv, int cell_x, int cell_y)
- {
- cell_x++;
- string cellAsString = stats_csv.GetCellAsString(cell_x++, cell_y);
- NDebug.Assert(cellAsString == basic_data.name, string.Concat(new object[]
- {
- "エラー\nスキルID[",
- basic_data.skill_id,
- "]スキル名[",
- basic_data.group_name,
- "]\nコマンド名[",
- basic_data.name,
- "]のはずが[",
- cellAsString,
- "]でした。コマンドの名前が不一致です"
- }));
- this.excitement = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.mind = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.reason = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.skill_exp = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.inyoku = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.m_value = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.hentai = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.housi = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.frustration = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.lovely = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.elegance = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.charm = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.reception = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.teach_rate = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_mouth = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_throat = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_nipple = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_front = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_back = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sexual_curi = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- }
- public readonly int excitement;
- public readonly int mind;
- public readonly int reason;
- public readonly int skill_exp;
- public readonly int inyoku;
- public readonly int m_value;
- public readonly int hentai;
- public readonly int housi;
- public readonly int frustration;
- public readonly int lovely;
- public readonly int elegance;
- public readonly int charm;
- public readonly int reception;
- public readonly int teach_rate;
- public readonly int sexual_mouth;
- public readonly int sexual_throat;
- public readonly int sexual_nipple;
- public readonly int sexual_front;
- public readonly int sexual_back;
- public readonly int sexual_curi;
- }
- }
- }
- public class GetConditionData : SkillAcquisitionCondition
- {
- public override List<KeyValuePair<string[], bool>> CreateConditionTextAndStaturResults(MaidStatus.Status status)
- {
- List<KeyValuePair<string[], bool>> list = base.CreateConditionTextAndStaturResults(status);
- if (this.marriage)
- {
- bool value = false;
- if (status != null && status.OldStatus != null && status.OldStatus.isMarriage)
- {
- value = true;
- }
- list.Add(new KeyValuePair<string[], bool>(new string[]
- {
- "結婚済み"
- }, value));
- }
- return list;
- }
- public bool marriage;
- public MaidStatus.Old.Personal[] requestPersonals;
- }
- }
- }
- public class Data
- {
- public Data(CsvParser csv, CsvParser csv_acq, int y, Dictionary<int, int[]> command_data_cell_dic)
- {
- int num = 0;
- this.id = csv.GetCellAsInteger(num++, y);
- num++;
- this.sortId = csv.GetCellAsInteger(num++, y);
- string cellAsString = csv.GetCellAsString(num++, y);
- try
- {
- this.category = (Yotogi.Category)Enum.Parse(typeof(Yotogi.Category), cellAsString);
- }
- catch (ArgumentException)
- {
- NDebug.Assert("Yotogi.Category\nenum parse error.[" + cellAsString + "]", false);
- }
- this.name = csv.GetCellAsString(num++, y);
- this.icon_file_name = csv.GetCellAsString(num++, y);
- num++;
- this.start_call_file = csv.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(this.start_call_file))
- {
- this.start_call_file += ".ks";
- }
- this.start_call_file2 = csv.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(this.start_call_file2))
- {
- this.start_call_file2 += ".ks";
- }
- this.exec_need_hp = csv.GetCellAsInteger(num++, y);
- this.add_yotogi_class_exp = csv.GetCellAsInteger(num++, y);
- int cellAsInteger = csv.GetCellAsInteger(num++, y);
- int cellAsInteger2 = csv.GetCellAsInteger(num++, y);
- this.skill_exp_table = new int[3];
- this.skill_exp_table[1] = cellAsInteger;
- this.skill_exp_table[2] = cellAsInteger2;
- cellAsString = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString) || cellAsString == "×")
- {
- this.ban_id_array = null;
- }
- else if (cellAsString == "〇")
- {
- this.ban_id_array = new int[1];
- this.ban_id_array[0] = this.id;
- }
- else
- {
- string[] array = cellAsString.Split(new char[]
- {
- ','
- });
- this.ban_id_array = new int[array.Length];
- for (int i = 0; i < this.ban_id_array.Length; i++)
- {
- this.ban_id_array[i] = int.Parse(array[i]);
- }
- }
- this.player_num = csv.GetCellAsInteger(num++, y);
- if (this.player_num <= 0)
- {
- this.player_num = 1;
- }
- CharacterMgr.CreateNpcData();
- this.npcmaid_setting = new CharacterMgr.NpcData[0];
- if (csv.IsCellToExistData(num, y))
- {
- cellAsString = csv.GetCellAsString(num++, y);
- string[] array2 = cellAsString.Split(new char[]
- {
- ','
- });
- List<CharacterMgr.NpcData> list = new List<CharacterMgr.NpcData>();
- for (int j = 0; j < array2.Length; j++)
- {
- if (CharacterMgr.npcDatas.ContainsKey(array2[j].Trim()))
- {
- list.Add(CharacterMgr.npcDatas[array2[j].Trim()]);
- }
- }
- this.npcmaid_setting = list.ToArray();
- }
- else
- {
- num++;
- }
- cellAsString = csv.GetCellAsString(num++, y);
- string[] array3 = cellAsString.Split(new char[]
- {
- ','
- });
- this.man_setting = new KeyValuePair<int, string>[array3.Length];
- for (int k = 0; k < array3.Length; k++)
- {
- string text = array3[k];
- int key = 0;
- string value = string.Empty;
- if (0 <= text.IndexOf("="))
- {
- string[] array4 = text.Split(new char[]
- {
- '='
- });
- key = 1;
- try
- {
- key = int.Parse(array4[0]);
- }
- catch (Exception)
- {
- }
- value = array4[1];
- }
- else
- {
- try
- {
- key = int.Parse(text);
- }
- catch (Exception)
- {
- }
- }
- this.man_setting[k] = new KeyValuePair<int, string>(key, value);
- }
- this.recollectionHaremLockPersonalIds = new HashSet<int>();
- if (csv.IsCellToExistData(num, y))
- {
- cellAsString = csv.GetCellAsString(num++, y);
- string[] array5 = cellAsString.Split(new char[]
- {
- ','
- });
- for (int l = 0; l < array5.Length; l++)
- {
- if (MaidStatus.Personal.Contains(array5[l].Trim()))
- {
- MaidStatus.Personal.Data data = MaidStatus.Personal.GetData(array5[l].Trim());
- if (!this.recollectionHaremLockPersonalIds.Contains(data.id))
- {
- this.recollectionHaremLockPersonalIds.Add(data.id);
- }
- }
- }
- }
- else
- {
- num++;
- }
- this.exec_seikeiken = new Dictionary<Seikeiken, bool>();
- Seikeiken[] array6 = new Seikeiken[]
- {
- Seikeiken.No_No,
- Seikeiken.Yes_No,
- Seikeiken.No_Yes,
- Seikeiken.Yes_Yes
- };
- for (int m = 0; m < array6.Length; m++)
- {
- cellAsString = csv.GetCellAsString(num++, y);
- if (cellAsString == "〇")
- {
- this.exec_seikeiken.Add(array6[m], true);
- }
- }
- this.exec_relation = new Dictionary<MaidStatus.Relation, bool>();
- MaidStatus.Relation[] array7 = new MaidStatus.Relation[]
- {
- MaidStatus.Relation.Contact,
- MaidStatus.Relation.Trust,
- MaidStatus.Relation.Lover
- };
- for (int n = 0; n < array7.Length; n++)
- {
- cellAsString = csv.GetCellAsString(num++, y);
- if (cellAsString == "〇")
- {
- this.exec_relation.Add(array7[n], true);
- }
- }
- this.exec_contract = new Dictionary<Contract, bool>();
- cellAsString = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString))
- {
- Contract[] array8 = new Contract[]
- {
- Contract.Trainee,
- Contract.Free,
- Contract.Exclusive
- };
- for (int num2 = 0; num2 < array8.Length; num2++)
- {
- this.exec_contract.Add(array8[num2], true);
- }
- }
- else
- {
- Contract contract = (Contract)Enum.Parse(typeof(Contract), cellAsString);
- Contract[] array9 = new Contract[]
- {
- Contract.Trainee,
- Contract.Free,
- Contract.Exclusive
- };
- for (int num3 = 0; num3 < array9.Length; num3++)
- {
- this.exec_contract.Add(array9[num3], array9[num3] == contract);
- }
- }
- cellAsString = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString))
- {
- this.specialConditionType = Skill.Data.SpecialConditionType.Null;
- }
- else
- {
- int num4 = 0;
- bool condition = int.TryParse(cellAsString, out num4);
- NDebug.Assert(condition, string.Concat(new object[]
- {
- "夜伽スキルID[",
- this.id,
- "] 名前[",
- this.name,
- "]の特殊状態指定が正しくありません。数字指定のみ受け付けます"
- }));
- this.specialConditionType = (Skill.Data.SpecialConditionType)num4;
- }
- if (csv.IsCellToExistData(num++, y))
- {
- this.connect_faint_skill_id = csv.GetCellAsInteger(num - 1, y);
- }
- else
- {
- this.connect_faint_skill_id = -1;
- }
- this.playable_stageid_list = new HashSet<int>();
- while (csv.max_cell_x > num)
- {
- string cellAsString2 = csv.GetCellAsString(num, 0);
- string cellAsString3 = csv.GetCellAsString(num++, y);
- if (string.IsNullOrEmpty(cellAsString2))
- {
- IL_701:
- NDebug.Assert(command_data_cell_dic.ContainsKey(this.id), this.name + "の情報は見つかりませんでした");
- int[] array10 = command_data_cell_dic[this.id];
- this.command_basic_cell_y = array10[0];
- this.command_status_cell_y = array10[1];
- num = 0;
- int cellAsInteger3 = csv_acq.GetCellAsInteger(num++, y);
- num++;
- NDebug.Assert(cellAsInteger3 == this.id, "スキル取得条件とスキル詳細のIDラインが一致していません");
- this.getcondition_data = new Skill.Data.GetConditionData();
- this.getcondition_data.seikeiken = new bool[4];
- for (int num5 = 0; num5 < this.getcondition_data.seikeiken.Length; num5++)
- {
- this.getcondition_data.seikeiken[num5] = (csv_acq.GetCellAsString(num++, y) == "〇");
- }
- this.getcondition_data.inyoku = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.m_value = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.hentai = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.housi = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.lovely = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.elegance = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.charm = csv_acq.GetCellAsInteger(num++, y);
- this.getcondition_data.requestPersonals = new MaidStatus.Personal.Data[0];
- string cellAsString4 = csv_acq.GetCellAsString(num++, y);
- if (!string.IsNullOrEmpty(cellAsString4))
- {
- string[] array11 = cellAsString4.Split(new char[]
- {
- ','
- });
- this.getcondition_data.requestPersonals = new MaidStatus.Personal.Data[array11.Length];
- for (int num6 = 0; num6 < array11.Length; num6++)
- {
- this.getcondition_data.requestPersonals[num6] = MaidStatus.Personal.GetData(array11[num6].Trim());
- }
- }
- if (csv_acq.IsCellToExistData(num, y) && csv_acq.IsCellToExistData(1, y))
- {
- string cellAsString5 = csv_acq.GetCellAsString(num++, y);
- this.getcondition_data.maid_class = JobClass.GetData(cellAsString5);
- this.getcondition_data.maid_class_level = csv_acq.GetCellAsInteger(num++, y);
- }
- else
- {
- num += 2;
- }
- if (csv_acq.IsCellToExistData(num, y) && csv_acq.IsCellToExistData(1, y))
- {
- string cellAsString6 = csv_acq.GetCellAsString(num++, y);
- this.getcondition_data.yotogi_class = YotogiClass.GetData(cellAsString6);
- this.getcondition_data.yotogi_class_level = csv_acq.GetCellAsInteger(num++, y);
- }
- else
- {
- num += 2;
- }
- string cellAsString7 = csv_acq.GetCellAsString(num++, y);
- this.getcondition_data.requestMarried = (cellAsString7 == "〇");
- return;
- }
- if (cellAsString3 == "〇")
- {
- this.playable_stageid_list.Add(YotogiStage.uniqueNameToId(cellAsString2));
- }
- }
- goto IL_701;
- }
- public void SetOldSkillData(Skill.Old.Data data)
- {
- this.oldData = data;
- }
- public void SetConnectFaintSkill(Skill.Data data)
- {
- this.connect_faint_skill = data;
- }
- public bool IsExecMaid(MaidStatus.Status maid_status)
- {
- return this.IsExecRelation(maid_status.relation) && this.IsExecSeikeiken(maid_status.seikeiken) && this.IsExecContract(maid_status.contract) && this.IsExecStatus(maid_status) && (this.getcondition_data.maid_class == null || JobClass.IsEnabled(this.getcondition_data.maid_class.id)) && (this.getcondition_data.yotogi_class == null || YotogiClass.IsEnabled(this.getcondition_data.yotogi_class.id));
- }
- public bool IsExecRelation(MaidStatus.Relation check_condition)
- {
- return this.exec_relation.ContainsKey(check_condition);
- }
- public bool IsExecSeikeiken(Seikeiken check_seikeiken)
- {
- return this.exec_seikeiken.ContainsKey(check_seikeiken);
- }
- public bool IsExecContract(Contract check_contract)
- {
- return this.exec_contract.ContainsKey(check_contract);
- }
- public bool IsExecStatus(MaidStatus.Status status)
- {
- return status != null && (!this.getcondition_data.requestMarried || status.specialRelation == SpecialRelation.Married);
- }
- public bool IsExecPersonal(MaidStatus.Personal.Data personal_data)
- {
- if (this.getcondition_data.requestPersonals.Length == 0)
- {
- return true;
- }
- if (personal_data != null)
- {
- foreach (MaidStatus.Personal.Data data in this.getcondition_data.requestPersonals)
- {
- if (data.id == personal_data.id)
- {
- return true;
- }
- }
- }
- return false;
- }
- public bool IsCheckGetSkill(MaidStatus.Status status, bool is_seikeiken_check)
- {
- if (is_seikeiken_check && !this.getcondition_data.seikeiken[(int)status.seikeiken])
- {
- return false;
- }
- if (status.inyoku < this.getcondition_data.inyoku)
- {
- return false;
- }
- if (status.mvalue < this.getcondition_data.m_value)
- {
- return false;
- }
- if (status.hentai < this.getcondition_data.hentai)
- {
- return false;
- }
- if (status.housi < this.getcondition_data.housi)
- {
- return false;
- }
- if (status.lovely < this.getcondition_data.lovely)
- {
- return false;
- }
- if (status.elegance < this.getcondition_data.elegance)
- {
- return false;
- }
- if (status.charm < this.getcondition_data.charm)
- {
- return false;
- }
- if (this.getcondition_data.requestMarried && status.specialRelation != SpecialRelation.Married)
- {
- return false;
- }
- if (this.getcondition_data.requestPersonals.Length != 0)
- {
- bool flag = false;
- foreach (MaidStatus.Personal.Data data in this.getcondition_data.requestPersonals)
- {
- flag |= (data.id == status.personal.id);
- }
- if (!flag)
- {
- return false;
- }
- }
- if (this.getcondition_data.maid_class != null)
- {
- if (!status.jobClass.Contains(this.getcondition_data.maid_class.id))
- {
- return false;
- }
- ClassData<JobClass.Data> classData = status.jobClass.Get(this.getcondition_data.maid_class.id);
- if (classData.level < this.getcondition_data.maid_class_level)
- {
- return false;
- }
- }
- else if (this.getcondition_data.yotogi_class != null)
- {
- if (!status.yotogiClass.Contains(this.getcondition_data.yotogi_class.id))
- {
- return false;
- }
- ClassData<YotogiClass.Data> classData2 = status.yotogiClass.Get(this.getcondition_data.yotogi_class.id);
- if (classData2.level < this.getcondition_data.yotogi_class_level || !classData2.data.learnConditions.CheckSpecialConditions(status))
- {
- return false;
- }
- }
- return true;
- }
- public bool IsExecStage(YotogiStage.Data stageData)
- {
- return this.playable_stageid_list.Contains(stageData.id);
- }
- public bool IsResultDisplay(bool lockNTRPlay)
- {
- switch (this.specialConditionType)
- {
- case Skill.Data.SpecialConditionType.Faint:
- case Skill.Data.SpecialConditionType.NewType:
- case Skill.Data.SpecialConditionType.GP01Recollect:
- case Skill.Data.SpecialConditionType.GP02Recollect:
- return false;
- }
- return !lockNTRPlay || (this.category != Yotogi.Category.交換 && this.category != Yotogi.Category.乱交);
- }
- public bool IsSkillListDisplay(bool lockNTRPlay)
- {
- return this.specialConditionType != Skill.Data.SpecialConditionType.Faint && this.specialConditionType != Skill.Data.SpecialConditionType.NewType && this.specialConditionType != Skill.Data.SpecialConditionType.GP01Recollect && this.specialConditionType != Skill.Data.SpecialConditionType.GP02Recollect && (!lockNTRPlay || (this.category != Yotogi.Category.交換 && this.category != Yotogi.Category.乱交));
- }
- public Skill.Data.Command command
- {
- get
- {
- if (this.command_ != null)
- {
- return this.command_;
- }
- using (AFileBase afileBase = GameUty.FileSystem.FileOpen("yotogi_skill_command_data.nei"))
- {
- using (CsvParser csvParser = new CsvParser())
- {
- csvParser.Open(afileBase);
- using (AFileBase afileBase2 = GameUty.FileSystem.FileOpen("yotogi_skill_command_status.nei"))
- {
- using (CsvParser csvParser2 = new CsvParser())
- {
- csvParser2.Open(afileBase2);
- this.command_ = new Skill.Data.Command(this, csvParser, csvParser2);
- }
- }
- }
- }
- return this.command_;
- }
- }
- public int user_player_num
- {
- get
- {
- return (this.npcmaid_setting != null && this.npcmaid_setting.Length != 0) ? (this.player_num - this.npcmaid_setting.Length) : this.player_num;
- }
- }
- public Skill.Old.Data oldData { get; private set; }
- public bool isShareSkill
- {
- get
- {
- return this.oldData != null;
- }
- }
- public Skill.Data connect_faint_skill { get; private set; }
- public string termName
- {
- get
- {
- return "YotogiSkillName/" + this.name;
- }
- }
- public readonly Yotogi.Category category;
- public readonly int id;
- public readonly int sortId;
- public readonly Skill.Data.SpecialConditionType specialConditionType;
- public readonly string name;
- public readonly string icon_file_name;
- public readonly string start_call_file;
- public readonly string start_call_file2;
- public readonly int exec_need_hp;
- public readonly int add_yotogi_class_exp;
- public readonly int[] skill_exp_table;
- public readonly int[] ban_id_array;
- public readonly Dictionary<Seikeiken, bool> exec_seikeiken;
- public readonly Dictionary<MaidStatus.Relation, bool> exec_relation;
- public readonly Dictionary<Contract, bool> exec_contract;
- public readonly HashSet<int> playable_stageid_list;
- public readonly int player_num;
- public readonly CharacterMgr.NpcData[] npcmaid_setting;
- public readonly HashSet<int> recollectionHaremLockPersonalIds;
- public readonly KeyValuePair<int, string>[] man_setting;
- public readonly int command_basic_cell_x;
- public readonly int command_basic_cell_y;
- public readonly int command_status_cell_x;
- public readonly int command_status_cell_y;
- public readonly Skill.Data.GetConditionData getcondition_data;
- public readonly int connect_faint_skill_id;
- private Skill.Data.Command command_;
- public class Command
- {
- public Command(Skill.Data parent_skill, CsvParser setting_csv, CsvParser status_csv)
- {
- this.skill = parent_skill;
- int num = this.skill.command_basic_cell_x + 1;
- int num2 = this.skill.command_basic_cell_y + 1;
- int num3 = 0;
- while (setting_csv.IsCellToExistData(num + 1, num2 + num3))
- {
- num3++;
- }
- NDebug.Assert(0 < num3, setting_csv.GetCellAsString(num - 1, num2 - 1) + "のコマンド設定は不正です");
- this.data = new Skill.Data.Command.Data[num3];
- for (int i = 0; i < this.data.Length; i++)
- {
- this.data[i] = new Skill.Data.Command.Data(this.skill, setting_csv, status_csv, i + 1);
- }
- this.commandCoundId = -1;
- for (int j = 0; j < this.data.Length; j++)
- {
- if (!string.IsNullOrEmpty(this.data[j].basic.executionConditionCommandExecCount.Key))
- {
- string key = this.data[j].basic.executionConditionCommandExecCount.Key;
- foreach (Skill.Data.Command.Data data in this.data)
- {
- if (data.basic.name == key)
- {
- this.commandCoundId = data.basic.id;
- break;
- }
- }
- }
- }
- }
- public static Color bonusTargetTextColor = Color.red;
- public readonly Skill.Data skill;
- public readonly Skill.Data.Command.Data[] data;
- public readonly int commandCoundId;
- public class Data
- {
- public Data(Skill.Data parent_skill, CsvParser setting_csv, CsvParser status_csv, int no)
- {
- this.basic = new Skill.Data.Command.Data.Basic(parent_skill, setting_csv, parent_skill.command_basic_cell_x + 1, parent_skill.command_basic_cell_y + no);
- this.status = new Skill.Data.Command.Data.Status(this.basic, status_csv, parent_skill.command_status_cell_x + 1, parent_skill.command_status_cell_y + no);
- }
- public bool EvalExpression(Maid maid)
- {
- if (maid == null)
- {
- return false;
- }
- if (this.basic.executionConditionParameters != null && !this.basic.executionConditionParameters.GreaterThanOrEqualToStatus(maid.status))
- {
- return false;
- }
- if (this.basic.request_propensity != null && 0 < this.basic.request_propensity.Count)
- {
- foreach (int key in this.basic.request_propensity)
- {
- if (!maid.status.propensitys.ContainsKey(key))
- {
- return false;
- }
- }
- }
- if (!string.IsNullOrEmpty(this.basic.executionConditionCommandExecCount.Key))
- {
- int value = this.basic.executionConditionCommandExecCount.Value;
- YotogiSkillData yotogiSkillData = maid.status.yotogiSkill.Get(this.basic.skill_id);
- if (yotogiSkillData == null || yotogiSkillData.commandCount < value)
- {
- return false;
- }
- }
- return true;
- }
- public bool EvalExpressionForFreeMode(Maid maid)
- {
- if (maid == null)
- {
- return false;
- }
- if (this.basic.request_propensity != null && 0 < this.basic.request_propensity.Count)
- {
- foreach (int key in this.basic.request_propensity)
- {
- if (!maid.status.propensitys.ContainsKey(key))
- {
- return false;
- }
- }
- }
- return this.basic.executionConditionParameters == null || !this.basic.executionConditionParameters.dataPacks.ContainsKey(ParametersPack.StatusType.興奮) || this.basic.executionConditionParameters.dataPacks[ParametersPack.StatusType.興奮] <= maid.status.currentExcite;
- }
- public readonly Skill.Data.Command.Data.Basic basic;
- public readonly Skill.Data.Command.Data.Status status;
- public class CallFile
- {
- public CallFile(string normal, string insert, string rc, string rrc, string rr, string propensity_arousal_file, string adv_hook_file)
- {
- this.normal = normal;
- this.insert = insert;
- this.rc = rc;
- this.rrc = rrc;
- this.rr = rr;
- this.propensity_arousal_file = propensity_arousal_file;
- this.adv_hook_file = adv_hook_file;
- }
- public readonly string normal;
- public readonly string insert;
- public readonly string rc;
- public readonly string rrc;
- public readonly string rr;
- public readonly string propensity_arousal_file;
- public readonly string adv_hook_file;
- }
- public class Basic
- {
- public Basic(Skill.Data parent_skill, CsvParser setting_csv, int cell_x, int cell_y)
- {
- this.skill = parent_skill;
- this.skill_id = parent_skill.id;
- if (Skill.Data.Command.Data.Basic.colorSetDictionary == null)
- {
- Skill.Data.Command.Data.Basic.colorSetDictionary = new Dictionary<string, Color>();
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("cyan", Color.cyan);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("green", Color.green);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("red", Color.red);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("black", Color.black);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("yellow", Color.yellow);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("blue", Color.blue);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("magenta", Color.magenta);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("gray", Color.gray);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("white", Color.white);
- Skill.Data.Command.Data.Basic.colorSetDictionary.Add("grey", Color.grey);
- }
- this.id = cell_y;
- if (setting_csv.IsCellToExistData(cell_x, cell_y))
- {
- this.group_name = setting_csv.GetCellAsString(cell_x++, cell_y);
- }
- else
- {
- int num = cell_y;
- for (;;)
- {
- num--;
- if (num < 0)
- {
- break;
- }
- if (setting_csv.IsCellToExistData(cell_x, num))
- {
- goto Block_4;
- }
- }
- goto IL_161;
- Block_4:
- this.group_name = setting_csv.GetCellAsString(cell_x++, num);
- IL_161:
- NDebug.Assert(this.group_name != string.Empty, "表示グループの特定に失敗しました");
- }
- this.name = setting_csv.GetCellAsString(cell_x++, cell_y);
- string text = setting_csv.GetCellAsString(cell_x++, cell_y);
- this.command_type = (Yotogi.SkillCommandType)Enum.Parse(typeof(Yotogi.SkillCommandType), text);
- this.attribute_type = setting_csv.GetCellAsString(cell_x++, cell_y);
- text = setting_csv.GetCellAsString(cell_x++, cell_y).ToLower();
- if (string.IsNullOrEmpty(text))
- {
- this.color = Color.black;
- }
- else if (0 <= text.IndexOf(","))
- {
- this.color = Parse.Color(text);
- }
- else if (Skill.Data.Command.Data.Basic.colorSetDictionary.ContainsKey(text))
- {
- this.color = Skill.Data.Command.Data.Basic.colorSetDictionary[text];
- }
- else
- {
- NDebug.Assert(string.Concat(new string[]
- {
- "夜伽スキル[",
- this.group_name,
- "]のコマンド[",
- this.name,
- "]の色設定がおかしいです\n指定された色文字[",
- text,
- "]"
- }), false);
- }
- this.isStopParticleBreathe = (setting_csv.GetCellAsString(cell_x++, cell_y) == "〇");
- this.isStopParticleLoveLiquid = (setting_csv.GetCellAsString(cell_x++, cell_y) == "〇");
- this.isEstrusTriggerCommand = (setting_csv.GetCellAsString(cell_x++, cell_y) == "〇");
- this.request_skill_lv = setting_csv.GetCellAsInteger(cell_x++, cell_y);
- string text2 = setting_csv.GetCellAsString(cell_x++, cell_y);
- string text3 = setting_csv.GetCellAsString(cell_x++, cell_y);
- string text4 = setting_csv.GetCellAsString(cell_x++, cell_y);
- string text5 = setting_csv.GetCellAsString(cell_x++, cell_y);
- string text6 = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (!string.IsNullOrEmpty(text2))
- {
- text2 += ".ks";
- }
- if (!string.IsNullOrEmpty(text3))
- {
- text3 += ".ks";
- }
- if (!string.IsNullOrEmpty(text4))
- {
- text4 += ".ks";
- }
- if (!string.IsNullOrEmpty(text5))
- {
- text5 += ".ks";
- }
- if (!string.IsNullOrEmpty(text6))
- {
- text6 += ".ks";
- }
- this.ref_maid_no = setting_csv.GetCellAsInteger(cell_x++, cell_y);
- this.ng_propensity = null;
- text = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (text != string.Empty)
- {
- this.ng_propensity = Propensity.GetData(text);
- }
- string text7 = string.Empty;
- this.learning_propensity = null;
- text = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (text != string.Empty)
- {
- this.learning_propensity = Propensity.GetData(text);
- text7 = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (!string.IsNullOrEmpty(text7))
- {
- text7 += ".ks";
- }
- }
- else
- {
- cell_x++;
- }
- string text8 = setting_csv.GetCellAsString(cell_x++, cell_y);
- if (!string.IsNullOrEmpty(text8))
- {
- text8 += ".ks";
- }
- this.request_insert = (setting_csv.GetCellAsString(cell_x++, cell_y) == "〇");
- if (this.command_type != Yotogi.SkillCommandType.単発 && this.command_type != Yotogi.SkillCommandType.単発_挿入)
- {
- this.request_insert = true;
- }
- this.call_file = new Skill.Data.Command.Data.CallFile(text2, text3, text4, text5, text6, text7, text8);
- this.ecxecConditionTexts = new string[0];
- cell_x++;
- this.request_propensity = new HashSet<int>();
- this.executionConditionParameters = null;
- if (setting_csv.IsCellToExistData(cell_x++, cell_y))
- {
- this.executionConditionParameters = new ParametersPack();
- string cellAsString = setting_csv.GetCellAsString(cell_x - 1, cell_y);
- string[] array = cellAsString.Split(new char[]
- {
- ','
- });
- foreach (string text9 in array)
- {
- if (text9.Trim().Split(new char[]
- {
- '|'
- }).Length == 1)
- {
- bool flag = Propensity.Contains(text9);
- if (flag && !this.request_propensity.Contains(Propensity.GetData(text9).id))
- {
- this.request_propensity.Add(Propensity.GetData(text9).id);
- }
- }
- else
- {
- bool flag2 = text9.Trim().Split(new char[]
- {
- '|'
- }).Length == 2;
- if (flag2)
- {
- this.executionConditionParameters.Parse(text9.Trim().Replace("|", "="), ',');
- }
- }
- }
- }
- if (setting_csv.IsCellToExistData(cell_x++, cell_y))
- {
- }
- }
- public bool isPropensityCommand
- {
- get
- {
- return this.learning_propensity != null && string.IsNullOrEmpty(this.call_file.propensity_arousal_file);
- }
- }
- public bool isAcquisitionPropensityCommand
- {
- get
- {
- return this.learning_propensity != null && !string.IsNullOrEmpty(this.call_file.propensity_arousal_file);
- }
- }
- public string termName
- {
- get
- {
- return "YotogiSkillCommand/" + this.name;
- }
- }
- public string termGroupName
- {
- get
- {
- return this.skill.termName;
- }
- }
- public readonly Skill.Data skill;
- public readonly int skill_id;
- public readonly int id;
- public readonly string name;
- public readonly string group_name;
- public readonly Yotogi.SkillCommandType command_type;
- public readonly string attribute_type;
- public readonly Color color;
- public readonly int request_skill_lv;
- public readonly Skill.Data.Command.Data.CallFile call_file;
- public readonly int ref_maid_no;
- public readonly Propensity.Data ng_propensity;
- public readonly Propensity.Data learning_propensity;
- public readonly bool request_insert;
- public readonly HashSet<int> request_propensity;
- public readonly ParametersPack executionConditionParameters;
- public readonly KeyValuePair<string, int> executionConditionCommandExecCount;
- public readonly string[] ecxecConditionTexts;
- public readonly bool isEstrusTriggerCommand;
- public readonly bool isStopParticleBreathe;
- public readonly bool isStopParticleLoveLiquid;
- private static Dictionary<string, Color> colorSetDictionary;
- }
- public class Status
- {
- public Status(Skill.Data.Command.Data.Basic basic_data, CsvParser stats_csv, int cell_x, int cell_y)
- {
- cell_x++;
- string cellAsString = stats_csv.GetCellAsString(cell_x++, cell_y);
- if (string.IsNullOrEmpty(cellAsString))
- {
- NDebug.Assert(basic_data.skill.name + "の[" + basic_data.name + "]コマンドのステータス設定がありません", false);
- }
- NDebug.Assert(cellAsString == basic_data.name, string.Concat(new object[]
- {
- "エラー\nスキルID[",
- basic_data.skill_id,
- "]スキル名[",
- basic_data.group_name,
- "]\nコマンド名[",
- basic_data.name,
- "]のはずが[",
- cellAsString,
- "]でした。コマンドの名前が不一致です"
- }));
- if (stats_csv.IsCellToExistData(cell_x, cell_y) && stats_csv.IsCellToExistData(cell_x + 1, cell_y))
- {
- NDebug.Assert(basic_data.skill.name + "の[" + basic_data.name + "]コマンドのボーナス興奮値設定が不正です\n以上、以下二つデータを入れる事はできません", false);
- }
- this.bonusExcitementUpLine = int.MaxValue;
- this.bonusExcitementDownLine = int.MinValue;
- if (stats_csv.IsCellToExistData(cell_x, cell_y))
- {
- this.bonusExcitementUpLine = stats_csv.GetCellAsInteger(cell_x, cell_y);
- }
- cell_x++;
- if (stats_csv.IsCellToExistData(cell_x, cell_y))
- {
- this.bonusExcitementDownLine = stats_csv.GetCellAsInteger(cell_x, cell_y);
- }
- cell_x++;
- this.excitement = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.mind = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.sensual = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.cost_sensual = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.skill_exp = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.inyoku = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.m_value = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.hentai = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.housi = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.lovely = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.elegance = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.charm = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.reception = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- this.teach_rate = stats_csv.GetCellAsInteger(cell_x++, cell_y);
- }
- public readonly int bonusExcitementUpLine;
- public readonly int bonusExcitementDownLine;
- public readonly int excitement;
- public readonly int mind;
- public readonly int sensual;
- public readonly int cost_sensual;
- public readonly int skill_exp;
- public readonly int inyoku;
- public readonly int m_value;
- public readonly int hentai;
- public readonly int housi;
- public readonly int lovely;
- public readonly int elegance;
- public readonly int charm;
- public readonly int reception;
- public readonly int teach_rate;
- }
- }
- }
- public enum SpecialConditionType
- {
- Null,
- Drunk,
- Mask,
- Drug,
- Faint,
- Confess,
- NewType,
- GP01Recollect,
- GP02Recollect
- }
- public class GetConditionData : SkillAcquisitionCondition
- {
- public override List<KeyValuePair<string[], bool>> CreateConditionTextAndStaturResults(MaidStatus.Status status)
- {
- List<KeyValuePair<string[], bool>> list = base.CreateConditionTextAndStaturResults(status);
- if (this.maid_class != null)
- {
- bool value = false;
- if (status != null && status.jobClass.Contains(this.maid_class.id) && this.maid_class_level <= status.jobClass.Get(this.maid_class.id).level)
- {
- value = true;
- }
- list.Add(new KeyValuePair<string[], bool>(new string[]
- {
- this.maid_class.drawName + " Lv{0}",
- this.maid_class_level.ToString()
- }, value));
- }
- return list;
- }
- public MaidStatus.Personal.Data[] requestPersonals;
- public JobClass.Data maid_class;
- public int maid_class_level;
- }
- }
- }
- }
|