YotogiPlayManager.cs 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using I2.Loc;
  6. using MaidStatus;
  7. using UnityEngine;
  8. using wf;
  9. using Yotogis;
  10. public class YotogiPlayManager : WfScreenChildren
  11. {
  12. public override void Awake()
  13. {
  14. base.Awake();
  15. this.yotogi_mgr_ = base.GetComponentInParent<YotogiManager>();
  16. UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(true);
  17. UTY.GetChildObject(base.root_obj, "SkillSelectViewer", false).SetActive(true);
  18. this.common_buttons_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/CommonPanel", false).GetComponent<YotogiCommonButtons>();
  19. this.command_factory_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit", false).GetComponent<YotogiCommandFactory>();
  20. this.command_factory_.SetCommandCreateCallBack(new YotogiCommandFactory.CommandCreateCallBack(this.OnCreateCommand));
  21. this.command_factory_.SetCommandCallback(new YotogiCommandFactory.CommandCallback(this.OnClickCommand));
  22. this.command_factory_.SetCommandEnabledCallBack(new YotogiCommandFactory.CommandEnabledCallBack(this.OnEnabledCommand));
  23. this.command_factory_.SetChangeCommandTextColorCallBack(new YotogiCommandFactory.ChangeCommandTextColorCallBack(this.OnChangeCommandTextColor));
  24. this.command_factory_.SetCommandExecConditionTextsCallback(new YotogiCommandFactory.CommandExecConditionTextsCallback(this.OnMouseCommand));
  25. this.param_scroll_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/ParamView", false).GetComponent<YotogiParamScroll>();
  26. this.camera_move_support_ = base.gameObject.AddComponent<WfCameraMoveSupport>();
  27. this.man_alpha_slider_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/MaskGroup/PlayerModelTransparency/SliderParent/Slider", false).GetComponent<UISlider>();
  28. this.control_mask_list_.Add(UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/ControlMaskt", false));
  29. this.control_mask_list_.Add(UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/ControlMaskt", false));
  30. this.undressing_mgr_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/MaskGroup/UndressParent", false).GetComponent<UndressingManager>();
  31. this.undressing_mgr_.SetCallBackEvent(new UndressingManager.OnClickEventDelegate(this.OnUndressingEvent));
  32. this.btn_excite_lock_ = UTY.GetChildObject(base.root_obj, "StatusSlider/ParameterViewer/MaskGroup/Lock", false).GetComponent<UIWFSelectButton>();
  33. this.skill_group_parent_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/SkillGroup/SkillParent", false);
  34. Transform transform = this.skill_group_parent_.transform;
  35. for (int i = 0; i < transform.childCount; i++)
  36. {
  37. GameObject gameObject = transform.GetChild(i).gameObject;
  38. GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
  39. UIButton component = childObject.GetComponent<UIButton>();
  40. component.onClick.Clear();
  41. UISprite component2 = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
  42. UILabel componentInChildren = component2.GetComponentInChildren<UILabel>();
  43. UIRect uirect = component2;
  44. float alpha = 0f;
  45. componentInChildren.alpha = alpha;
  46. uirect.alpha = alpha;
  47. EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.OnSkillIconClick));
  48. UIEventTrigger component3 = childObject.GetComponent<UIEventTrigger>();
  49. int num = i;
  50. EventDelegate.Add(component3.onHoverOver, delegate()
  51. {
  52. this.VisibleSkillName(num, true);
  53. });
  54. EventDelegate.Add(component3.onHoverOut, delegate()
  55. {
  56. this.VisibleSkillName(num, false);
  57. });
  58. EventDelegate.Add(component3.onDragStart, delegate()
  59. {
  60. this.VisibleSkillName(num, false);
  61. });
  62. }
  63. this.commandExecConditionsPanel = UTY.GetChildObject(base.root_obj, "ConditionsPanel", false);
  64. this.commandExecConditionList = UTY.GetChildObject(this.commandExecConditionsPanel, "ConditionParent", false).GetComponent<UIWFConditionList>();
  65. this.commandExecConditionsPanel.SetActive(false);
  66. this.playing_skill_no_ = -1;
  67. }
  68. protected override void OnCall()
  69. {
  70. GameMain.Instance.MainCamera.FadeInNoUI(0f, true);
  71. uGUITutorialPanel.OpenTutorial("YotogiCommand", null, false);
  72. GameMain.Instance.SysShortcut.strSceneHelpName = "YotogiCommand";
  73. this.maid_ = this.yotogi_mgr_.maid;
  74. this.is_faint_end = false;
  75. string systemVers = GameMain.Instance.CMSystem.GetSystemVers("ExciteLock");
  76. this.is_excite_lock_ = (systemVers == "1");
  77. if (this.btn_excite_lock_.isSelected != this.is_excite_lock_)
  78. {
  79. this.btn_excite_lock_.SetSelect(this.is_excite_lock_);
  80. }
  81. if (!this.is_free_mode)
  82. {
  83. this.is_excite_lock_ = false;
  84. }
  85. GameObject childObject = UTY.GetChildObject(base.root_obj, "StatusViewer", false);
  86. GameObject childObject2 = UTY.GetChildObject(base.root_obj, "StatusSlider", false);
  87. if (this.command_menu != null)
  88. {
  89. this.command_menu.SetOnEnterEvetn(new Action<Skill.Data.Command.Data>(this.OnClickCommand));
  90. }
  91. if (!this.is_free_mode && !this.is_vr_mode && this.paramenter_viewer_ == null)
  92. {
  93. childObject.SetActive(true);
  94. childObject2.SetActive(false);
  95. this.param_basic_bar_ = UTY.GetChildObject(childObject, "ParameterViewer/MaskGroup/ParameterParent", false).GetComponent<YotogiParamBasicBar>();
  96. this.paramenter_viewer_ = Utility.CreatePrefab(UTY.GetChildObject(base.root_obj, "ParameterViewer/YotogiParameterViewer/MaskGroup", false), "SceneYotogi/Common/Prefab/ParameterViewer", true).GetComponent<YotogiParameterViewer>();
  97. this.paramenter_viewer_.SetCostumeButtonVisible(false);
  98. this.paramenter_viewer_.SetAttributeViewer(UTY.GetChildObject(base.root_obj.transform.parent.gameObject, "AttributeViewer", false));
  99. UTY.GetChildObject(base.root_obj, "SkillSelectViewer", false).SetActive(false);
  100. }
  101. else if (this.is_free_mode)
  102. {
  103. this.playing_skill_no_ = -1;
  104. this.param_basic_bar_ = UTY.GetChildObject(childObject2, "ParameterViewer/MaskGroup/ParameterParent", false).GetComponent<YotogiParamBasicBarPlusSlider>();
  105. childObject.SetActive(false);
  106. childObject2.SetActive(true);
  107. UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(false);
  108. GameObject childObject3 = UTY.GetChildObject(base.root_obj, "SkillSelectViewer/YotogiSkillSelectViewer/MaskGroup/Parent", false);
  109. if (childObject3.transform.childCount == 0)
  110. {
  111. this.yotogi_mgr_.skill_select_prefab_object.transform.SetParent(childObject3.transform, false);
  112. }
  113. this.free_skill_select_ = childObject3.GetComponentInChildren<FreeSkillSelect>();
  114. this.common_buttons_.next_btn.gameObject.SetActive(false);
  115. UTY.GetChildObject(this.common_buttons_.gameObject, "UnderButtonGroup/End", false).SetActive(true);
  116. UIButton component = UTY.GetChildObject(base.root_obj, "SkillSelectViewer/YotogiSkillSelectViewer/MaskGroup/Next", false).GetComponent<UIButton>();
  117. component.onClick.Clear();
  118. EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.OnClickSkillSelectEnd));
  119. this.free_mode_backup_data_.seikeiken = this.maid_.status.seikeiken;
  120. }
  121. this.param_basic_bar_.SetMaid(this.maid_);
  122. this.player_state_ = YotogiPlay.PlayerState.Normal;
  123. if (this.estrusMode)
  124. {
  125. this.estrusMode = false;
  126. this.maid_.status.currentSensual = 0;
  127. this.param_basic_bar_.SetCurrentSensual(this.maid_status_.currentSensual, false);
  128. }
  129. if (this.playing_skill_no_ == -1)
  130. {
  131. this.Initialize();
  132. }
  133. GameMain.Instance.ScriptMgr.StopMotionScript();
  134. this.NextSkill();
  135. this.yotogi_mgr_.ResetWorld();
  136. this.lockRepeatVoiceUpdate = false;
  137. this.doneFtFileCall = false;
  138. base.StartCoroutine(this.CallFtFiles());
  139. this.breatheObjects = new List<GameObject>();
  140. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetMaidCount(); i++)
  141. {
  142. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(i);
  143. if (!(maid == null))
  144. {
  145. maid.AddPrefab("Particle/pToiki", "夜伽_吐息", "Bip01 Head", new Vector3(0.042f, 0.076f, 0f), new Vector3(-90f, 90f, 0f));
  146. this.breatheObjects.Add(maid.GetPrefab("夜伽_吐息"));
  147. if (i == 0)
  148. {
  149. this.loveLiquidObjects = new GameObject[3];
  150. maid.AddPrefab("Particle/pPistonEasy_cm3D2", "夜伽_愛液1", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
  151. maid.AddPrefab("Particle/pPistonNormal_cm3D2", "夜伽_愛液2", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
  152. maid.AddPrefab("Particle/pPistonHard_cm3D2", "夜伽_愛液3", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
  153. this.loveLiquidObjects[0] = maid.GetPrefab("夜伽_愛液1");
  154. this.loveLiquidObjects[1] = maid.GetPrefab("夜伽_愛液2");
  155. this.loveLiquidObjects[2] = maid.GetPrefab("夜伽_愛液3");
  156. }
  157. }
  158. }
  159. this.particleBreathe = false;
  160. this.particleLoveLiquidType = 0;
  161. if (this.subtitlesManager != null)
  162. {
  163. this.subtitlesManager.visible = false;
  164. this.subtitlesManager.SetTextFromScriptStyle(string.Empty);
  165. }
  166. }
  167. private void Initialize()
  168. {
  169. this.suspendStoreData = null;
  170. this.calledAdvFiles.Clear();
  171. this.estrusMode = false;
  172. this.yotogi_mgr_.acquired_propensityid_list.Clear();
  173. this.ClearVoice();
  174. this.common_buttons_.viwe_reset_btn.onClick.Clear();
  175. EventDelegate.Add(this.common_buttons_.viwe_reset_btn.onClick, new EventDelegate.Callback(this.OnClickViweReset));
  176. this.script_mgr_ = GameMain.Instance.ScriptMgr;
  177. this.script_mgr_.EvalScript("global.__skill_command_file = new Array();");
  178. this.common_buttons_.next_btn.onClick.Clear();
  179. EventDelegate.Add(this.common_buttons_.next_btn.onClick, new EventDelegate.Callback(this.OnClickNext));
  180. UIButton component = UTY.GetChildObject(this.common_buttons_.gameObject, "UnderButtonGroup/End", false).GetComponent<UIButton>();
  181. component.onClick.Clear();
  182. EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.OnClickNext));
  183. this.maid_status_ = this.maid_.status;
  184. this.bonusCorrectionStatus_ = this.maid_status_.GetBonusStatusAsFeatureAndPropensitys();
  185. if (!this.is_free_mode)
  186. {
  187. this.maid_.status.currentSensual = 0;
  188. int num = this.maid_.status.inyoku + this.maid_.status.housi + this.maid_.status.hentai + this.maid_.status.mvalue;
  189. this.maid_.status.currentExcite = num / 2000 * 10;
  190. }
  191. else
  192. {
  193. this.maid_.status.currentSensual = 300;
  194. }
  195. this.maid_.status.currentMind = this.maid_status_.maxMind;
  196. this.param_basic_bar_.SetMaxMind(this.maid_status_.maxMind);
  197. this.param_basic_bar_.SetCurrentSensual(this.maid_status_.currentSensual, false);
  198. this.man_alpha_slider_.value = (float)GameMain.Instance.CMSystem.ManAlpha / 100f;
  199. this.setting_man_alpha_ = GameMain.Instance.CMSystem.ManAlpha;
  200. this.man_alpha_slider_.onChange.Clear();
  201. EventDelegate.Add(this.man_alpha_slider_.onChange, new EventDelegate.Callback(this.ChangeSliderValue));
  202. this.undressing_mgr_.SetMaid(this.maid_, null);
  203. this.undressing_mgr_.SetMaskMode(UndressingManager.UnitType.全着衣, UndressingManager.MaskStatus.On);
  204. }
  205. private IEnumerator CallFtFiles()
  206. {
  207. while (this.yotogi_mgr_.IsAllCharaBusy())
  208. {
  209. yield return null;
  210. }
  211. for (int i = 0; i < GameMain.Instance.CharacterMgr.GetMaidCount(); i++)
  212. {
  213. Maid maid = GameMain.Instance.CharacterMgr.GetMaid(i);
  214. if (maid != null && maid.Visible)
  215. {
  216. maid.AllProcPropSeqStart();
  217. }
  218. }
  219. GameMain.Instance.CharacterMgr.DeactivateManAll();
  220. foreach (KeyValuePair<int, string> keyValuePair in this.playing_skill_.skill_pair.base_data.man_setting)
  221. {
  222. Maid maid2 = GameMain.Instance.CharacterMgr.CharaVisible(keyValuePair.Key, true, true);
  223. if (!string.IsNullOrEmpty(keyValuePair.Value))
  224. {
  225. CharacterMgr.npcDatas[keyValuePair.Value].Apply(maid2, true);
  226. }
  227. maid2.body0.SetChinkoVisible(true);
  228. maid2.AllProcPropSeqStart();
  229. }
  230. while (this.yotogi_mgr_.IsAllCharaBusy())
  231. {
  232. yield return null;
  233. }
  234. this.script_mgr_.is_motion_blend = true;
  235. CharacterMgr chara_mgr = GameMain.Instance.CharacterMgr;
  236. if (this.skill_pair_.base_data != null && this.skill_pair_.base_data.start_call_file != string.Empty)
  237. {
  238. string str = this.CallNormalFile(this.skill_pair_.base_data.start_call_file, string.Empty);
  239. this.yotogi_mgr_.AddDebugLog("FTファイル[" + str + "]を呼び出しました");
  240. }
  241. this.camera_move_support_.SaveCameraPosition();
  242. if (this.skill_pair_.base_data != null && this.skill_pair_.base_data.start_call_file2 != string.Empty)
  243. {
  244. string text = string.Empty;
  245. string text2 = string.Empty;
  246. if (0 <= this.maid_status_.currentExcite && this.maid_status_.currentExcite <= 200)
  247. {
  248. if (this.playing_skill_level_ == 3)
  249. {
  250. text = "*KA1";
  251. }
  252. else
  253. {
  254. text = "*KA0";
  255. }
  256. text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
  257. this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
  258. {
  259. "性格FTファイルKA[",
  260. text2,
  261. "][",
  262. text,
  263. "]を呼び出しました"
  264. }));
  265. }
  266. else
  267. {
  268. text = "*KA2";
  269. text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
  270. this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
  271. {
  272. "性格FTファイルKA[",
  273. text2,
  274. "][",
  275. text,
  276. "]を呼び出しました"
  277. }));
  278. }
  279. text = "*" + YotogiPlay.GetRRType(this.maid_.status.currentExcite).ToString();
  280. text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
  281. this.yotogi_mgr_.AddDebugLog("性格FTファイル[" + text2 + "]を呼び出しました");
  282. }
  283. while (this.yotogi_mgr_.yotogi_kag.kag.GetCurrentLabel() != "*finish")
  284. {
  285. yield return null;
  286. }
  287. this.doneFtFileCall = true;
  288. this.yotogi_mgr_.uiVisible = true;
  289. this.yotogi_mgr_.messageWindowVisible = false;
  290. yield break;
  291. }
  292. protected override bool IsCallFadeIn()
  293. {
  294. return this.doneFtFileCall;
  295. }
  296. public override void Update()
  297. {
  298. base.Update();
  299. if (GameMain.Instance.CMSystem.ManAlpha != this.setting_man_alpha_)
  300. {
  301. this.man_alpha_slider_.value = (float)GameMain.Instance.CMSystem.ManAlpha / 100f;
  302. this.setting_man_alpha_ = GameMain.Instance.CMSystem.ManAlpha;
  303. }
  304. if (base.fade_status != WfScreenChildren.FadeStatus.Wait)
  305. {
  306. return;
  307. }
  308. if (0 < this.control_mask_tick_count && this.control_mask_tick_count <= GameMain.tick_count)
  309. {
  310. this.SetControlMask(false, false);
  311. }
  312. if (!this.lockRepeatVoiceUpdate)
  313. {
  314. for (int i = 0; i < this.repeat_voice_data_list_.Count; i++)
  315. {
  316. YotogiPlayManager.RepeatVoiceData repeatVoiceData = this.repeat_voice_data_list_[i];
  317. if (!string.IsNullOrEmpty(repeatVoiceData.repeat_voice_file))
  318. {
  319. Maid maid;
  320. if (0 < repeatVoiceData.maid_no)
  321. {
  322. maid = GameMain.Instance.CharacterMgr.GetMaid(repeatVoiceData.maid_no);
  323. }
  324. else
  325. {
  326. maid = this.maid_;
  327. }
  328. if (!maid.AudioMan.isPlay())
  329. {
  330. repeatVoiceData.elapsed_time += (int)(Time.deltaTime * 1000f);
  331. if (this.kRepeatWaitTime <= repeatVoiceData.elapsed_time)
  332. {
  333. repeatVoiceData.elapsed_time = 0;
  334. if (maid != null && maid.AudioMan != null)
  335. {
  336. maid.AudioMan.LoadPlay(repeatVoiceData.repeat_voice_file, 0f, false, true);
  337. if (this.subtitlesManager != null && !string.IsNullOrEmpty(repeatVoiceData.text))
  338. {
  339. this.message_display_time_ = float.MaxValue;
  340. this.subtitlesManager.SetTextFromScriptStyle(repeatVoiceData.text);
  341. }
  342. }
  343. }
  344. }
  345. }
  346. }
  347. }
  348. if (this.is_faint_end && !GameMain.Instance.MainCamera.IsFadeProcNoUI() && GameMain.Instance.SysDlg.IsDecided)
  349. {
  350. bool flag = this.playing_skill_ != null && this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint;
  351. if (!flag)
  352. {
  353. this.CallNormalFile("?_YOTOGI_SYSTEM_KIZETU.ks", string.Empty);
  354. GameMain.Instance.MainCamera.FadeOutNoUI(base.fade_time, true);
  355. }
  356. if (this.playing_skill_.skill_pair.base_data.connect_faint_skill != null)
  357. {
  358. GameMain.Instance.SysDlg.Show("気絶しました。\n気絶したメイドを責めますか?", SystemDialog.TYPE.YES_NO, delegate
  359. {
  360. GameMain.Instance.SysDlg.Close();
  361. this.yotogi_mgr_.AddPlaySkill(this.playing_skill_.skill_pair.base_data.connect_faint_skill);
  362. this.playing_skill_no_ = this.yotogi_mgr_.play_skill_array.Length - 2;
  363. this.maid_status_.currentMind = this.maid_status_.maxMind;
  364. this.Finish();
  365. }, delegate
  366. {
  367. GameMain.Instance.SysDlg.Close();
  368. this.playing_skill_no_ = -1;
  369. this.Finish();
  370. });
  371. }
  372. else if (flag)
  373. {
  374. this.playing_skill_no_ = -1;
  375. this.Finish();
  376. }
  377. else
  378. {
  379. GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/気絶して夜伽終了報告", SystemDialog.TYPE.OK, delegate
  380. {
  381. GameMain.Instance.SysDlg.Close();
  382. this.playing_skill_no_ = -1;
  383. this.Finish();
  384. }, null);
  385. }
  386. this.is_faint_end = false;
  387. }
  388. }
  389. public bool NextSkill()
  390. {
  391. this.message_display_time_ = 0f;
  392. int num = (!YotogiStageSelectManager.SelectedStageRefDayTime) ? 1 : 0;
  393. string text = YotogiStageSelectManager.SelectedStage.prefabName[num];
  394. if (0 <= text.IndexOf("?"))
  395. {
  396. text = ScriptManager.ReplacePersonal(this.maid_, text);
  397. }
  398. GameMain.Instance.BgMgr.ChangeBg(text);
  399. this.ClearVoice();
  400. this.SetRepeatVoiceFile(string.Empty, 0);
  401. this.SetControlMask(false, false);
  402. this.play_command_id_.Clear();
  403. this.playing_skill_no_++;
  404. if (this.maid_status_.currentMind <= 0)
  405. {
  406. this.maid_status_.currentMind = this.maid_status_.maxMind / 2;
  407. }
  408. else
  409. {
  410. this.maid_status_.currentMind = this.maid_status_.maxMind;
  411. }
  412. this.param_basic_bar_.SetCurrentExcite(this.maid_status_.currentExcite, false);
  413. this.param_basic_bar_.SetCurrentMind(this.maid_status_.currentMind, false);
  414. this.param_basic_bar_.SetCurrentSensual(this.maid_status_.currentSensual, false);
  415. if (this.paramenter_viewer_ != null && this.paramenter_viewer_.gameObject.activeSelf)
  416. {
  417. this.paramenter_viewer_.SetMaid(this.maid_);
  418. this.paramenter_viewer_.UpdateTextCommon();
  419. this.paramenter_viewer_.UpdateTextParam();
  420. }
  421. this.param_scroll_.Init();
  422. this.commandClickCountSingle.Clear();
  423. if (this.yotogi_mgr_.play_skill_array[this.playing_skill_no_].skill_pair.base_data == null)
  424. {
  425. return false;
  426. }
  427. this.UpdateSkillTower();
  428. this.playing_skill_ = this.yotogi_mgr_.play_skill_array[this.playing_skill_no_];
  429. this.skill_pair_ = this.playing_skill_.skill_pair;
  430. if (this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint)
  431. {
  432. this.SetSkillTowerButtonEnabled(false);
  433. }
  434. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  435. for (int i = 1; i < characterMgr.GetMaidCount(); i++)
  436. {
  437. Maid maid = characterMgr.GetMaid(i);
  438. if (maid != null && maid.Visible)
  439. {
  440. maid.OpenMouth(false);
  441. maid.Visible = false;
  442. }
  443. }
  444. List<Maid> list = new List<Maid>();
  445. if (this.playing_skill_.skill_pair.base_data != null && 1 < this.playing_skill_.skill_pair.base_data.player_num)
  446. {
  447. for (int j = 1; j < this.playing_skill_.skill_pair.base_data.player_num; j++)
  448. {
  449. Maid maid2 = characterMgr.GetMaid(j);
  450. if (maid2 != null)
  451. {
  452. maid2.OpenMouth(false);
  453. maid2.Visible = true;
  454. list.Add(maid2);
  455. }
  456. }
  457. }
  458. this.undressing_mgr_.SetMaid(this.maid_, list.ToArray());
  459. if (!this.maid_.Visible)
  460. {
  461. this.maid_.Visible = true;
  462. }
  463. this.replace_personal_target_maid_array_ = new Maid[1 + list.Count];
  464. this.replace_personal_target_maid_array_[0] = this.maid_;
  465. for (int k = 0; k < list.Count; k++)
  466. {
  467. this.replace_personal_target_maid_array_[k + 1] = list[k];
  468. }
  469. this.playing_skill_.is_play = true;
  470. if (this.command_menu != null)
  471. {
  472. this.command_menu.ReserveSkillCommand(this.skill_pair_.base_data.command);
  473. this.command_menu.visible = true;
  474. }
  475. this.command_factory_.ReserveSkillCommand(this.skill_pair_.base_data.command);
  476. this.valid_command_dic_.Clear();
  477. Skill.Data.Command.Data[] data = this.skill_pair_.base_data.command.data;
  478. if (this.skill_pair_.skill_data == null)
  479. {
  480. this.playing_skill_level_ = ((this.yotogi_mgr_.fix_skill_level != 0) ? this.yotogi_mgr_.fix_skill_level : 3);
  481. }
  482. else
  483. {
  484. this.playing_skill_level_ = ((this.yotogi_mgr_.fix_skill_level != 0) ? this.yotogi_mgr_.fix_skill_level : this.skill_pair_.skill_data.level);
  485. }
  486. for (int l = 0; l < data.Length; l++)
  487. {
  488. this.valid_command_dic_.Add(data[l]);
  489. }
  490. this.UpdateCommand();
  491. this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
  492. {
  493. "スキル[",
  494. this.skill_pair_.base_data.name,
  495. " Lv.",
  496. this.playing_skill_level_.ToString(),
  497. "]を開始開始しました"
  498. }));
  499. return true;
  500. }
  501. public void Suspend(Skill.Data.Command.Data suspendCommandData)
  502. {
  503. if (GameMain.Instance.MainCamera.IsFadeProc())
  504. {
  505. Debug.LogError("failed to Yotogi Suspend.");
  506. return;
  507. }
  508. this.yotogi_mgr_.yotogi_kag.enabled = false;
  509. this.SetControlMask(true, true);
  510. this.lockRepeatVoiceUpdate = true;
  511. this.suspendStoreData = new YotogiPlay.SuspendStore();
  512. this.suspendStoreData.comand = suspendCommandData;
  513. GameMain.Instance.MainCamera.FadeOut(0.5f, false, delegate
  514. {
  515. this.yotogi_mgr_.uiVisible = false;
  516. GameMain.Instance.ScriptMgr.adv_kag.JumpLabel("*サスペンド");
  517. GameMain.Instance.ScriptMgr.adv_kag.Exec();
  518. }, true, default(Color));
  519. }
  520. public void ReturnSuspend()
  521. {
  522. if (GameMain.Instance.MainCamera.IsFadeProc() || this.suspendStoreData == null)
  523. {
  524. Debug.LogError("failed to Yotogi ReturnSuspend.");
  525. return;
  526. }
  527. this.yotogi_mgr_.yotogi_kag.enabled = true;
  528. this.yotogi_mgr_.uiVisible = true;
  529. this.yotogi_mgr_.messageWindowVisible = false;
  530. if (this.suspendStoreData.comand != null)
  531. {
  532. if (!string.IsNullOrEmpty(this.suspendStoreData.comand.basic.attribute_type))
  533. {
  534. string attribute_type = this.suspendStoreData.comand.basic.attribute_type;
  535. if (!this.commandClickCountSingle.ContainsKey(attribute_type))
  536. {
  537. this.commandClickCountSingle.Add(attribute_type, 0);
  538. }
  539. if (!this.commandClickCountTotal.ContainsKey(attribute_type))
  540. {
  541. this.commandClickCountTotal.Add(attribute_type, 0);
  542. }
  543. Dictionary<string, int> dictionary;
  544. string key;
  545. (dictionary = this.commandClickCountSingle)[key = attribute_type] = dictionary[key] - 1;
  546. string key2;
  547. (dictionary = this.commandClickCountTotal)[key2 = attribute_type] = dictionary[key2] - 1;
  548. }
  549. this.OnClickCommand(this.suspendStoreData.comand);
  550. }
  551. this.suspendStoreData = null;
  552. GameMain.Instance.MainCamera.FadeIn(0.5f, false, delegate
  553. {
  554. this.SetControlMask(false, true);
  555. }, true, true, default(Color));
  556. }
  557. public string CallNormalFile(string file, string label)
  558. {
  559. string text = ScriptManager.ReplacePersonal(this.replace_personal_target_maid_array_, file);
  560. GameMain.Instance.ScriptMgr.EvalScript("global.__skill_first_file = '" + text + "';");
  561. if (label == null)
  562. {
  563. label = string.Empty;
  564. }
  565. GameMain.Instance.ScriptMgr.EvalScript("global.__skill_first_file_label = '" + label + "';");
  566. GameMain.Instance.ScriptMgr.LoadYotogiScript("yotogi_skill_call_main.ks", string.Empty);
  567. return text;
  568. }
  569. public void ApplyExecCommandStatus(Maid maid, Skill.Data.Command.Data cm)
  570. {
  571. Skill.Data.Command.Data.Status status = cm.status;
  572. bool enabledYotogiStatusLock = this.maid_.status.enabledYotogiStatusLock;
  573. Status maid_status = maid.status;
  574. BonusStatus bonusStatus = this.bonusCorrectionStatus_;
  575. Func<float, int> feiling_func = (float ceiling_num) => (0f > ceiling_num) ? ((int)System.Math.Floor((double)ceiling_num)) : ((int)System.Math.Ceiling((double)ceiling_num));
  576. Func<int, int, int> func = delegate(int calc_a_command_num, int calc_a_correction_num)
  577. {
  578. float num4 = ((float)calc_a_command_num * (100f + (float)calc_a_correction_num) + (float)((this.playing_skill_level_ - 1) * 10)) / 100f;
  579. int num5 = maid_status.studyRate / 10;
  580. float num6 = 100f - (float)((100 - num5) / 10 * 5);
  581. num4 *= num6 * 0.01f;
  582. return feiling_func(num4);
  583. };
  584. Func<int, int, int> func2 = delegate(int calc_b_command_num, int calc_a_correction_num)
  585. {
  586. float arg = (float)calc_b_command_num * (100f + (float)calc_a_correction_num) / 100f;
  587. return feiling_func(arg);
  588. };
  589. Func<int, int, int> func3 = (int calc_a_command_num, int calc_a_correction_num) => calc_a_command_num;
  590. int num = (!this.is_excite_lock_) ? func2(status.excitement, bonusStatus.excite) : 0;
  591. if (cm.status.bonusExcitementUpLine <= this.maid_.status.currentExcite || cm.status.bonusExcitementDownLine > this.maid_.status.currentExcite)
  592. {
  593. num = (int)Mathf.Floor((float)num * 1.2f);
  594. }
  595. maid_status.currentExcite += num;
  596. if (this.is_free_mode || this.is_vr_mode)
  597. {
  598. return;
  599. }
  600. if (!enabledYotogiStatusLock)
  601. {
  602. maid_status.baseLovely += func3(status.lovely, bonusStatus.lovely);
  603. maid_status.baseElegance += func3(status.elegance, bonusStatus.elegance);
  604. maid_status.baseCharm += func3(status.charm, bonusStatus.charm);
  605. }
  606. if (!this.estrusMode)
  607. {
  608. maid_status.currentMind += func(status.mind, bonusStatus.mind);
  609. maid_status.currentSensual += func(status.sensual, bonusStatus.sensual);
  610. }
  611. else
  612. {
  613. maid_status.currentSensual += func(status.cost_sensual, bonusStatus.sensual);
  614. }
  615. if (!enabledYotogiStatusLock)
  616. {
  617. maid_status.baseInyoku += func(status.inyoku, bonusStatus.inyoku);
  618. maid_status.baseMvalue += func(status.m_value, bonusStatus.mvalue);
  619. maid_status.baseHentai += func(status.hentai, bonusStatus.hentai);
  620. maid_status.baseHousi += func(status.housi, bonusStatus.housi);
  621. maid_status.baseReception += func(status.reception, bonusStatus.reception);
  622. maid_status.baseTeachRate += func(status.teach_rate, bonusStatus.teachRate);
  623. }
  624. int num2 = this.maid_.status.inyoku + this.maid_.status.housi + this.maid_.status.hentai + this.maid_.status.mvalue;
  625. int num3 = num2 / 2000 * 2;
  626. if (!this.playing_skill_.skill_pair.lock_skill_exp)
  627. {
  628. this.playing_skill_.exp += status.skill_exp + num3;
  629. }
  630. }
  631. public void SetMessageText(string text)
  632. {
  633. }
  634. public void SetMessageTextDisplayTime(int time)
  635. {
  636. }
  637. public void SetRepeatVoiceFile(string file_name, int maid_no)
  638. {
  639. this.repeat_voice_data_list_.Clear();
  640. this.AddRepeatVoiceFile(file_name, maid_no);
  641. }
  642. public void AddRepeatVoiceFile(string file_name, int maid_no)
  643. {
  644. YotogiPlayManager.RepeatVoiceData repeatVoiceData = new YotogiPlayManager.RepeatVoiceData();
  645. repeatVoiceData.repeat_voice_file = file_name;
  646. repeatVoiceData.maid_no = maid_no;
  647. repeatVoiceData.elapsed_time = this.kRepeatWaitTime;
  648. this.repeat_voice_data_list_.Add(repeatVoiceData);
  649. }
  650. public void AddRepeatVoiceText(string text)
  651. {
  652. }
  653. public void ClearRepeatVoiceData()
  654. {
  655. this.repeat_voice_data_list_.Clear();
  656. }
  657. public void ClearVoice()
  658. {
  659. GameMain.Instance.SoundMgr.VoiceStopAll();
  660. foreach (YotogiPlayManager.RepeatVoiceData repeatVoiceData in this.repeat_voice_data_list_)
  661. {
  662. repeatVoiceData.elapsed_time = 0;
  663. }
  664. }
  665. private void OnClickCommand(Skill.Data.Command.Data command_data)
  666. {
  667. if (this.yotogi_mgr_.IsAllCharaBusy())
  668. {
  669. this.yotogi_mgr_.AddDebugLog("============================================");
  670. this.yotogi_mgr_.AddDebugLog("×コマンド[" + command_data.basic.name + "]が押されました");
  671. this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
  672. this.yotogi_mgr_.AddDebugLog("============================================");
  673. return;
  674. }
  675. this.yotogi_mgr_.AddDebugLog("============================================");
  676. this.yotogi_mgr_.AddDebugLog("■コマンド[" + command_data.basic.name + "]が押されました");
  677. if (!string.IsNullOrEmpty(command_data.basic.attribute_type))
  678. {
  679. string attribute_type = command_data.basic.attribute_type;
  680. if (!this.commandClickCountSingle.ContainsKey(attribute_type))
  681. {
  682. this.commandClickCountSingle.Add(attribute_type, 0);
  683. }
  684. if (!this.commandClickCountTotal.ContainsKey(attribute_type))
  685. {
  686. this.commandClickCountTotal.Add(attribute_type, 0);
  687. }
  688. Dictionary<string, int> dictionary;
  689. string key;
  690. (dictionary = this.commandClickCountSingle)[key = attribute_type] = dictionary[key] + 1;
  691. string key2;
  692. (dictionary = this.commandClickCountTotal)[key2 = attribute_type] = dictionary[key2] + 1;
  693. }
  694. if (!string.IsNullOrEmpty(command_data.basic.call_file.adv_hook_file))
  695. {
  696. bool flag = false;
  697. string key3 = string.Empty;
  698. string text = string.Empty;
  699. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file = '';");
  700. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label = '';");
  701. this.CallNormalFile(command_data.basic.call_file.adv_hook_file, "*top");
  702. using (TJSVariant tjsvariant = new TJSVariant())
  703. {
  704. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file != ''", tjsvariant);
  705. flag = tjsvariant.AsBool();
  706. if (flag)
  707. {
  708. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file", tjsvariant);
  709. key3 = tjsvariant.AsString();
  710. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label != ''", tjsvariant);
  711. if (tjsvariant.AsBool())
  712. {
  713. GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label", tjsvariant);
  714. text = tjsvariant.AsString();
  715. }
  716. if (string.IsNullOrEmpty(text))
  717. {
  718. flag = !this.calledAdvFiles.ContainsKey(key3);
  719. }
  720. else
  721. {
  722. flag = (!this.calledAdvFiles.ContainsKey(key3) || !this.calledAdvFiles[key3].Contains(text));
  723. }
  724. if (flag)
  725. {
  726. if (!this.calledAdvFiles.ContainsKey(key3))
  727. {
  728. this.calledAdvFiles.Add(key3, new HashSet<string>());
  729. }
  730. if (!string.IsNullOrEmpty(text) && !this.calledAdvFiles[key3].Contains(text))
  731. {
  732. this.calledAdvFiles[key3].Add(text);
  733. }
  734. }
  735. }
  736. }
  737. if (flag)
  738. {
  739. this.Suspend(command_data);
  740. return;
  741. }
  742. }
  743. this.play_command_id_.Add(command_data.basic.id);
  744. this.backup_maid_param_ = YotogiPlay.Param.Create(this.maid_);
  745. this.ApplyExecCommandStatus(this.maid_, command_data);
  746. if (this.paramenter_viewer_ != null && this.paramenter_viewer_.gameObject.activeSelf)
  747. {
  748. this.paramenter_viewer_.UpdateTextParam();
  749. }
  750. if (!this.is_free_mode && this.playing_skill_.skill_pair.base_data.command.commandCoundId == command_data.basic.id)
  751. {
  752. this.playing_skill_.skill_pair.skill_data.commandCount++;
  753. }
  754. if (command_data.basic.isEstrusTriggerCommand)
  755. {
  756. this.estrusMode = true;
  757. }
  758. this.particleBreathe = !command_data.basic.isStopParticleBreathe;
  759. if (command_data.basic.isStopParticleLoveLiquid)
  760. {
  761. this.particleLoveLiquidType = 0;
  762. }
  763. else
  764. {
  765. if ((command_data.basic.command_type == Yotogi.SkillCommandType.挿入 || command_data.basic.command_type == Yotogi.SkillCommandType.継続) && this.player_state_ != YotogiPlay.PlayerState.Insert)
  766. {
  767. foreach (GameObject gameObject in this.loveLiquidObjects)
  768. {
  769. gameObject.GetComponent<ParticleSystem>().main.startDelay = 2.5f;
  770. }
  771. }
  772. else if (this.particleLoveLiquidType == 0)
  773. {
  774. foreach (GameObject gameObject2 in this.loveLiquidObjects)
  775. {
  776. gameObject2.GetComponent<ParticleSystem>().main.startDelay = 0f;
  777. }
  778. }
  779. this.particleLoveLiquidType = ((200 > this.maid_.status.currentExcite) ? ((100 > this.maid_.status.currentExcite) ? 1 : 2) : 3);
  780. }
  781. this.param_basic_bar_.SetCurrentMind(this.maid_status_.currentMind, true);
  782. this.param_basic_bar_.SetCurrentSensual(this.maid_status_.currentSensual, true);
  783. this.param_basic_bar_.SetCurrentExcite(this.maid_status_.currentExcite, true);
  784. YotogiPlay.Param param = YotogiPlay.Param.Create(this.maid_) - this.backup_maid_param_;
  785. Action<List<KeyValuePair<string, int>>, string, int> action = delegate(List<KeyValuePair<string, int>> list, string name, int num)
  786. {
  787. if (num == 0)
  788. {
  789. return;
  790. }
  791. list.Add(new KeyValuePair<string, int>(name, num));
  792. };
  793. List<KeyValuePair<string, int>> list2 = new List<KeyValuePair<string, int>>();
  794. action(list2, "興奮", param.currentExcite);
  795. action(list2, "精神", param.currentMind);
  796. action(list2, "官能", param.cur_sensory);
  797. action(list2, "淫欲", param.inyoku);
  798. action(list2, "M性", param.m_value);
  799. action(list2, "変態", param.hentai);
  800. action(list2, "奉仕", param.housi);
  801. action(list2, "可憐", param.lovely);
  802. action(list2, "気品", param.elegance);
  803. action(list2, "魅惑", param.charm);
  804. action(list2, "接待", param.reception);
  805. action(list2, "指導", param.teach_rate / 10);
  806. this.param_scroll_.CallFadeIn(list2);
  807. this.ClearCommandFile();
  808. this.SetMessageTextDisplayTime(0);
  809. Maid maid = this.maid_;
  810. if (0 < command_data.basic.ref_maid_no)
  811. {
  812. Maid maid2 = GameMain.Instance.CharacterMgr.GetMaid(command_data.basic.ref_maid_no);
  813. if (maid2 != null)
  814. {
  815. maid = maid2;
  816. }
  817. int num3 = -1;
  818. for (int k = 1; k < this.replace_personal_target_maid_array_.Length; k++)
  819. {
  820. if (this.replace_personal_target_maid_array_[k] == maid)
  821. {
  822. num3 = k;
  823. break;
  824. }
  825. }
  826. if (0 < num3)
  827. {
  828. this.replace_personal_target_maid_array_[0] = maid;
  829. this.replace_personal_target_maid_array_[num3] = this.maid_;
  830. }
  831. }
  832. this.lockRepeatVoiceUpdate = false;
  833. Yotogi.SkillCommandType command_type = command_data.basic.command_type;
  834. if (command_data.basic.isAcquisitionPropensityCommand)
  835. {
  836. this.yotogi_mgr_.AddDebugLog("プレイ 性癖-覚醒");
  837. this.SetControlMask(true, false);
  838. int id = command_data.basic.learning_propensity.id;
  839. if (!this.is_free_mode && !this.yotogi_mgr_.acquired_propensityid_list.Contains(id))
  840. {
  841. this.yotogi_mgr_.acquired_propensityid_list.Add(id);
  842. }
  843. this.CallCommandFile(command_data.basic.call_file.propensity_arousal_file, string.Empty, true);
  844. this.PlayRRFile(command_data);
  845. }
  846. else if (command_type == Yotogi.SkillCommandType.挿入 || command_type == Yotogi.SkillCommandType.継続)
  847. {
  848. if (this.skill_pair_.base_data.specialConditionType == Skill.Data.SpecialConditionType.Drunk)
  849. {
  850. this.PlayDrunkContinue(command_data, maid, true);
  851. }
  852. else
  853. {
  854. this.PlayNormalContinue(command_data, maid, true);
  855. }
  856. this.PlayRRFile(command_data);
  857. }
  858. else if (command_type == Yotogi.SkillCommandType.単発 || command_type == Yotogi.SkillCommandType.単発_挿入)
  859. {
  860. bool flag2 = false;
  861. if (command_data.basic.isPropensityCommand)
  862. {
  863. flag2 = this.maid_.status.propensitys.ContainsKey(command_data.basic.learning_propensity.id);
  864. }
  865. if (this.skill_pair_.base_data.specialConditionType == Skill.Data.SpecialConditionType.Drunk)
  866. {
  867. this.PlayDrunkSingle(command_data, maid, true);
  868. }
  869. else if (flag2)
  870. {
  871. this.PlayProclivitySingle(command_data, true);
  872. }
  873. else
  874. {
  875. this.PlayNormalSingle(command_data, maid, true);
  876. }
  877. this.PlayRRFile(command_data);
  878. }
  879. else if (command_type == Yotogi.SkillCommandType.絶頂)
  880. {
  881. this.PlayNormalClimax(command_data, false);
  882. }
  883. else if (command_type == Yotogi.SkillCommandType.止める)
  884. {
  885. this.PlayNormalStop(command_data, true);
  886. this.PlayRRFile(command_data);
  887. }
  888. if (command_type == Yotogi.SkillCommandType.挿入 || command_type == Yotogi.SkillCommandType.単発_挿入)
  889. {
  890. this.player_state_ = YotogiPlay.PlayerState.Insert;
  891. }
  892. else if (command_type == Yotogi.SkillCommandType.止める)
  893. {
  894. this.player_state_ = YotogiPlay.PlayerState.Normal;
  895. }
  896. else if (command_type == Yotogi.SkillCommandType.絶頂)
  897. {
  898. this.player_state_ = YotogiPlay.PlayerState.Normal;
  899. }
  900. this.UpdateCommand();
  901. this.yotogi_mgr_.AddDebugLog("============================================");
  902. if (0 < command_data.basic.ref_maid_no && maid != this.maid_)
  903. {
  904. int num2 = -1;
  905. for (int l = 1; l < this.replace_personal_target_maid_array_.Length; l++)
  906. {
  907. if (this.replace_personal_target_maid_array_[l] == this.maid_)
  908. {
  909. num2 = l;
  910. break;
  911. }
  912. }
  913. if (0 < num2)
  914. {
  915. this.replace_personal_target_maid_array_[0] = this.maid_;
  916. this.replace_personal_target_maid_array_[num2] = maid;
  917. }
  918. }
  919. }
  920. private void PlayRRFile(Skill.Data.Command.Data command_data)
  921. {
  922. Yotogi.RRType rrtype = YotogiPlay.GetRRType(this.maid_.status.currentExcite);
  923. string text = (!this.estrusMode) ? "*" : "*発情";
  924. text += rrtype.ToString();
  925. this.CallCommandFile(command_data.basic.call_file.rr, text, false);
  926. }
  927. private void PlayNormalContinue(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
  928. {
  929. this.yotogi_mgr_.AddDebugLog("プレイ 通常-挿入,継続系");
  930. if (this.player_state_ != YotogiPlay.PlayerState.Insert)
  931. {
  932. this.PlayInsert(command_data, lockRRUpdate);
  933. }
  934. Relation relation = target_maid.status.relation;
  935. string text = string.Empty;
  936. string text2 = string.Empty;
  937. Yotogi.RCType rctype = YotogiPlay.GetRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
  938. if (rctype != Yotogi.RCType.RCNull)
  939. {
  940. string str = rctype.ToString();
  941. this.yotogi_mgr_.AddDebugLog("RC HIT!! " + str);
  942. text = command_data.basic.call_file.rc;
  943. if (this.estrusMode)
  944. {
  945. text2 = ((this.playing_skill_level_ != 3) ? "*初々しい発情" : "*慣れ発情");
  946. text2 += str;
  947. }
  948. else if (this.playing_skill_level_ == 3)
  949. {
  950. if (relation == Relation.Lover)
  951. {
  952. text2 = "*慣れ恋人" + str;
  953. }
  954. else
  955. {
  956. text2 = "*緊張orお近づきor信頼" + str;
  957. }
  958. }
  959. else if (this.playing_skill_level_ == 2 || relation == Relation.Trust)
  960. {
  961. text2 = "*フラット、変化進行" + str;
  962. }
  963. else if (relation != Relation.Contact)
  964. {
  965. if (relation == Relation.Lover)
  966. {
  967. text2 = "*初々しい恋人" + str;
  968. }
  969. }
  970. else
  971. {
  972. text2 = "*初々しいお近づき" + str;
  973. }
  974. }
  975. else
  976. {
  977. this.PlayInsert2(command_data, lockRRUpdate);
  978. Yotogi.RRCType rrctype = YotogiPlay.GetRRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
  979. HashSet<Yotogi.RRCType> hashSet = new HashSet<Yotogi.RRCType>();
  980. if (this.estrusMode)
  981. {
  982. hashSet.Add(Yotogi.RRCType.RRC1);
  983. hashSet.Add(Yotogi.RRCType.RRC3);
  984. hashSet.Add(Yotogi.RRCType.RRC4);
  985. hashSet.Add(Yotogi.RRCType.RRC6);
  986. }
  987. if (rrctype == Yotogi.RRCType.RRC9 && this.estrusMode && this.maid_.status.currentExcite < 300)
  988. {
  989. rrctype = Yotogi.RRCType.RRCNull;
  990. }
  991. if (rrctype != Yotogi.RRCType.RRCNull && (!this.estrusMode || !hashSet.Contains(rrctype)))
  992. {
  993. if (this.estrusMode)
  994. {
  995. Dictionary<Yotogi.RRCType, Yotogi.RRCType> dictionary = new Dictionary<Yotogi.RRCType, Yotogi.RRCType>();
  996. dictionary.Add(Yotogi.RRCType.RRC2, Yotogi.RRCType.RRC1);
  997. dictionary.Add(Yotogi.RRCType.RRC5, Yotogi.RRCType.RRC2);
  998. dictionary.Add(Yotogi.RRCType.RRC7, Yotogi.RRCType.RRC3);
  999. dictionary.Add(Yotogi.RRCType.RRC8, Yotogi.RRCType.RRC4);
  1000. dictionary.Add(Yotogi.RRCType.RRC9, Yotogi.RRCType.RRC5);
  1001. if (dictionary.ContainsKey(rrctype))
  1002. {
  1003. rrctype = dictionary[rrctype];
  1004. }
  1005. }
  1006. string str2 = rrctype.ToString();
  1007. if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2 || rrctype == Yotogi.RRCType.RRC_1 || rrctype == Yotogi.RRCType.RRC_2)
  1008. {
  1009. text2 = "*初々しい";
  1010. }
  1011. else if (this.playing_skill_level_ == 3)
  1012. {
  1013. text2 = "*慣れ";
  1014. }
  1015. if (this.estrusMode)
  1016. {
  1017. text2 += "発情";
  1018. }
  1019. text2 += str2;
  1020. if (!string.IsNullOrEmpty(text2))
  1021. {
  1022. text = command_data.basic.call_file.rrc;
  1023. }
  1024. }
  1025. }
  1026. if (text != string.Empty)
  1027. {
  1028. this.CallCommandFile(text, text2, lockRRUpdate);
  1029. }
  1030. }
  1031. private void PlayNormalClimax(Skill.Data.Command.Data command_data, bool lockRRUpdate)
  1032. {
  1033. this.yotogi_mgr_.AddDebugLog("プレイ 通常-絶頂系");
  1034. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.maid_.status.currentExcite);
  1035. string file = command_data.basic.call_file.normal;
  1036. string text = string.Empty;
  1037. if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
  1038. {
  1039. text = ((this.backup_maid_param_.currentExcite >= 200) ? "*SYA2" : "*SYA1");
  1040. }
  1041. else
  1042. {
  1043. text = ((this.backup_maid_param_.currentExcite >= 200) ? "*SYA4" : "*SYA3");
  1044. }
  1045. if (this.estrusMode)
  1046. {
  1047. text = text.Replace("*", "*発情");
  1048. }
  1049. this.CallCommandFile(file, text, lockRRUpdate);
  1050. file = command_data.basic.call_file.rr;
  1051. if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
  1052. {
  1053. if (excitementStatus == Yotogi.ExcitementStatus.Minus || excitementStatus == Yotogi.ExcitementStatus.Small)
  1054. {
  1055. text = "*ZIG1";
  1056. }
  1057. else if (excitementStatus == Yotogi.ExcitementStatus.Medium)
  1058. {
  1059. text = "*ZIG2";
  1060. }
  1061. else if (excitementStatus == Yotogi.ExcitementStatus.Large)
  1062. {
  1063. text = "*ZIG3";
  1064. }
  1065. }
  1066. else if (excitementStatus == Yotogi.ExcitementStatus.Minus || excitementStatus == Yotogi.ExcitementStatus.Small)
  1067. {
  1068. text = "*ZIG4";
  1069. }
  1070. else if (excitementStatus == Yotogi.ExcitementStatus.Medium)
  1071. {
  1072. text = "*ZIG5";
  1073. }
  1074. else if (excitementStatus == Yotogi.ExcitementStatus.Large)
  1075. {
  1076. text = "*ZIG6";
  1077. }
  1078. if (this.estrusMode)
  1079. {
  1080. text = text.Replace("*", "*発情");
  1081. }
  1082. this.CallCommandFile(file, text, lockRRUpdate);
  1083. }
  1084. private void PlayNormalStop(Skill.Data.Command.Data command_data, bool lockRRUpdate)
  1085. {
  1086. this.yotogi_mgr_.AddDebugLog("プレイ 通常-止める系");
  1087. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.maid_.status.currentExcite);
  1088. string normal = command_data.basic.call_file.normal;
  1089. string text = string.Empty;
  1090. switch (excitementStatus)
  1091. {
  1092. case Yotogi.ExcitementStatus.Minus:
  1093. text = "*YAM1";
  1094. break;
  1095. case Yotogi.ExcitementStatus.Small:
  1096. text = "*YAM2";
  1097. break;
  1098. case Yotogi.ExcitementStatus.Medium:
  1099. text = "*YAM3";
  1100. break;
  1101. case Yotogi.ExcitementStatus.Large:
  1102. text = "*YAM4";
  1103. break;
  1104. }
  1105. if (this.estrusMode)
  1106. {
  1107. text = text.Replace("*", "*発情");
  1108. }
  1109. this.CallCommandFile(normal, text, lockRRUpdate);
  1110. }
  1111. private void PlayNormalSingle(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
  1112. {
  1113. this.yotogi_mgr_.AddDebugLog("プレイ 通常-単発系");
  1114. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
  1115. string normal = command_data.basic.call_file.normal;
  1116. string label = string.Empty;
  1117. Relation relation = target_maid.status.relation;
  1118. if (this.estrusMode)
  1119. {
  1120. if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
  1121. {
  1122. switch (excitementStatus)
  1123. {
  1124. case Yotogi.ExcitementStatus.Minus:
  1125. label = "*発情SA1";
  1126. break;
  1127. case Yotogi.ExcitementStatus.Small:
  1128. label = "*発情SA2";
  1129. break;
  1130. case Yotogi.ExcitementStatus.Medium:
  1131. label = "*発情SA3";
  1132. break;
  1133. case Yotogi.ExcitementStatus.Large:
  1134. label = "*発情SA4";
  1135. break;
  1136. }
  1137. }
  1138. else
  1139. {
  1140. switch (excitementStatus)
  1141. {
  1142. case Yotogi.ExcitementStatus.Minus:
  1143. label = "*発情SA5";
  1144. break;
  1145. case Yotogi.ExcitementStatus.Small:
  1146. label = "*発情SA6";
  1147. break;
  1148. case Yotogi.ExcitementStatus.Medium:
  1149. label = "*発情SA7";
  1150. break;
  1151. case Yotogi.ExcitementStatus.Large:
  1152. label = "*発情SA8";
  1153. break;
  1154. }
  1155. }
  1156. }
  1157. else if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
  1158. {
  1159. if (relation == Relation.Lover)
  1160. {
  1161. switch (excitementStatus)
  1162. {
  1163. case Yotogi.ExcitementStatus.Minus:
  1164. label = "*SA5";
  1165. break;
  1166. case Yotogi.ExcitementStatus.Small:
  1167. label = "*SA6";
  1168. break;
  1169. case Yotogi.ExcitementStatus.Medium:
  1170. label = "*SA7";
  1171. break;
  1172. case Yotogi.ExcitementStatus.Large:
  1173. label = "*SA8";
  1174. break;
  1175. }
  1176. }
  1177. else if (this.playing_skill_level_ == 2 || relation == Relation.Trust)
  1178. {
  1179. switch (excitementStatus)
  1180. {
  1181. case Yotogi.ExcitementStatus.Minus:
  1182. label = "*SA9";
  1183. break;
  1184. case Yotogi.ExcitementStatus.Small:
  1185. label = "*SA10";
  1186. break;
  1187. case Yotogi.ExcitementStatus.Medium:
  1188. label = "*SA11";
  1189. break;
  1190. case Yotogi.ExcitementStatus.Large:
  1191. label = "*SA12";
  1192. break;
  1193. }
  1194. }
  1195. else
  1196. {
  1197. switch (excitementStatus)
  1198. {
  1199. case Yotogi.ExcitementStatus.Minus:
  1200. label = "*SA1";
  1201. break;
  1202. case Yotogi.ExcitementStatus.Small:
  1203. label = "*SA2";
  1204. break;
  1205. case Yotogi.ExcitementStatus.Medium:
  1206. label = "*SA3";
  1207. break;
  1208. case Yotogi.ExcitementStatus.Large:
  1209. label = "*SA4";
  1210. break;
  1211. }
  1212. }
  1213. }
  1214. else if (this.playing_skill_level_ == 3)
  1215. {
  1216. if (relation == Relation.Lover)
  1217. {
  1218. switch (excitementStatus)
  1219. {
  1220. case Yotogi.ExcitementStatus.Minus:
  1221. label = "*SA17";
  1222. break;
  1223. case Yotogi.ExcitementStatus.Small:
  1224. label = "*SA18";
  1225. break;
  1226. case Yotogi.ExcitementStatus.Medium:
  1227. label = "*SA19";
  1228. break;
  1229. case Yotogi.ExcitementStatus.Large:
  1230. label = "*SA20";
  1231. break;
  1232. }
  1233. }
  1234. else
  1235. {
  1236. switch (excitementStatus)
  1237. {
  1238. case Yotogi.ExcitementStatus.Minus:
  1239. label = "*SA13";
  1240. break;
  1241. case Yotogi.ExcitementStatus.Small:
  1242. label = "*SA14";
  1243. break;
  1244. case Yotogi.ExcitementStatus.Medium:
  1245. label = "*SA15";
  1246. break;
  1247. case Yotogi.ExcitementStatus.Large:
  1248. label = "*SA16";
  1249. break;
  1250. }
  1251. }
  1252. }
  1253. this.CallCommandFile(normal, label, lockRRUpdate);
  1254. }
  1255. private void PlayInsert(Skill.Data.Command.Data command_data, bool lockRRUpdate)
  1256. {
  1257. string normal = command_data.basic.call_file.normal;
  1258. string text = string.Empty;
  1259. this.yotogi_mgr_.AddDebugLog(" 挿入中ではないのでファイルコール");
  1260. switch (YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite))
  1261. {
  1262. case Yotogi.ExcitementStatus.Minus:
  1263. text = "*SOU1";
  1264. break;
  1265. case Yotogi.ExcitementStatus.Small:
  1266. text = "*SOU2";
  1267. break;
  1268. case Yotogi.ExcitementStatus.Medium:
  1269. text = "*SOU3";
  1270. break;
  1271. case Yotogi.ExcitementStatus.Large:
  1272. text = "*SOU4";
  1273. break;
  1274. }
  1275. if (this.estrusMode)
  1276. {
  1277. text = text.Replace("*", "*発情");
  1278. }
  1279. this.CallCommandFile(normal, text, lockRRUpdate);
  1280. }
  1281. private void PlayInsert2(Skill.Data.Command.Data command_data, bool lockRRUpdate)
  1282. {
  1283. string insert = command_data.basic.call_file.insert;
  1284. string text = string.Empty;
  1285. this.yotogi_mgr_.AddDebugLog(" 挿入中のファイルコール");
  1286. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
  1287. if (this.estrusMode)
  1288. {
  1289. text = "*発情";
  1290. }
  1291. else
  1292. {
  1293. text = "*";
  1294. }
  1295. switch (excitementStatus)
  1296. {
  1297. case Yotogi.ExcitementStatus.Minus:
  1298. text += "SOC1";
  1299. break;
  1300. case Yotogi.ExcitementStatus.Small:
  1301. text += "SOC2";
  1302. break;
  1303. case Yotogi.ExcitementStatus.Medium:
  1304. text += "SOC3";
  1305. break;
  1306. case Yotogi.ExcitementStatus.Large:
  1307. text += "SOC4";
  1308. break;
  1309. }
  1310. this.ClearRepeatVoiceData();
  1311. GameMain.Instance.SoundMgr.VoiceStopAll();
  1312. this.CallCommandFile(insert, text, lockRRUpdate);
  1313. }
  1314. private void PlayDrunkContinue(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
  1315. {
  1316. this.yotogi_mgr_.AddDebugLog("プレイ 酔い-挿入,継続系");
  1317. if (this.player_state_ != YotogiPlay.PlayerState.Insert)
  1318. {
  1319. this.PlayInsert(command_data, lockRRUpdate);
  1320. }
  1321. Relation relation = target_maid.status.relation;
  1322. string text = string.Empty;
  1323. string label = string.Empty;
  1324. Yotogi.RCType rctype = YotogiPlay.GetRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
  1325. if (rctype != Yotogi.RCType.RCNull)
  1326. {
  1327. string str = rctype.ToString();
  1328. this.yotogi_mgr_.AddDebugLog("RC HIT!! " + str);
  1329. text = command_data.basic.call_file.rc;
  1330. if (relation != Relation.Contact)
  1331. {
  1332. if (relation != Relation.Trust)
  1333. {
  1334. if (relation == Relation.Lover)
  1335. {
  1336. label = "*酔い恋人" + str;
  1337. }
  1338. }
  1339. else
  1340. {
  1341. label = "*酔い信頼" + str;
  1342. }
  1343. }
  1344. else
  1345. {
  1346. label = "*酔いお近づき" + str;
  1347. }
  1348. }
  1349. else
  1350. {
  1351. this.PlayInsert2(command_data, lockRRUpdate);
  1352. }
  1353. if (text != string.Empty)
  1354. {
  1355. this.CallCommandFile(text, label, lockRRUpdate);
  1356. }
  1357. }
  1358. private void PlayDrunkSingle(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
  1359. {
  1360. this.yotogi_mgr_.AddDebugLog("プレイ 酔い-単発系");
  1361. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
  1362. Relation relation = target_maid.status.relation;
  1363. string normal = command_data.basic.call_file.normal;
  1364. string label = string.Empty;
  1365. if (relation == Relation.Contact)
  1366. {
  1367. switch (excitementStatus)
  1368. {
  1369. case Yotogi.ExcitementStatus.Minus:
  1370. label = "*酔いSA1";
  1371. break;
  1372. case Yotogi.ExcitementStatus.Small:
  1373. label = "*酔いSA2";
  1374. break;
  1375. case Yotogi.ExcitementStatus.Medium:
  1376. label = "*酔いSA3";
  1377. break;
  1378. case Yotogi.ExcitementStatus.Large:
  1379. label = "*酔いSA4";
  1380. break;
  1381. }
  1382. }
  1383. else if (relation == Relation.Trust)
  1384. {
  1385. switch (excitementStatus)
  1386. {
  1387. case Yotogi.ExcitementStatus.Minus:
  1388. label = "*酔いSA5";
  1389. break;
  1390. case Yotogi.ExcitementStatus.Small:
  1391. label = "*酔いSA6";
  1392. break;
  1393. case Yotogi.ExcitementStatus.Medium:
  1394. label = "*酔いSA7";
  1395. break;
  1396. case Yotogi.ExcitementStatus.Large:
  1397. label = "*酔いSA8";
  1398. break;
  1399. }
  1400. }
  1401. else if (relation == Relation.Lover)
  1402. {
  1403. switch (excitementStatus)
  1404. {
  1405. case Yotogi.ExcitementStatus.Minus:
  1406. label = "*酔いSA9";
  1407. break;
  1408. case Yotogi.ExcitementStatus.Small:
  1409. label = "*酔いSA10";
  1410. break;
  1411. case Yotogi.ExcitementStatus.Medium:
  1412. label = "*酔いSA11";
  1413. break;
  1414. case Yotogi.ExcitementStatus.Large:
  1415. label = "*酔いSA12";
  1416. break;
  1417. }
  1418. }
  1419. this.CallCommandFile(normal, label, lockRRUpdate);
  1420. }
  1421. private void PlayProclivitySingle(Skill.Data.Command.Data command_data, bool lockRRUpdate)
  1422. {
  1423. this.yotogi_mgr_.AddDebugLog("プレイ 性癖-単発系");
  1424. Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
  1425. string normal = command_data.basic.call_file.normal;
  1426. string label = string.Empty;
  1427. switch (excitementStatus)
  1428. {
  1429. case Yotogi.ExcitementStatus.Minus:
  1430. label = "*性癖SA1";
  1431. break;
  1432. case Yotogi.ExcitementStatus.Small:
  1433. label = "*性癖SA2";
  1434. break;
  1435. case Yotogi.ExcitementStatus.Medium:
  1436. label = "*性癖SA3";
  1437. break;
  1438. case Yotogi.ExcitementStatus.Large:
  1439. label = "*性癖SA4";
  1440. break;
  1441. }
  1442. this.CallCommandFile(normal, label, lockRRUpdate);
  1443. }
  1444. private void CallCommandFile(string file, string label, bool lockRRUpdate)
  1445. {
  1446. if (string.IsNullOrEmpty(file) || file == ".ks")
  1447. {
  1448. return;
  1449. }
  1450. file = ScriptManager.ReplacePersonal(this.replace_personal_target_maid_array_, file);
  1451. file = Path.ChangeExtension(file, ".ks");
  1452. bool flag = false;
  1453. using (TJSVariant tjsvariant = new TJSVariant())
  1454. {
  1455. this.script_mgr_.EvalScript("global.__skill_command_file.count;", tjsvariant);
  1456. if (0 < tjsvariant.AsInteger())
  1457. {
  1458. flag = true;
  1459. }
  1460. }
  1461. if (!flag)
  1462. {
  1463. this.ClearCommandFile();
  1464. this.script_mgr_.EvalScript(string.Concat(new string[]
  1465. {
  1466. "global.__skill_command_file.add(%['file'=>'",
  1467. file,
  1468. "','label'=>'",
  1469. label,
  1470. "','rrlock'=>'",
  1471. lockRRUpdate.ToString().ToLower(),
  1472. "']);"
  1473. }));
  1474. this.script_mgr_.LoadYotogiScript("yotogi_skill_command_call_main.ks", string.Empty);
  1475. this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
  1476. {
  1477. "コマンドファイル[",
  1478. file,
  1479. "][",
  1480. label,
  1481. "]を呼び出しました"
  1482. }));
  1483. }
  1484. else
  1485. {
  1486. this.script_mgr_.EvalScript(string.Concat(new string[]
  1487. {
  1488. "global.__skill_command_file.add(%['file'=>'",
  1489. file,
  1490. "','label'=>'",
  1491. label,
  1492. "','rrlock'=>'",
  1493. lockRRUpdate.ToString().ToLower(),
  1494. "']);"
  1495. }));
  1496. }
  1497. }
  1498. private bool OnCreateCommand(Skill.Data.Command.Data command_data)
  1499. {
  1500. return command_data.basic.ng_propensity == null || !this.maid_status_.propensitys.ContainsKey(command_data.basic.ng_propensity.id);
  1501. }
  1502. private bool OnEnabledCommand(Skill.Data.Command.Data command_data)
  1503. {
  1504. Func<bool> func = delegate()
  1505. {
  1506. if (command_data.basic.isEstrusTriggerCommand && (200 > this.maid_status_.currentExcite || 300 > this.maid_status_.currentSensual))
  1507. {
  1508. return false;
  1509. }
  1510. if (command_data.basic.command_type == Yotogi.SkillCommandType.絶頂 && this.maid_status_.currentExcite < 80)
  1511. {
  1512. return false;
  1513. }
  1514. if (this.is_free_mode)
  1515. {
  1516. if (!command_data.EvalExpressionForFreeMode(this.maid_))
  1517. {
  1518. return false;
  1519. }
  1520. }
  1521. else if (!command_data.EvalExpression(this.maid_))
  1522. {
  1523. return false;
  1524. }
  1525. if (command_data.basic.command_type == Yotogi.SkillCommandType.挿入)
  1526. {
  1527. return true;
  1528. }
  1529. if (command_data.basic.request_insert)
  1530. {
  1531. return this.player_state_ == YotogiPlay.PlayerState.Insert;
  1532. }
  1533. return this.player_state_ == YotogiPlay.PlayerState.Normal;
  1534. };
  1535. bool flag = func();
  1536. if (this.command_menu != null && flag)
  1537. {
  1538. this.command_menu.AddCommand(command_data);
  1539. }
  1540. return flag;
  1541. }
  1542. private void OnChangeCommandTextColor(Skill.Data.Command.Data command_data, ref Color color)
  1543. {
  1544. if (command_data.status.bonusExcitementUpLine <= this.maid_.status.currentExcite || command_data.status.bonusExcitementDownLine > this.maid_.status.currentExcite)
  1545. {
  1546. color = Skill.Data.Command.bonusTargetTextColor;
  1547. }
  1548. }
  1549. private void OnMouseCommand(GameObject commandObject, Skill.Data.Command.Data command_data, bool visible)
  1550. {
  1551. if (command_data == null || !visible)
  1552. {
  1553. this.commandExecConditionsPanel.SetActive(false);
  1554. return;
  1555. }
  1556. List<KeyValuePair<string, bool>> list = new List<KeyValuePair<string, bool>>();
  1557. foreach (int num in command_data.basic.request_propensity)
  1558. {
  1559. Propensity.Data data = Propensity.GetData(num);
  1560. string key = "性癖【" + data.drawName + "】";
  1561. list.Add(new KeyValuePair<string, bool>(key, this.maid_status_.propensitys.ContainsKey(num)));
  1562. }
  1563. if (command_data.basic.isEstrusTriggerCommand)
  1564. {
  1565. list.Add(new KeyValuePair<string, bool>("興奮 200", 200 <= this.maid_status_.currentExcite));
  1566. list.Add(new KeyValuePair<string, bool>("官能 300", 300 <= this.maid_status_.currentSensual));
  1567. }
  1568. if (command_data.basic.executionConditionParameters != null)
  1569. {
  1570. List<KeyValuePair<string, bool>> list2 = command_data.basic.executionConditionParameters.CreateConditionTextAndStaturResults(this.maid_.status);
  1571. foreach (KeyValuePair<string, bool> item in list2)
  1572. {
  1573. if (this.is_free_mode && !item.Key.Contains("興奮"))
  1574. {
  1575. list.Add(new KeyValuePair<string, bool>(item.Key, true));
  1576. }
  1577. else
  1578. {
  1579. list.Add(item);
  1580. }
  1581. }
  1582. }
  1583. if (list.Count == 0)
  1584. {
  1585. this.commandExecConditionsPanel.SetActive(false);
  1586. return;
  1587. }
  1588. List<KeyValuePair<string, Color>> list3 = new List<KeyValuePair<string, Color>>();
  1589. foreach (KeyValuePair<string, bool> keyValuePair in list)
  1590. {
  1591. list3.Add(new KeyValuePair<string, Color>(keyValuePair.Key, (!keyValuePair.Value) ? Color.gray : Color.white));
  1592. }
  1593. this.commandExecConditionList.SetTexts(list3.ToArray(), -1);
  1594. UIWidget component = UTY.GetChildObject(this.commandExecConditionsPanel, "BG", false).GetComponent<UIWidget>();
  1595. component.width = this.commandExecConditionList.width + 25;
  1596. component.height = this.commandExecConditionList.height + 65;
  1597. Transform parent = this.commandExecConditionsPanel.transform.parent;
  1598. this.commandExecConditionsPanel.transform.SetParent(commandObject.transform, false);
  1599. this.commandExecConditionsPanel.transform.localPosition = Vector3.zero;
  1600. this.commandExecConditionsPanel.transform.SetParent(parent, true);
  1601. Vector3 localPosition = this.commandExecConditionsPanel.transform.localPosition;
  1602. localPosition = new Vector3(localPosition.x + 194f, localPosition.y + 12f, localPosition.z);
  1603. this.commandExecConditionsPanel.transform.localPosition = localPosition;
  1604. this.commandExecConditionsPanel.SetActive(true);
  1605. }
  1606. private void UpdateCommand()
  1607. {
  1608. this.command_factory_.ClearCommand();
  1609. if (this.command_menu != null)
  1610. {
  1611. this.command_menu.ClearCommand();
  1612. }
  1613. if (this.estrusMode && this.maid_.status.currentSensual <= 0)
  1614. {
  1615. if (this.command_menu != null)
  1616. {
  1617. this.command_menu.FixCommand();
  1618. }
  1619. return;
  1620. }
  1621. if (!this.estrusMode && this.maid_.status.currentMind <= 0)
  1622. {
  1623. if (this.command_menu != null)
  1624. {
  1625. this.command_menu.FixCommand();
  1626. }
  1627. return;
  1628. }
  1629. this.free_mode_backup_excitement_ = 0;
  1630. for (int i = 0; i < this.valid_command_dic_.Count; i++)
  1631. {
  1632. Skill.Data.Command.Data data = this.valid_command_dic_[i];
  1633. if (!data.basic.isAcquisitionPropensityCommand || (!this.maid_.status.propensitys.ContainsKey(data.basic.learning_propensity.id) && !this.yotogi_mgr_.acquired_propensityid_list.Contains(data.basic.learning_propensity.id)))
  1634. {
  1635. if (!data.basic.isEstrusTriggerCommand || !this.estrusMode)
  1636. {
  1637. if (0 >= data.basic.request_skill_lv || data.basic.request_skill_lv == this.playing_skill_level_)
  1638. {
  1639. this.command_factory_.AddCommand(this.valid_command_dic_[i]);
  1640. }
  1641. }
  1642. }
  1643. }
  1644. if (this.command_menu != null)
  1645. {
  1646. this.command_menu.FixCommand();
  1647. }
  1648. }
  1649. private void SetSkillTowerButtonEnabled(bool enabled)
  1650. {
  1651. Transform transform = this.skill_group_parent_.transform;
  1652. int num = 0;
  1653. while (num < this.yotogi_mgr_.play_skill_array.Length && num < transform.childCount)
  1654. {
  1655. YotogiManager.PlayingSkillData playingSkillData = this.yotogi_mgr_.play_skill_array[num];
  1656. GameObject gameObject = transform.GetChild(num).gameObject;
  1657. GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
  1658. UIButton component = childObject.GetComponent<UIButton>();
  1659. component.enabled = enabled;
  1660. num++;
  1661. }
  1662. }
  1663. private void UpdateSkillTower()
  1664. {
  1665. Transform transform = this.skill_group_parent_.transform;
  1666. if (this.skill_icon_default_color_.a == 0f)
  1667. {
  1668. this.skill_icon_default_color_ = UTY.GetChildObject(transform.GetChild(0).gameObject, "Icon", false).GetComponent<UIButton>().defaultColor;
  1669. }
  1670. int num = 0;
  1671. while (num < this.yotogi_mgr_.play_skill_array.Length && num < transform.childCount)
  1672. {
  1673. YotogiManager.PlayingSkillData playingSkillData = this.yotogi_mgr_.play_skill_array[num];
  1674. GameObject gameObject = transform.GetChild(num).gameObject;
  1675. GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
  1676. UI2DSprite component = childObject.GetComponent<UI2DSprite>();
  1677. GameObject childObject2 = UTY.GetChildObject(gameObject, "Arrow", false);
  1678. BoxCollider component2 = childObject.GetComponent<BoxCollider>();
  1679. UIButton component3 = childObject.GetComponent<UIButton>();
  1680. UISprite component4 = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
  1681. UILabel componentInChildren = component4.GetComponentInChildren<UILabel>();
  1682. Localize component5 = componentInChildren.GetComponent<Localize>();
  1683. UIRect uirect = component4;
  1684. float alpha = 0f;
  1685. componentInChildren.alpha = alpha;
  1686. uirect.alpha = alpha;
  1687. childObject2.SetActive(false);
  1688. if (playingSkillData.skill_pair.base_data == null)
  1689. {
  1690. childObject.SetActive(false);
  1691. }
  1692. else
  1693. {
  1694. componentInChildren.text = playingSkillData.skill_pair.base_data.name;
  1695. if (component5 != null)
  1696. {
  1697. component5.SetTerm(playingSkillData.skill_pair.base_data.termName);
  1698. }
  1699. componentInChildren.width = 0;
  1700. componentInChildren.MakePixelPerfect();
  1701. component4.width = componentInChildren.width + 20;
  1702. childObject.SetActive(true);
  1703. childObject.GetComponent<UIWidget>().depth = childObject2.GetComponent<UIWidget>().depth;
  1704. if (playingSkillData.is_play || this.playing_skill_no_ == num)
  1705. {
  1706. component3.enabled = false;
  1707. if (this.playing_skill_no_ != num)
  1708. {
  1709. component.color = new Color(0.4f, 0.4f, 0.4f, 0.4f);
  1710. }
  1711. else
  1712. {
  1713. component.color = new Color(1f, 1f, 1f, 1f);
  1714. childObject2.SetActive(true);
  1715. }
  1716. childObject.GetComponent<UIPlayAnimation>().enabled = false;
  1717. }
  1718. else
  1719. {
  1720. component.color = this.skill_icon_default_color_;
  1721. component3.enabled = true;
  1722. childObject.GetComponent<UIPlayAnimation>().enabled = true;
  1723. }
  1724. YotogiSkillIcon component6 = childObject.GetComponent<YotogiSkillIcon>();
  1725. component6.SetSkillData(this.yotogi_mgr_.play_skill_array[num].skill_pair.base_data);
  1726. }
  1727. num++;
  1728. }
  1729. }
  1730. private void OnSkillIconClick()
  1731. {
  1732. if (this.yotogi_mgr_.IsAllCharaBusy())
  1733. {
  1734. this.yotogi_mgr_.AddDebugLog("============================================");
  1735. this.yotogi_mgr_.AddDebugLog("×スキルアイコンがクリックされました");
  1736. this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
  1737. this.yotogi_mgr_.AddDebugLog("============================================");
  1738. return;
  1739. }
  1740. Transform transform = this.skill_group_parent_.transform;
  1741. UIButton current = UIButton.current;
  1742. int num = -1;
  1743. for (int i = 0; i < this.yotogi_mgr_.play_skill_array.Length; i++)
  1744. {
  1745. GameObject gameObject = transform.GetChild(i).gameObject;
  1746. GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
  1747. if (childObject.GetComponent<UIButton>() == current)
  1748. {
  1749. num = i - 1;
  1750. break;
  1751. }
  1752. }
  1753. if (num == -1)
  1754. {
  1755. return;
  1756. }
  1757. this.playing_skill_no_ = num;
  1758. this.OnNextSkillMove();
  1759. }
  1760. public void VisibleSkillName(int icon_no, bool val)
  1761. {
  1762. GameObject gameObject = this.skill_group_parent_.transform.GetChild(icon_no).gameObject;
  1763. UISprite component = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
  1764. UILabel componentInChildren = component.GetComponentInChildren<UILabel>();
  1765. float num = 0f;
  1766. if (val)
  1767. {
  1768. num = 1f;
  1769. }
  1770. UIRect uirect = component;
  1771. float alpha = num;
  1772. componentInChildren.alpha = alpha;
  1773. uirect.alpha = alpha;
  1774. }
  1775. private void ClearCommandFile()
  1776. {
  1777. this.script_mgr_.EvalScript("global.__skill_command_file.clear();");
  1778. }
  1779. public void OnClickReleaseSeieki()
  1780. {
  1781. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1782. for (int i = 0; i < characterMgr.GetMaidCount(); i++)
  1783. {
  1784. Maid maid = characterMgr.GetMaid(i);
  1785. if (maid != null)
  1786. {
  1787. maid.body0.MulTexRemove("body", 0, "_MainTex", 18);
  1788. maid.body0.MulTexRemove("body", 0, "_ShadowTex", 18);
  1789. maid.body0.MulTexRemove("head", 5, "_MainTex", 18);
  1790. maid.body0.MulTexRemove("head", 5, "_ShadowTex", 18);
  1791. maid.body0.MulTexProc("body");
  1792. maid.body0.MulTexProc("head");
  1793. }
  1794. }
  1795. }
  1796. private void OnClickSkillSelectEnd()
  1797. {
  1798. this.free_skill_select_.FixSkill();
  1799. this.playing_skill_no_ = 0;
  1800. this.OnNextSkillMove();
  1801. }
  1802. public void OnClickNext()
  1803. {
  1804. if (this.yotogi_mgr_.IsAllCharaBusy())
  1805. {
  1806. this.yotogi_mgr_.AddDebugLog("============================================");
  1807. this.yotogi_mgr_.AddDebugLog("×スキルアイコンがクリックされました");
  1808. this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
  1809. this.yotogi_mgr_.AddDebugLog("============================================");
  1810. return;
  1811. }
  1812. this.playing_skill_no_ = -1;
  1813. if (!this.is_free_mode && !this.is_vr_mode)
  1814. {
  1815. for (int i = 0; i < this.yotogi_mgr_.play_skill_array.Length; i++)
  1816. {
  1817. if (this.yotogi_mgr_.play_skill_array[i].skill_pair.base_data != null)
  1818. {
  1819. if (!this.yotogi_mgr_.play_skill_array[i].is_play)
  1820. {
  1821. this.playing_skill_no_ = i - 1;
  1822. break;
  1823. }
  1824. }
  1825. }
  1826. }
  1827. this.OnNextSkillMove();
  1828. }
  1829. private void OnNextSkillMove()
  1830. {
  1831. if (this.command_menu != null)
  1832. {
  1833. this.command_menu.DestroySkillCommand();
  1834. this.command_menu.visible = false;
  1835. }
  1836. if (this.is_free_mode)
  1837. {
  1838. this.maid_.status.seikeiken = this.free_mode_backup_data_.seikeiken;
  1839. }
  1840. GameMain.Instance.SoundMgr.StopSe();
  1841. this.yotogi_mgr_.yotogi_kag.enabled = false;
  1842. if (this.IsFaint() || (!this.is_free_mode && !this.is_vr_mode && this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint))
  1843. {
  1844. this.is_faint_end = true;
  1845. }
  1846. else if (this.playing_skill_no_ == -1)
  1847. {
  1848. this.ClearCommandFile();
  1849. this.SetRepeatVoiceFile(string.Empty, 0);
  1850. this.ClearVoice();
  1851. if (this.yotogi_mgr_.null_mgr.IsExistNextLabel())
  1852. {
  1853. this.Finish();
  1854. }
  1855. }
  1856. else
  1857. {
  1858. this.Finish();
  1859. }
  1860. }
  1861. private void OnClickViweReset()
  1862. {
  1863. this.camera_move_support_.ResetCamera();
  1864. }
  1865. protected override void OnFinish()
  1866. {
  1867. if (!this.is_free_mode && !this.is_vr_mode && this.playing_skill_ != null && this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint)
  1868. {
  1869. this.maid_status_.currentMind = 0;
  1870. }
  1871. if (this.playing_skill_no_ == -1 || this.IsFaint())
  1872. {
  1873. this.playing_skill_no_ = -1;
  1874. if (this.is_free_mode || this.is_vr_mode)
  1875. {
  1876. GameMain.Instance.SoundMgr.VoiceStopAll();
  1877. GameMain.Instance.SoundMgr.StopSe();
  1878. CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
  1879. GameMain.Instance.ScriptMgr.ClearForcExecWaitEvent();
  1880. for (int i = 0; i < characterMgr.GetMaidCount(); i++)
  1881. {
  1882. Maid maid = characterMgr.GetMaid(i);
  1883. if (maid != null)
  1884. {
  1885. maid.FaceAnime("通常", 0f, 0);
  1886. maid.FaceBlend("無し");
  1887. maid.OpenMouth(false);
  1888. maid.body0.SetMaskMode(TBody.MaskMode.None);
  1889. for (int j = 10; j <= 20; j++)
  1890. {
  1891. maid.body0.MulTexRemove("body", 0, "_MainTex", j);
  1892. maid.body0.MulTexRemove("body", 0, "_ShadowTex", j);
  1893. maid.body0.MulTexRemove("head", 5, "_MainTex", j);
  1894. maid.body0.MulTexRemove("head", 5, "_ShadowTex", j);
  1895. }
  1896. maid.body0.MulTexRemove("body", 0, "_MainTex", 24);
  1897. maid.body0.MulTexRemove("body", 0, "_ShadowTex", 24);
  1898. maid.body0.MulTexProc("body");
  1899. maid.body0.MulTexProc("head");
  1900. }
  1901. }
  1902. this.yotogi_mgr_.ResetWorld();
  1903. characterMgr.DeactivateCharaAll();
  1904. }
  1905. else
  1906. {
  1907. this.yotogi_mgr_.ApplyStatus();
  1908. }
  1909. if (this.yotogi_mgr_.null_mgr.IsExistNextLabel())
  1910. {
  1911. this.yotogi_mgr_.CallScreen(YotogiManager.CallScreenType.Null.ToString());
  1912. }
  1913. else
  1914. {
  1915. this.yotogi_mgr_.DebugOnClickCallResult();
  1916. }
  1917. }
  1918. else
  1919. {
  1920. GameMain.Instance.CharacterMgr.SetCharaAllPos(Vector3.zero);
  1921. GameMain.Instance.CharacterMgr.SetCharaAllRot(Vector3.zero);
  1922. this.yotogi_mgr_.CallScreen(YotogiManager.CallScreenType.Play.ToString());
  1923. }
  1924. }
  1925. protected override void OnFadeEnd()
  1926. {
  1927. if (this.is_free_mode || this.is_vr_mode)
  1928. {
  1929. GameMain.Instance.MainLight.Reset();
  1930. GameMain.Instance.CharacterMgr.ResetCharaPosAll();
  1931. GameMain.Instance.MainCamera.Reset(CameraMain.CameraType.Target, true);
  1932. GameMain.Instance.SoundMgr.VoiceStopAll();
  1933. this.yotogi_mgr_.UnVisibleMaidAndMan(true, true);
  1934. this.maid_.Visible = true;
  1935. }
  1936. }
  1937. public void SetControlMask(bool val, bool is_endless = false)
  1938. {
  1939. if (!val)
  1940. {
  1941. this.control_mask_tick_count = -1;
  1942. for (int i = 0; i < this.control_mask_list_.Count; i++)
  1943. {
  1944. this.control_mask_list_[i].SetActive(false);
  1945. }
  1946. }
  1947. else
  1948. {
  1949. this.control_mask_tick_count = GameMain.tick_count + 3000;
  1950. if (is_endless)
  1951. {
  1952. this.control_mask_tick_count = int.MaxValue;
  1953. }
  1954. for (int j = 0; j < this.control_mask_list_.Count; j++)
  1955. {
  1956. this.control_mask_list_[j].SetActive(true);
  1957. }
  1958. }
  1959. }
  1960. public void OnUndressingEvent(string call_file)
  1961. {
  1962. if (string.IsNullOrEmpty(call_file))
  1963. {
  1964. return;
  1965. }
  1966. }
  1967. public void ChangeSliderValue()
  1968. {
  1969. float value = UIProgressBar.current.value;
  1970. int manAlpha = (int)System.Math.Ceiling((double)(value * 100f));
  1971. GameMain.Instance.CMSystem.ManAlpha = manAlpha;
  1972. this.setting_man_alpha_ = manAlpha;
  1973. GameMain.Instance.CharacterMgr.ManAlphaUpdate();
  1974. }
  1975. public void OnClickExciteLock()
  1976. {
  1977. this.is_excite_lock_ = !this.is_excite_lock_;
  1978. GameMain.Instance.CMSystem.SetSystemVers("ExciteLock", (!this.is_excite_lock_) ? "0" : "1");
  1979. this.btn_excite_lock_.SetSelect(this.is_excite_lock_);
  1980. }
  1981. public bool IsFaint()
  1982. {
  1983. return !this.is_free_mode && !this.is_vr_mode && ((this.maid_.status.currentMind <= 0 && this.maid_.status.currentHp <= 0) || (this.playing_skill_no_ == -1 && this.maid_.status.currentHp <= 0));
  1984. }
  1985. public List<YotogiPlayManager.RepeatVoiceData> repeat_voice_data_list
  1986. {
  1987. get
  1988. {
  1989. return this.repeat_voice_data_list_;
  1990. }
  1991. }
  1992. private bool is_free_mode
  1993. {
  1994. get
  1995. {
  1996. return this.yotogi_mgr_.is_free_mode;
  1997. }
  1998. }
  1999. private bool is_vr_mode
  2000. {
  2001. get
  2002. {
  2003. return this.yotogi_mgr_.is_vr_mode;
  2004. }
  2005. }
  2006. private YotogiCommandMenuOVR command_menu
  2007. {
  2008. get
  2009. {
  2010. return this.yotogi_mgr_.command_menu;
  2011. }
  2012. }
  2013. private bool particleBreathe
  2014. {
  2015. get
  2016. {
  2017. return 0 < this.breatheObjects.Count && this.breatheObjects[0].activeInHierarchy;
  2018. }
  2019. set
  2020. {
  2021. bool flag = value;
  2022. if (flag && (!this.estrusMode || this.maid_status_.currentExcite < 200))
  2023. {
  2024. flag = false;
  2025. }
  2026. foreach (GameObject gameObject in this.breatheObjects)
  2027. {
  2028. gameObject.SetActive(flag);
  2029. }
  2030. }
  2031. }
  2032. private int particleLoveLiquidType
  2033. {
  2034. get
  2035. {
  2036. for (int i = 0; i < this.loveLiquidObjects.Length; i++)
  2037. {
  2038. if (this.loveLiquidObjects[i].activeInHierarchy)
  2039. {
  2040. return i + 1;
  2041. }
  2042. }
  2043. return 0;
  2044. }
  2045. set
  2046. {
  2047. int num = wf.Math.RoundMinMax(value, 0, 3);
  2048. if (num != 0 && !this.estrusMode)
  2049. {
  2050. num = 0;
  2051. }
  2052. if (num != 0)
  2053. {
  2054. for (int i = 0; i < this.loveLiquidObjects.Length; i++)
  2055. {
  2056. this.loveLiquidObjects[i].SetActive(i == num - 1);
  2057. }
  2058. }
  2059. else
  2060. {
  2061. foreach (GameObject gameObject in this.loveLiquidObjects)
  2062. {
  2063. gameObject.SetActive(false);
  2064. }
  2065. }
  2066. }
  2067. }
  2068. public int kRepeatWaitTime = 200;
  2069. public SubtitleDisplayManager subtitlesManager;
  2070. public Dictionary<string, int> commandClickCountTotal = new Dictionary<string, int>();
  2071. public Dictionary<string, int> commandClickCountSingle = new Dictionary<string, int>();
  2072. public bool lockRepeatVoiceUpdate;
  2073. private Maid maid_;
  2074. private ScriptManager script_mgr_;
  2075. private Status maid_status_;
  2076. private YotogiManager yotogi_mgr_;
  2077. private YotogiManager.PlayingSkillData playing_skill_;
  2078. private Yotogi.SkillDataPair skill_pair_;
  2079. private YotogiParameterViewer paramenter_viewer_;
  2080. private YotogiCommandFactory command_factory_;
  2081. private YotogiParamScroll param_scroll_;
  2082. private YotogiParamBasicBar param_basic_bar_;
  2083. private YotogiCommonButtons common_buttons_;
  2084. private FreeSkillSelect free_skill_select_;
  2085. private WfCameraMoveSupport camera_move_support_;
  2086. private GameObject skill_group_parent_;
  2087. private UISlider man_alpha_slider_;
  2088. private UndressingManager undressing_mgr_;
  2089. private List<GameObject> control_mask_list_ = new List<GameObject>();
  2090. private int setting_man_alpha_;
  2091. private HashSet<int> play_command_id_ = new HashSet<int>();
  2092. private int control_mask_tick_count = -1;
  2093. private Color skill_icon_default_color_;
  2094. private Maid[] replace_personal_target_maid_array_;
  2095. private YotogiPlayManager.FreeModeBackUpData free_mode_backup_data_;
  2096. private UIWFSelectButton btn_excite_lock_;
  2097. private bool is_excite_lock_;
  2098. private bool estrusMode;
  2099. private GameObject commandExecConditionsPanel;
  2100. private UIWFConditionList commandExecConditionList;
  2101. private List<GameObject> breatheObjects = new List<GameObject>();
  2102. private GameObject[] loveLiquidObjects = new GameObject[0];
  2103. private bool doneFtFileCall;
  2104. private bool is_faint_end;
  2105. private List<YotogiPlayManager.RepeatVoiceData> repeat_voice_data_list_ = new List<YotogiPlayManager.RepeatVoiceData>();
  2106. private int playing_skill_level_;
  2107. private int playing_skill_no_;
  2108. private YotogiPlay.PlayerState player_state_;
  2109. private YotogiPlay.Param backup_maid_param_;
  2110. private BonusStatus bonusCorrectionStatus_;
  2111. private List<Skill.Data.Command.Data> valid_command_dic_ = new List<Skill.Data.Command.Data>();
  2112. private int free_mode_backup_excitement_;
  2113. private float message_display_time_;
  2114. private YotogiPlay.SuspendStore suspendStoreData;
  2115. private Dictionary<string, HashSet<string>> calledAdvFiles = new Dictionary<string, HashSet<string>>();
  2116. private struct FreeModeBackUpData
  2117. {
  2118. public Seikeiken seikeiken;
  2119. }
  2120. public class RepeatVoiceData
  2121. {
  2122. public string repeat_voice_file;
  2123. public int elapsed_time;
  2124. public int maid_no;
  2125. public string text;
  2126. }
  2127. }