YotogiPlayManager.cs 73 KB

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