123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using MaidStatus;
- using UnityEngine;
- using wf;
- using Yotogis;
- public class YotogiPlayManager : WfScreenChildren
- {
- public override void Awake()
- {
- base.Awake();
- this.yotogi_mgr_ = base.GetComponentInParent<YotogiManager>();
- UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(true);
- UTY.GetChildObject(base.root_obj, "SkillSelectViewer", false).SetActive(true);
- if (Product.supportMultiLanguage)
- {
- UIPanel component = UTY.GetChildObject(base.root_obj, "ParameterViewer/YotogiParameterViewer", false).GetComponent<UIPanel>();
- Vector4 baseClipRegion = component.baseClipRegion;
- component.baseClipRegion = new Vector4(component.baseClipRegion.x, component.baseClipRegion.y, component.baseClipRegion.z + 74f, component.baseClipRegion.w);
- Vector3 localPosition = component.transform.localPosition;
- component.transform.localPosition = new Vector3(localPosition.x - 37f, localPosition.y, localPosition.z);
- }
- UTY.GetChildObject(base.root_obj, "ParameterViewer", false).GetComponentInChildren<HideScroll>().UpdatePanelData();
- this.common_buttons_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/CommonPanel", false).GetComponent<YotogiCommonButtons>();
- this.command_factory_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/SkillGroup/CommandParent/CommandUnit", false).GetComponent<YotogiCommandFactory>();
- this.command_factory_.SetCommandCreateCallBack(new YotogiCommandFactory.CommandCreateCallBack(this.OnCreateCommand));
- this.command_factory_.SetCommandCallback(new YotogiCommandFactory.CommandCallback(this.OnClickCommand));
- this.command_factory_.SetCommandEnabledCallBack(new YotogiCommandFactory.CommandEnabledCallBack(this.OnEnabledCommand));
- this.command_factory_.SetChangeCommandTextColorCallBack(new YotogiCommandFactory.ChangeCommandTextColorCallBack(this.OnChangeCommandTextColor));
- this.command_factory_.SetCommandExecConditionTextsCallback(new YotogiCommandFactory.CommandExecConditionTextsCallback(this.OnMouseCommand));
- this.param_scroll_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/ParamView", false).GetComponent<YotogiParamScroll>();
- this.camera_move_support_ = base.gameObject.AddComponent<WfCameraMoveSupport>();
- this.man_alpha_slider_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/MaskGroup/PlayerModelTransparency/SliderParent/Slider", false).GetComponent<UISlider>();
- this.control_mask_list_.Add(UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/ControlMaskt", false));
- this.control_mask_list_.Add(UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/ControlMaskt", false));
- this.undressing_mgr_ = UTY.GetChildObject(base.root_obj, "UndressingViewer/UndressingViewer/MaskGroup/UndressParent", false).GetComponent<UndressingManager>();
- this.undressing_mgr_.SetCallBackEvent(new UndressingManager.OnClickEventDelegate(this.OnUndressingEvent));
- this.btn_excite_lock_ = UTY.GetChildObject(base.root_obj, "StatusSlider/ParameterViewer/MaskGroup/Lock", false).GetComponent<UIWFSelectButton>();
- this.skill_group_parent_ = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/SkillGroup/SkillParent", false);
- Transform transform = this.skill_group_parent_.transform;
- for (int i = 0; i < transform.childCount; i++)
- {
- GameObject gameObject = transform.GetChild(i).gameObject;
- GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
- UIButton component2 = childObject.GetComponent<UIButton>();
- component2.onClick.Clear();
- UISprite component3 = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
- UILabel componentInChildren = component3.GetComponentInChildren<UILabel>();
- UIRect uirect = component3;
- float alpha = 0f;
- componentInChildren.alpha = alpha;
- uirect.alpha = alpha;
- EventDelegate.Add(component2.onClick, new EventDelegate.Callback(this.OnSkillIconClick));
- UIEventTrigger component4 = childObject.GetComponent<UIEventTrigger>();
- int num = i;
- EventDelegate.Add(component4.onHoverOver, delegate()
- {
- this.VisibleSkillName(num, true);
- });
- EventDelegate.Add(component4.onHoverOut, delegate()
- {
- this.VisibleSkillName(num, false);
- });
- EventDelegate.Add(component4.onDragStart, delegate()
- {
- this.VisibleSkillName(num, false);
- });
- }
- this.commandExecConditionsPanel = UTY.GetChildObject(base.root_obj, "ConditionsPanel", false);
- this.commandExecConditionList = UTY.GetChildObject(this.commandExecConditionsPanel, "ConditionParent", false).GetComponent<UIWFConditionList>();
- this.commandExecConditionsPanel.SetActive(false);
- this.playing_skill_no_ = -1;
- }
- protected override void OnCall()
- {
- GameMain.Instance.MainCamera.FadeInNoUI(0f, true);
- if (!this.yotogi_mgr_.is_new_yotogi_mode)
- {
- uGUITutorialPanel.OpenTutorial("YotogiCommand", null, false);
- GameMain.Instance.SysShortcut.strSceneHelpName = "YotogiCommand";
- }
- this.maid_ = this.yotogi_mgr_.maid;
- this.is_faint_end = false;
- string systemVers = GameMain.Instance.CMSystem.GetSystemVers("ExciteLock");
- this.is_excite_lock_ = (systemVers == "1");
- if (this.btn_excite_lock_.isSelected != this.is_excite_lock_)
- {
- this.btn_excite_lock_.SetSelect(this.is_excite_lock_);
- }
- if (!this.is_free_mode)
- {
- this.is_excite_lock_ = false;
- }
- if (this.command_menu != null)
- {
- this.command_menu.SetOnEnterEvetn(new Action<Skill.Data.Command.Data>(this.OnClickCommand));
- }
- this.player_state_ = YotogiPlay.PlayerState.Normal;
- if (this.is_free_mode)
- {
- this.free_mode_backup_data_.seikeiken = this.maid_.status.seikeiken;
- }
- if (this.estrusMode)
- {
- this.estrusMode = false;
- this.maid_.status.currentSensual = 0;
- }
- this.UIStartup();
- if (this.playing_skill_no_ == -1)
- {
- this.Initialize();
- }
- GameMain.Instance.ScriptMgr.StopMotionScript();
- this.NextSkill();
- this.yotogi_mgr_.ResetWorld();
- this.lockRepeatVoiceUpdate = false;
- this.doneFtFileCall = false;
- base.StartCoroutine(this.CallFtFiles());
- this.breatheObjects = new List<GameObject>();
- for (int i = 0; i < GameMain.Instance.CharacterMgr.GetMaidCount(); i++)
- {
- Maid maid = GameMain.Instance.CharacterMgr.GetMaid(i);
- if (!(maid == null) && maid.Visible)
- {
- maid.AddPrefab("Particle/pToiki", "夜伽_吐息", "Bip01 Head", new Vector3(0.042f, 0.076f, 0f), new Vector3(-90f, 90f, 0f));
- this.breatheObjects.Add(maid.GetPrefab("夜伽_吐息"));
- if (i == 0)
- {
- this.loveLiquidObjects = new GameObject[3];
- maid.AddPrefab("Particle/pPistonEasy_cm3D2", "夜伽_愛液1", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
- maid.AddPrefab("Particle/pPistonNormal_cm3D2", "夜伽_愛液2", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
- maid.AddPrefab("Particle/pPistonHard_cm3D2", "夜伽_愛液3", "_IK_vagina", new Vector3(0f, 0f, 0.01f), new Vector3(0f, -180f, 90f));
- this.loveLiquidObjects[0] = maid.GetPrefab("夜伽_愛液1");
- this.loveLiquidObjects[1] = maid.GetPrefab("夜伽_愛液2");
- this.loveLiquidObjects[2] = maid.GetPrefab("夜伽_愛液3");
- }
- }
- }
- this.particleBreathe = false;
- this.particleLoveLiquidType = 0;
- if (this.subtitlesManager != null)
- {
- this.subtitlesManager.visible = false;
- this.subtitlesManager.SetTextFromScriptStyle(string.Empty);
- }
- }
- private void UIStartup()
- {
- GameObject childObject = UTY.GetChildObject(base.root_obj, "StatusViewer", false);
- GameObject childObject2 = UTY.GetChildObject(base.root_obj, "StatusSlider", false);
- UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(true);
- if (!this.is_free_mode && !this.is_vr_mode && this.paramenter_viewer_ == null)
- {
- childObject.SetActive(true);
- childObject2.SetActive(false);
- this.param_basic_bar_ = UTY.GetChildObject(childObject, "ParameterViewer/MaskGroup/ParameterParent", false).GetComponent<YotogiParamBasicBar>();
- string path = "SceneYotogi/Common/Prefab/ParameterViewer";
- Vector3 zero = Vector3.zero;
- if (Product.supportMultiLanguage)
- {
- path = "SceneYotogi/Common/Prefab/ParameterViewerWidth";
- zero = new Vector3(44f, 0f, 0f);
- }
- this.paramenter_viewer_ = Utility.CreatePrefab(UTY.GetChildObject(base.root_obj, "ParameterViewer/YotogiParameterViewer/MaskGroup", false), path, true).GetComponent<YotogiParameterViewer>();
- this.paramenter_viewer_.transform.localPosition = zero;
- this.paramenter_viewer_.SetCostumeButtonVisible(false);
- this.paramenter_viewer_.SetAttributeViewer(UTY.GetChildObject(base.root_obj.transform.parent.gameObject, "AttributeViewer", false).GetComponent<AttributeViewer>());
- UTY.GetChildObject(base.root_obj, "SkillSelectViewer", false).SetActive(false);
- }
- else if (this.is_free_mode)
- {
- this.playing_skill_no_ = -1;
- this.param_basic_bar_ = UTY.GetChildObject(childObject2, "ParameterViewer/MaskGroup/ParameterParent", false).GetComponent<YotogiParamBasicBarPlusSlider>();
- childObject.SetActive(false);
- childObject2.SetActive(true);
- UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(false);
- GameObject childObject3 = UTY.GetChildObject(base.root_obj, "SkillSelectViewer/YotogiSkillSelectViewer/MaskGroup/Parent", false);
- if (childObject3.transform.childCount == 0)
- {
- this.yotogi_mgr_.skill_select_prefab_object.transform.SetParent(childObject3.transform, false);
- }
- this.free_skill_select_ = childObject3.GetComponentInChildren<FreeSkillSelect>();
- this.common_buttons_.next_btn.gameObject.SetActive(false);
- UTY.GetChildObject(this.common_buttons_.gameObject, "UnderButtonGroup/End", false).SetActive(true);
- UIButton component = UTY.GetChildObject(base.root_obj, "SkillSelectViewer/YotogiSkillSelectViewer/MaskGroup/Next", false).GetComponent<UIButton>();
- component.onClick.Clear();
- EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.OnClickSkillSelectEnd));
- }
- if (this.is_new_yotogi_mode)
- {
- GameObject childObject4 = UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer/MaskGroup/SkillGroup", false);
- UTY.GetChildObject(childObject4, "SkillParent", false).SetActive(false);
- UTY.GetChildObject(childObject4, "FrameGroup", false).SetActive(false);
- UTY.GetChildObject(childObject4, "Line", false).SetActive(false);
- UTY.GetChildObject(base.root_obj, "CommandViewer/SkillViewer", false).transform.localPosition = new Vector3(130f, 0f, 0f);
- GameObject gameObject = childObject4.transform.parent.gameObject;
- UTY.GetChildObject(gameObject, "SectionLine", false).transform.localPosition = new Vector3(-12f, -277f, 0f);
- UTY.GetChildObject(gameObject, "ParamView", false).transform.localPosition = new Vector3(109f, -279f, 0f);
- if (this.param_scroll_ != null)
- {
- this.param_scroll_.Init();
- }
- UIGrid componentInChildren = UTY.GetChildObject(gameObject, "ParamView", false).GetComponentInChildren<UIGrid>(true);
- if (componentInChildren != null)
- {
- componentInChildren.maxPerLine = 2;
- componentInChildren.enabled = true;
- }
- if (this.heroineChangeFlag)
- {
- UTY.GetChildObject(base.root_obj, "ParameterViewer", false).SetActive(false);
- this.singleStatusLock = true;
- this.heroineChangeFlag = false;
- }
- }
- this.param_basic_bar_.SetMaid(this.maid_);
- if (this.estrusMode)
- {
- this.param_basic_bar_.SetCurrentSensual(0, false);
- }
- }
- private void Initialize()
- {
- this.suspendStoreData = null;
- this.calledAdvFiles.Clear();
- this.estrusMode = false;
- this.yotogi_mgr_.acquired_propensityid_list.Clear();
- this.ClearVoice();
- this.common_buttons_.viwe_reset_btn.onClick.Clear();
- EventDelegate.Add(this.common_buttons_.viwe_reset_btn.onClick, new EventDelegate.Callback(this.OnClickViweReset));
- this.script_mgr_ = GameMain.Instance.ScriptMgr;
- this.script_mgr_.EvalScript("global.__skill_command_file = new Array();");
- this.common_buttons_.next_btn.onClick.Clear();
- EventDelegate.Add(this.common_buttons_.next_btn.onClick, new EventDelegate.Callback(this.OnClickNext));
- UIButton component = UTY.GetChildObject(this.common_buttons_.gameObject, "UnderButtonGroup/End", false).GetComponent<UIButton>();
- component.onClick.Clear();
- EventDelegate.Add(component.onClick, new EventDelegate.Callback(this.OnClickNext));
- Status status = this.maid_.status;
- this.bonusCorrectionStatus_ = status.GetBonusStatusAsFeatureAndPropensitys();
- if (!this.is_free_mode)
- {
- this.maid_.status.currentSensual = 0;
- int num = this.maid_.status.inyoku + this.maid_.status.housi + this.maid_.status.hentai + this.maid_.status.mvalue;
- this.maid_.status.currentExcite = num / 2000 * 10;
- }
- else
- {
- this.maid_.status.currentSensual = 300;
- }
- this.maid_.status.currentMind = status.maxMind;
- this.param_basic_bar_.SetMaxMind(status.maxMind);
- this.param_basic_bar_.SetCurrentSensual(status.currentSensual, false);
- this.man_alpha_slider_.value = (float)GameMain.Instance.CMSystem.ManAlpha / 100f;
- this.setting_man_alpha_ = GameMain.Instance.CMSystem.ManAlpha;
- this.man_alpha_slider_.onChange.Clear();
- EventDelegate.Add(this.man_alpha_slider_.onChange, new EventDelegate.Callback(this.ChangeSliderValue));
- this.undressing_mgr_.SetMaid(this.maid_, null);
- this.undressing_mgr_.SetMaskMode(UndressingManager.UnitType.全着衣, UndressingManager.MaskStatus.On);
- }
- private IEnumerator CallFtFiles()
- {
- while (this.yotogi_mgr_.IsAllCharaBusy())
- {
- yield return null;
- }
- for (int j = 0; j < GameMain.Instance.CharacterMgr.GetMaidCount(); j++)
- {
- Maid maid = GameMain.Instance.CharacterMgr.GetMaid(j);
- if (maid != null && maid.Visible)
- {
- maid.AllProcPropSeqStart();
- }
- }
- GameMain.Instance.CharacterMgr.DeactivateManAll();
- Skill.Data skillData = this.playing_skill_.skill_pair.base_data;
- foreach (KeyValuePair<int, string> keyValuePair in skillData.man_setting)
- {
- Maid maid2 = GameMain.Instance.CharacterMgr.CharaVisible(keyValuePair.Key, true, true);
- if (!string.IsNullOrEmpty(keyValuePair.Value))
- {
- CharacterMgr.npcDatas[keyValuePair.Value].Apply(maid2, true);
- }
- maid2.body0.SetChinkoVisible(true);
- maid2.AllProcPropSeqStart();
- }
- bool npcLoad = false;
- if (this.is_free_mode && skillData.npcmaid_setting.Length != 0)
- {
- int num = 3;
- foreach (CharacterMgr.NpcData npcData in skillData.npcmaid_setting)
- {
- Maid maid3 = GameMain.Instance.CharacterMgr.ActivateNpc(num);
- npcData.Apply(maid3, false);
- maid3.Visible = true;
- Maid maid4 = GameMain.Instance.CharacterMgr.GetMaid(num - 2);
- if (maid4 != null)
- {
- maid4.Visible = false;
- }
- GameMain.Instance.CharacterMgr.SwapActiveSlot(num - 2, num, false);
- num++;
- }
- npcLoad = true;
- }
- while (this.yotogi_mgr_.IsAllCharaBusy())
- {
- yield return null;
- }
- if (npcLoad)
- {
- for (int i = 0; i < 3; i++)
- {
- yield return null;
- }
- List<Maid> sub_madi_list = new List<Maid>();
- if (this.playing_skill_.skill_pair.base_data != null && 1 < this.playing_skill_.skill_pair.base_data.player_num)
- {
- for (int m = 1; m < this.playing_skill_.skill_pair.base_data.player_num; m++)
- {
- Maid maid5 = GameMain.Instance.CharacterMgr.GetMaid(m);
- if (maid5 != null)
- {
- sub_madi_list.Add(maid5);
- }
- }
- }
- this.undressing_mgr_.SetMaid(this.maid_, sub_madi_list.ToArray());
- }
- this.script_mgr_.is_motion_blend = true;
- CharacterMgr chara_mgr = GameMain.Instance.CharacterMgr;
- if (this.skill_pair_.base_data != null && this.skill_pair_.base_data.start_call_file != string.Empty)
- {
- string str = this.CallNormalFile(this.skill_pair_.base_data.start_call_file, string.Empty);
- this.yotogi_mgr_.AddDebugLog("FTファイル[" + str + "]を呼び出しました");
- }
- this.camera_move_support_.SaveCameraPosition();
- if (this.skill_pair_.base_data != null && this.skill_pair_.base_data.start_call_file2 != string.Empty)
- {
- string text = string.Empty;
- string text2 = string.Empty;
- if (0 <= this.maid_.status.currentExcite && this.maid_.status.currentExcite <= 200)
- {
- if (this.playing_skill_level_ == 3)
- {
- text = "*KA1";
- }
- else
- {
- text = "*KA0";
- }
- text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
- this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
- {
- "性格FTファイルKA[",
- text2,
- "][",
- text,
- "]を呼び出しました"
- }));
- }
- else
- {
- text = "*KA2";
- text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
- this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
- {
- "性格FTファイルKA[",
- text2,
- "][",
- text,
- "]を呼び出しました"
- }));
- }
- text = "*" + YotogiPlay.GetRRType(this.maid_.status.currentExcite).ToString();
- text2 = this.CallNormalFile(this.skill_pair_.base_data.start_call_file2, text);
- this.yotogi_mgr_.AddDebugLog("性格FTファイル[" + text2 + "]を呼び出しました");
- }
- while (this.yotogi_mgr_.yotogi_kag.kag.GetCurrentLabel() != "*finish")
- {
- yield return null;
- }
- this.doneFtFileCall = true;
- this.yotogi_mgr_.uiVisible = true;
- this.yotogi_mgr_.messageWindowVisible = false;
- yield break;
- }
- protected override bool IsCallFadeIn()
- {
- return this.doneFtFileCall;
- }
- public override void Update()
- {
- base.Update();
- if (Product.supportMultiLanguage && GameMain.Instance.CMSystem.YotogiSubtitleVisible)
- {
- if (0f < this.message_display_time_)
- {
- if (this.message_display_time_ <= Time.time)
- {
- this.message_display_time_ = 0f;
- }
- if (this.subtitlesManager != null)
- {
- this.subtitlesManager.visible = true;
- }
- }
- else if (this.subtitlesManager != null)
- {
- this.subtitlesManager.visible = false;
- }
- }
- else if (this.subtitlesManager != null)
- {
- this.subtitlesManager.visible = false;
- }
- if (GameMain.Instance.CMSystem.ManAlpha != this.setting_man_alpha_)
- {
- this.man_alpha_slider_.value = (float)GameMain.Instance.CMSystem.ManAlpha / 100f;
- this.setting_man_alpha_ = GameMain.Instance.CMSystem.ManAlpha;
- }
- if (base.fade_status != WfScreenChildren.FadeStatus.Wait)
- {
- return;
- }
- if (0 < this.control_mask_tick_count && this.control_mask_tick_count <= GameMain.tick_count)
- {
- this.SetControlMask(false, false);
- }
- if (this.additionalFtVoice == null)
- {
- if (!this.lockRepeatVoiceUpdate)
- {
- for (int i = 0; i < this.repeat_voice_data_list_.Count; i++)
- {
- YotogiPlayManager.RepeatVoiceData repeatVoiceData = this.repeat_voice_data_list_[i];
- if (!string.IsNullOrEmpty(repeatVoiceData.repeat_voice_file))
- {
- Maid maid;
- if (0 < repeatVoiceData.maid_no)
- {
- maid = GameMain.Instance.CharacterMgr.GetMaid(repeatVoiceData.maid_no);
- }
- else
- {
- maid = this.maid_;
- if (YotogiManager.isGP001HaremMode)
- {
- maid = GameMain.Instance.CharacterMgr.GetMaid(0);
- }
- }
- if (!maid.AudioMan.isPlay())
- {
- repeatVoiceData.elapsed_time += (int)(Time.deltaTime * 1000f);
- if (this.kRepeatWaitTime <= repeatVoiceData.elapsed_time)
- {
- repeatVoiceData.elapsed_time = 0;
- if (maid != null && maid.AudioMan != null)
- {
- maid.AudioMan.LoadPlay(repeatVoiceData.repeat_voice_file, 0f, false, true);
- if (this.subtitlesManager != null && !string.IsNullOrEmpty(repeatVoiceData.text))
- {
- this.message_display_time_ = float.MaxValue;
- this.subtitlesManager.SetTextFromScriptStyle(repeatVoiceData.text);
- }
- }
- }
- }
- }
- }
- }
- if (this.is_faint_end && !GameMain.Instance.MainCamera.IsFadeProcNoUI() && GameMain.Instance.SysDlg.IsDecided)
- {
- bool flag = this.playing_skill_ != null && this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint;
- if (!flag)
- {
- this.CallNormalFile("?_YOTOGI_SYSTEM_KIZETU.ks", string.Empty);
- GameMain.Instance.MainCamera.FadeOutNoUI(base.fade_time, true);
- }
- if (this.playing_skill_.skill_pair.base_data.connect_faint_skill != null)
- {
- GameMain.Instance.SysDlg.Show("気絶しました。\n気絶したメイドを責めますか?", SystemDialog.TYPE.YES_NO, delegate
- {
- GameMain.Instance.SysDlg.Close();
- this.yotogi_mgr_.AddPlaySkill(this.playing_skill_.skill_pair.base_data.connect_faint_skill);
- this.playing_skill_no_ = this.yotogi_mgr_.play_skill_array.Length - 2;
- this.maid_.status.currentMind = this.maid_.status.maxMind;
- this.Finish();
- }, delegate
- {
- GameMain.Instance.SysDlg.Close();
- this.playing_skill_no_ = -1;
- this.Finish();
- });
- }
- else if (flag)
- {
- this.playing_skill_no_ = -1;
- this.Finish();
- }
- else
- {
- GameMain.Instance.SysDlg.ShowFromLanguageTerm("Dialog/気絶して夜伽終了報告", null, SystemDialog.TYPE.OK, delegate
- {
- GameMain.Instance.SysDlg.Close();
- this.playing_skill_no_ = -1;
- this.Finish();
- }, null);
- }
- this.is_faint_end = false;
- }
- return;
- }
- Maid maid2 = GameMain.Instance.CharacterMgr.GetMaid(this.additionalFtVoice.maidNo);
- if (!this.additionalFtVoice.isPlaying)
- {
- bool flag2 = true;
- int num = 0;
- while (num < GameMain.Instance.CharacterMgr.GetMaidCount() && flag2)
- {
- Maid maid3 = GameMain.Instance.CharacterMgr.GetMaid(num);
- if (maid3 != null && maid3.AudioMan.isPlay())
- {
- flag2 = false;
- }
- num++;
- }
- if (flag2)
- {
- this.yotogi_mgr_.yotogi_kag.PlayVoice(maid2, this.additionalFtVoice.voiceFile);
- if (maid2.AudioMan.isPlay())
- {
- float length = maid2.AudioMan.GetLength();
- this.yotogi_mgr_.play_mgr.SetMessageTextDisplayTime((int)(length * 1000f));
- string text = this.additionalFtVoice.text;
- if (!string.IsNullOrEmpty(text))
- {
- this.yotogi_mgr_.play_mgr.SetMessageText(text);
- }
- }
- this.additionalFtVoice.isPlaying = true;
- }
- return;
- }
- if (maid2 == null || !maid2.AudioMan.isPlay())
- {
- this.additionalFtVoice = null;
- }
- }
- public bool NextSkill()
- {
- this.message_display_time_ = 0f;
- int num = (!YotogiStageSelectManager.SelectedStageRefDayTime) ? 1 : 0;
- string text = YotogiStageSelectManager.SelectedStage.prefabName[num];
- if (0 <= text.IndexOf("?"))
- {
- text = ScriptManager.ReplacePersonal(this.maid_, text);
- }
- GameMain.Instance.BgMgr.ChangeBg(text);
- this.ClearVoice();
- this.SetRepeatVoiceFile(string.Empty, 0);
- this.SetControlMask(false, false);
- this.play_command_id_.Clear();
- this.playing_skill_no_++;
- Status status = this.maid_.status;
- if (status.currentMind <= 0)
- {
- status.currentMind = status.maxMind / 2;
- }
- else
- {
- status.currentMind = status.maxMind;
- }
- this.param_basic_bar_.SetCurrentExcite(status.currentExcite, false);
- this.param_basic_bar_.SetCurrentMind(status.currentMind, false);
- this.param_basic_bar_.SetCurrentSensual(status.currentSensual, false);
- if (this.paramenter_viewer_ != null && this.paramenter_viewer_.gameObject.activeSelf)
- {
- this.paramenter_viewer_.SetMaid(this.maid_);
- this.paramenter_viewer_.UpdateTextCommon();
- this.paramenter_viewer_.UpdateTextParam();
- }
- this.param_scroll_.Init();
- this.commandClickCountSingle.Clear();
- if (this.yotogi_mgr_.play_skill_array[this.playing_skill_no_].skill_pair.base_data == null)
- {
- return false;
- }
- this.UpdateSkillTower();
- this.playing_skill_ = this.yotogi_mgr_.play_skill_array[this.playing_skill_no_];
- this.skill_pair_ = this.playing_skill_.skill_pair;
- if (this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint)
- {
- this.SetSkillTowerButtonEnabled(false);
- }
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- if (this.is_free_mode)
- {
- GameMain.Instance.CMSystem.SetTmpGenericFlag("AddAllOffset_Ignore", 0);
- characterMgr.ResetCharaPosAll();
- int num2 = 1;
- for (;;)
- {
- Maid maid = characterMgr.GetMaid(num2);
- if (maid == null || !maid.boNPC)
- {
- break;
- }
- characterMgr.SwapActiveSlot(num2 + 2, num2, false);
- characterMgr.Deactivate(num2 + 2, false);
- num2++;
- }
- }
- for (int i = 1; i < characterMgr.GetMaidCount(); i++)
- {
- Maid maid2 = characterMgr.GetMaid(i);
- if (maid2 != null && maid2.Visible)
- {
- maid2.OpenMouth(false);
- maid2.Visible = false;
- }
- }
- List<Maid> list = new List<Maid>();
- if (this.playing_skill_.skill_pair.base_data != null && 1 < this.playing_skill_.skill_pair.base_data.player_num)
- {
- for (int j = 1; j < this.playing_skill_.skill_pair.base_data.player_num; j++)
- {
- Maid maid3 = characterMgr.GetMaid(j);
- if (maid3 != null)
- {
- maid3.OpenMouth(false);
- maid3.Visible = true;
- list.Add(maid3);
- }
- }
- }
- if (!YotogiManager.isGP001HaremMode)
- {
- this.undressing_mgr_.SetMaid(this.maid_, list.ToArray());
- }
- else
- {
- this.undressing_mgr_.SetMaid(characterMgr.GetMaid(0), list.ToArray());
- }
- if (!this.maid_.Visible)
- {
- this.maid_.Visible = true;
- }
- this.replace_personal_target_maid_array_ = new Maid[1 + list.Count];
- this.replace_personal_target_maid_array_[0] = this.maid_;
- for (int k = 0; k < list.Count; k++)
- {
- this.replace_personal_target_maid_array_[k + 1] = list[k];
- }
- this.playing_skill_.is_play = true;
- if (this.command_menu != null)
- {
- this.command_menu.ReserveSkillCommand(this.skill_pair_.base_data.command);
- this.command_menu.visible = true;
- }
- this.command_factory_.ReserveSkillCommand(this.skill_pair_.base_data.command);
- this.valid_command_dic_.Clear();
- Skill.Data.Command.Data[] data = this.skill_pair_.base_data.command.data;
- if (this.skill_pair_.skill_data == null)
- {
- this.playing_skill_level_ = ((this.yotogi_mgr_.fix_skill_level != 0) ? this.yotogi_mgr_.fix_skill_level : 3);
- }
- else
- {
- this.playing_skill_level_ = ((this.yotogi_mgr_.fix_skill_level != 0) ? this.yotogi_mgr_.fix_skill_level : this.skill_pair_.skill_data.level);
- }
- for (int l = 0; l < data.Length; l++)
- {
- this.valid_command_dic_.Add(data[l]);
- }
- this.UpdateCommand();
- this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
- {
- "スキル[",
- this.skill_pair_.base_data.name,
- " Lv.",
- this.playing_skill_level_.ToString(),
- "]を開始開始しました"
- }));
- return true;
- }
- public void Suspend(Skill.Data.Command.Data suspendCommandData, string jumpLabel)
- {
- if (GameMain.Instance.MainCamera.IsFadeProc())
- {
- Debug.LogError("failed to Yotogi Suspend.");
- return;
- }
- this.additionalFtVoice = null;
- this.yotogi_mgr_.yotogi_kag.enabled = false;
- this.SetControlMask(true, true);
- this.lockRepeatVoiceUpdate = true;
- this.suspendStoreData = new YotogiPlay.SuspendStore();
- this.suspendStoreData.comand = suspendCommandData;
- GameMain.Instance.MainCamera.FadeOut(0.5f, false, delegate
- {
- this.yotogi_mgr_.uiVisible = false;
- GameMain.Instance.ScriptMgr.adv_kag.JumpLabel(jumpLabel);
- GameMain.Instance.ScriptMgr.adv_kag.Exec();
- }, true, default(Color));
- }
- public void ReturnSuspend()
- {
- if (GameMain.Instance.MainCamera.IsFadeProc() || this.suspendStoreData == null)
- {
- Debug.LogError("failed to Yotogi ReturnSuspend.");
- return;
- }
- this.yotogi_mgr_.yotogi_kag.enabled = true;
- this.yotogi_mgr_.uiVisible = true;
- this.yotogi_mgr_.messageWindowVisible = false;
- if (this.suspendStoreData.comand != null)
- {
- if (!string.IsNullOrEmpty(this.suspendStoreData.comand.basic.attribute_type))
- {
- string attribute_type = this.suspendStoreData.comand.basic.attribute_type;
- if (!this.commandClickCountSingle.ContainsKey(attribute_type))
- {
- this.commandClickCountSingle.Add(attribute_type, 0);
- }
- if (!this.commandClickCountTotal.ContainsKey(attribute_type))
- {
- this.commandClickCountTotal.Add(attribute_type, 0);
- }
- Dictionary<string, int> dictionary;
- string key;
- (dictionary = this.commandClickCountSingle)[key = attribute_type] = dictionary[key] - 1;
- string key2;
- (dictionary = this.commandClickCountTotal)[key2 = attribute_type] = dictionary[key2] - 1;
- }
- this.OnClickCommand(this.suspendStoreData.comand);
- }
- this.suspendStoreData = null;
- GameMain.Instance.MainCamera.FadeIn(0.5f, false, delegate
- {
- this.SetControlMask(false, true);
- }, true, true, default(Color));
- }
- public void ReStart()
- {
- if (GameMain.Instance.MainCamera.IsFadeProc() || this.suspendStoreData == null)
- {
- Debug.LogError("failed to Yotogi ReStart.");
- return;
- }
- this.playing_skill_no_ = -1;
- if (!this.is_free_mode && !this.is_vr_mode)
- {
- for (int i = 0; i < this.yotogi_mgr_.play_skill_array.Length; i++)
- {
- if (this.yotogi_mgr_.play_skill_array[i].skill_pair.base_data != null)
- {
- if (!this.yotogi_mgr_.play_skill_array[i].is_play)
- {
- this.playing_skill_no_ = i - 1;
- break;
- }
- }
- }
- }
- this.OnNextSkillMove();
- }
- public string CallNormalFile(string file, string label)
- {
- string text = string.Empty;
- if (YotogiManager.isGP001HaremMode)
- {
- Maid[] array = new Maid[this.replace_personal_target_maid_array_.Length];
- this.replace_personal_target_maid_array_.CopyTo(array, 0);
- array[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
- text = ScriptManager.ReplacePersonal(array, file);
- }
- else
- {
- text = ScriptManager.ReplacePersonal(this.replace_personal_target_maid_array_, file);
- }
- GameMain.Instance.ScriptMgr.EvalScript("global.__skill_first_file = '" + text + "';");
- if (label == null)
- {
- label = string.Empty;
- }
- GameMain.Instance.ScriptMgr.EvalScript("global.__skill_first_file_label = '" + label + "';");
- GameMain.Instance.ScriptMgr.LoadYotogiScript("yotogi_skill_call_main.ks", string.Empty);
- return text;
- }
- public void ApplyExecCommandStatus(Maid maid, Skill.Data.Command.Data cm)
- {
- Skill.Data.Command.Data.Status status = cm.status;
- bool flag = this.maid_.status.enabledYotogiStatusLock || this.singleStatusLock;
- Status maid_status = maid.status;
- BonusStatus bonusStatus = this.bonusCorrectionStatus_;
- 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));
- Func<int, int, int> func = delegate(int calc_a_command_num, int calc_a_correction_num)
- {
- float num4 = ((float)calc_a_command_num * (100f + (float)calc_a_correction_num) + (float)((this.playing_skill_level_ - 1) * 10)) / 100f;
- int num5 = maid_status.studyRate / 10;
- float num6 = 100f - (float)((100 - num5) / 10 * 5);
- num4 *= num6 * 0.01f;
- return feiling_func(num4);
- };
- Func<int, int, int> func2 = delegate(int calc_b_command_num, int calc_a_correction_num)
- {
- float arg = (float)calc_b_command_num * (100f + (float)calc_a_correction_num) / 100f;
- return feiling_func(arg);
- };
- Func<int, int, int> func3 = (int calc_a_command_num, int calc_a_correction_num) => calc_a_command_num;
- int num = (!this.is_excite_lock_) ? func2(status.excitement, bonusStatus.excite) : 0;
- if (cm.status.bonusExcitementUpLine <= this.maid_.status.currentExcite || cm.status.bonusExcitementDownLine > this.maid_.status.currentExcite)
- {
- num = (int)Mathf.Floor((float)num * 1.2f);
- }
- maid_status.currentExcite += num;
- if (this.is_free_mode || this.is_vr_mode)
- {
- return;
- }
- if (!flag)
- {
- maid_status.baseLovely += func3(status.lovely, bonusStatus.lovely);
- maid_status.baseElegance += func3(status.elegance, bonusStatus.elegance);
- maid_status.baseCharm += func3(status.charm, bonusStatus.charm);
- }
- if (!this.estrusMode)
- {
- maid_status.currentMind += func(status.mind, bonusStatus.mind);
- maid_status.currentSensual += func(status.sensual, bonusStatus.sensual);
- }
- else
- {
- maid_status.currentSensual += func(status.cost_sensual, bonusStatus.sensual);
- }
- if (!flag)
- {
- maid_status.baseInyoku += func(status.inyoku, bonusStatus.inyoku);
- maid_status.baseMvalue += func(status.m_value, bonusStatus.mvalue);
- maid_status.baseHentai += func(status.hentai, bonusStatus.hentai);
- maid_status.baseHousi += func(status.housi, bonusStatus.housi);
- maid_status.baseReception += func(status.reception, bonusStatus.reception);
- maid_status.baseTeachRate += func(status.teach_rate, bonusStatus.teachRate);
- }
- int num2 = this.maid_.status.inyoku + this.maid_.status.housi + this.maid_.status.hentai + this.maid_.status.mvalue;
- int num3 = num2 / 2000 * 2;
- if (!this.playing_skill_.skill_pair.lock_skill_exp)
- {
- this.playing_skill_.exp += status.skill_exp + num3;
- }
- }
- public void SetMessageText(string text)
- {
- if (Product.supportMultiLanguage && this.subtitlesManager != null)
- {
- this.subtitlesManager.SetTextFromScriptStyle(text);
- }
- }
- public void SetMessageTextDisplayTime(int time)
- {
- if (Product.supportMultiLanguage)
- {
- if (0 < time)
- {
- this.message_display_time_ = Time.time + (float)time / 1000f;
- }
- else
- {
- this.message_display_time_ = 0f;
- }
- }
- }
- public void SetAdditionalFtVoice(string voideFile, string text, int maidNo)
- {
- this.additionalFtVoice = new YotogiPlayManager.AddFtVoiceData();
- this.additionalFtVoice.voiceFile = voideFile;
- this.additionalFtVoice.text = text;
- this.additionalFtVoice.maidNo = maidNo;
- }
- public void SetRepeatVoiceFile(string file_name, int maid_no)
- {
- this.repeat_voice_data_list_.Clear();
- this.AddRepeatVoiceFile(file_name, maid_no);
- }
- public void AddRepeatVoiceFile(string file_name, int maid_no)
- {
- YotogiPlayManager.RepeatVoiceData repeatVoiceData = new YotogiPlayManager.RepeatVoiceData();
- repeatVoiceData.repeat_voice_file = file_name;
- repeatVoiceData.maid_no = maid_no;
- repeatVoiceData.elapsed_time = this.kRepeatWaitTime;
- this.repeat_voice_data_list_.Add(repeatVoiceData);
- }
- public void AddRepeatVoiceText(string text)
- {
- if (Product.supportMultiLanguage && 0 < this.repeat_voice_data_list_.Count)
- {
- YotogiPlayManager.RepeatVoiceData repeatVoiceData = this.repeat_voice_data_list_[this.repeat_voice_data_list_.Count - 1];
- repeatVoiceData.text = text;
- }
- }
- public void RemoveRepeatVoiceData(int maidNo)
- {
- List<YotogiPlayManager.RepeatVoiceData> list = new List<YotogiPlayManager.RepeatVoiceData>();
- foreach (YotogiPlayManager.RepeatVoiceData repeatVoiceData in this.repeat_voice_data_list_)
- {
- if (maidNo != repeatVoiceData.maid_no)
- {
- list.Add(repeatVoiceData);
- }
- }
- this.repeat_voice_data_list_ = list;
- }
- public void ClearRepeatVoiceData()
- {
- this.repeat_voice_data_list_.Clear();
- }
- public void ClearVoice()
- {
- this.additionalFtVoice = null;
- GameMain.Instance.SoundMgr.VoiceStopAll();
- foreach (YotogiPlayManager.RepeatVoiceData repeatVoiceData in this.repeat_voice_data_list_)
- {
- repeatVoiceData.elapsed_time = 0;
- }
- }
- private void OnClickCommand(Skill.Data.Command.Data command_data)
- {
- if (this.yotogi_mgr_.IsAllCharaBusy())
- {
- this.yotogi_mgr_.AddDebugLog("============================================");
- this.yotogi_mgr_.AddDebugLog("×コマンド[" + command_data.basic.name + "]が押されました");
- this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
- this.yotogi_mgr_.AddDebugLog("============================================");
- return;
- }
- this.yotogi_mgr_.AddDebugLog("============================================");
- this.yotogi_mgr_.AddDebugLog("■コマンド[" + command_data.basic.name + "]が押されました");
- if (!string.IsNullOrEmpty(command_data.basic.attribute_type))
- {
- string attribute_type = command_data.basic.attribute_type;
- if (!this.commandClickCountSingle.ContainsKey(attribute_type))
- {
- this.commandClickCountSingle.Add(attribute_type, 0);
- }
- if (!this.commandClickCountTotal.ContainsKey(attribute_type))
- {
- this.commandClickCountTotal.Add(attribute_type, 0);
- }
- Dictionary<string, int> dictionary;
- string key;
- (dictionary = this.commandClickCountSingle)[key = attribute_type] = dictionary[key] + 1;
- string key2;
- (dictionary = this.commandClickCountTotal)[key2 = attribute_type] = dictionary[key2] + 1;
- }
- if (!string.IsNullOrEmpty(command_data.basic.call_file.adv_hook_file))
- {
- bool flag = false;
- string key3 = string.Empty;
- string text = string.Empty;
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file = '';");
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label = '';");
- this.CallNormalFile(command_data.basic.call_file.adv_hook_file, string.Empty);
- using (TJSVariant tjsvariant = new TJSVariant())
- {
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file != ''", tjsvariant);
- flag = tjsvariant.AsBool();
- if (flag)
- {
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_file", tjsvariant);
- key3 = tjsvariant.AsString();
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label != ''", tjsvariant);
- if (tjsvariant.AsBool())
- {
- GameMain.Instance.ScriptMgr.EvalScript("global.__yotogi_advhook_label", tjsvariant);
- text = tjsvariant.AsString();
- }
- if (string.IsNullOrEmpty(text))
- {
- flag = !this.calledAdvFiles.ContainsKey(key3);
- }
- else
- {
- flag = (!this.calledAdvFiles.ContainsKey(key3) || !this.calledAdvFiles[key3].Contains(text));
- }
- if (flag)
- {
- if (!this.calledAdvFiles.ContainsKey(key3))
- {
- this.calledAdvFiles.Add(key3, new HashSet<string>());
- }
- if (!string.IsNullOrEmpty(text) && !this.calledAdvFiles[key3].Contains(text))
- {
- this.calledAdvFiles[key3].Add(text);
- }
- }
- }
- }
- if (flag)
- {
- this.Suspend(command_data, "*サスペンド");
- return;
- }
- }
- this.play_command_id_.Add(command_data.basic.id);
- this.backup_maid_param_ = YotogiPlay.Param.Create(this.maid_);
- this.ApplyExecCommandStatus(this.maid_, command_data);
- if (this.paramenter_viewer_ != null && this.paramenter_viewer_.gameObject.activeSelf)
- {
- this.paramenter_viewer_.UpdateTextParam();
- }
- if (!this.is_free_mode && this.playing_skill_.skill_pair.base_data.command.commandCoundId == command_data.basic.id)
- {
- this.playing_skill_.skill_pair.skill_data.commandCount++;
- }
- if (command_data.basic.isEstrusTriggerCommand)
- {
- this.estrusMode = true;
- }
- this.particleBreathe = !command_data.basic.isStopParticleBreathe;
- if (command_data.basic.isStopParticleLoveLiquid)
- {
- this.particleLoveLiquidType = 0;
- }
- else
- {
- if ((command_data.basic.command_type == Yotogi.SkillCommandType.挿入 || command_data.basic.command_type == Yotogi.SkillCommandType.継続) && this.player_state_ != YotogiPlay.PlayerState.Insert)
- {
- foreach (GameObject gameObject in this.loveLiquidObjects)
- {
- gameObject.GetComponent<ParticleSystem>().main.startDelay = 2.5f;
- }
- }
- else if (this.particleLoveLiquidType == 0)
- {
- foreach (GameObject gameObject2 in this.loveLiquidObjects)
- {
- gameObject2.GetComponent<ParticleSystem>().main.startDelay = 0f;
- }
- }
- this.particleLoveLiquidType = ((200 > this.maid_.status.currentExcite) ? ((100 > this.maid_.status.currentExcite) ? 1 : 2) : 3);
- }
- this.param_basic_bar_.SetCurrentMind(this.maid_.status.currentMind, true);
- this.param_basic_bar_.SetCurrentSensual(this.maid_.status.currentSensual, true);
- this.param_basic_bar_.SetCurrentExcite(this.maid_.status.currentExcite, true);
- YotogiPlay.Param param = YotogiPlay.Param.Create(this.maid_) - this.backup_maid_param_;
- Action<List<KeyValuePair<string, int>>, string, int> action = delegate(List<KeyValuePair<string, int>> list, string name, int num)
- {
- if (num == 0)
- {
- return;
- }
- list.Add(new KeyValuePair<string, int>(name, num));
- };
- List<KeyValuePair<string, int>> list2 = new List<KeyValuePair<string, int>>();
- action(list2, "興奮", param.currentExcite);
- action(list2, (!this.is_new_yotogi_mode) ? "精神" : "時間", param.currentMind);
- action(list2, "官能", param.cur_sensory);
- action(list2, "淫欲", param.inyoku);
- action(list2, "M性", param.m_value);
- action(list2, "変態", param.hentai);
- action(list2, "奉仕", param.housi);
- action(list2, "可憐", param.lovely);
- action(list2, "気品", param.elegance);
- action(list2, "魅惑", param.charm);
- action(list2, "接待", param.reception);
- action(list2, "指導", param.teach_rate / 10);
- this.param_scroll_.CallFadeIn(list2);
- this.ClearCommandFile();
- this.SetMessageTextDisplayTime(0);
- this.additionalFtVoice = null;
- Maid maid = this.maid_;
- if (0 < command_data.basic.ref_maid_no)
- {
- Maid maid2 = GameMain.Instance.CharacterMgr.GetMaid(command_data.basic.ref_maid_no);
- if (maid2 != null)
- {
- maid = maid2;
- }
- int num3 = -1;
- for (int k = 1; k < this.replace_personal_target_maid_array_.Length; k++)
- {
- if (this.replace_personal_target_maid_array_[k] == maid)
- {
- num3 = k;
- break;
- }
- }
- if (0 < num3)
- {
- this.replace_personal_target_maid_array_[0] = maid;
- this.replace_personal_target_maid_array_[num3] = this.maid_;
- }
- }
- this.lockRepeatVoiceUpdate = false;
- Yotogi.SkillCommandType command_type = command_data.basic.command_type;
- if (command_data.basic.isAcquisitionPropensityCommand)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 性癖-覚醒");
- this.SetControlMask(true, false);
- int id = command_data.basic.learning_propensity.id;
- if (!this.is_free_mode && !this.yotogi_mgr_.acquired_propensityid_list.Contains(id))
- {
- this.yotogi_mgr_.acquired_propensityid_list.Add(id);
- }
- this.CallCommandFile(command_data.basic.call_file.propensity_arousal_file, string.Empty, true);
- this.PlayRRFile(command_data);
- }
- else if (command_type == Yotogi.SkillCommandType.挿入 || command_type == Yotogi.SkillCommandType.継続)
- {
- if (this.skill_pair_.base_data.specialConditionType == Skill.Data.SpecialConditionType.Drunk)
- {
- this.PlayDrunkContinue(command_data, maid, true);
- }
- else
- {
- this.PlayNormalContinue(command_data, maid, true);
- }
- this.PlayRRFile(command_data);
- }
- else if (command_type == Yotogi.SkillCommandType.単発 || command_type == Yotogi.SkillCommandType.単発_挿入)
- {
- bool flag2 = false;
- if (command_data.basic.isPropensityCommand)
- {
- flag2 = this.maid_.status.propensitys.ContainsKey(command_data.basic.learning_propensity.id);
- }
- if (this.skill_pair_.base_data.specialConditionType == Skill.Data.SpecialConditionType.Drunk)
- {
- this.PlayDrunkSingle(command_data, maid, true);
- }
- else if (flag2)
- {
- this.PlayProclivitySingle(command_data, true);
- }
- else
- {
- this.PlayNormalSingle(command_data, maid, true);
- }
- this.PlayRRFile(command_data);
- }
- else if (command_type == Yotogi.SkillCommandType.絶頂)
- {
- this.PlayNormalClimax(command_data, false);
- }
- else if (command_type == Yotogi.SkillCommandType.止める)
- {
- this.PlayNormalStop(command_data, true);
- this.PlayRRFile(command_data);
- }
- if (command_type == Yotogi.SkillCommandType.挿入 || command_type == Yotogi.SkillCommandType.単発_挿入)
- {
- this.player_state_ = YotogiPlay.PlayerState.Insert;
- }
- else if (command_type == Yotogi.SkillCommandType.止める)
- {
- this.player_state_ = YotogiPlay.PlayerState.Normal;
- }
- else if (command_type == Yotogi.SkillCommandType.絶頂)
- {
- this.player_state_ = YotogiPlay.PlayerState.Normal;
- }
- this.UpdateCommand();
- this.yotogi_mgr_.AddDebugLog("============================================");
- if (0 < command_data.basic.ref_maid_no && maid != this.maid_)
- {
- int num2 = -1;
- for (int l = 1; l < this.replace_personal_target_maid_array_.Length; l++)
- {
- if (this.replace_personal_target_maid_array_[l] == this.maid_)
- {
- num2 = l;
- break;
- }
- }
- if (0 < num2)
- {
- this.replace_personal_target_maid_array_[0] = this.maid_;
- this.replace_personal_target_maid_array_[num2] = maid;
- }
- }
- }
- private void PlayRRFile(Skill.Data.Command.Data command_data)
- {
- Yotogi.RRType rrtype = YotogiPlay.GetRRType(this.maid_.status.currentExcite);
- string text = (!this.estrusMode) ? "*" : "*発情";
- text += rrtype.ToString();
- this.CallCommandFile(command_data.basic.call_file.rr, text, false);
- }
- private void PlayNormalContinue(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 通常-挿入,継続系");
- if (this.player_state_ != YotogiPlay.PlayerState.Insert)
- {
- this.PlayInsert(command_data, lockRRUpdate);
- }
- Relation relation = target_maid.status.relation;
- string text = string.Empty;
- string text2 = string.Empty;
- Yotogi.RCType rctype = YotogiPlay.GetRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
- if (rctype != Yotogi.RCType.RCNull)
- {
- string str = rctype.ToString();
- this.yotogi_mgr_.AddDebugLog("RC HIT!! " + str);
- text = command_data.basic.call_file.rc;
- if (this.estrusMode)
- {
- text2 = ((this.playing_skill_level_ != 3) ? "*初々しい発情" : "*慣れ発情");
- text2 += str;
- }
- else if (this.playing_skill_level_ == 3)
- {
- if (relation == Relation.Lover)
- {
- text2 = "*慣れ恋人" + str;
- }
- else
- {
- text2 = "*緊張orお近づきor信頼" + str;
- }
- }
- else if (this.playing_skill_level_ == 2 || relation == Relation.Trust)
- {
- text2 = "*フラット、変化進行" + str;
- }
- else if (relation != Relation.Contact)
- {
- if (relation == Relation.Lover)
- {
- text2 = "*初々しい恋人" + str;
- }
- }
- else
- {
- text2 = "*初々しいお近づき" + str;
- }
- }
- else
- {
- this.PlayInsert2(command_data, lockRRUpdate);
- Yotogi.RRCType rrctype = YotogiPlay.GetRRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
- HashSet<Yotogi.RRCType> hashSet = new HashSet<Yotogi.RRCType>();
- if (this.estrusMode)
- {
- hashSet.Add(Yotogi.RRCType.RRC1);
- hashSet.Add(Yotogi.RRCType.RRC3);
- hashSet.Add(Yotogi.RRCType.RRC4);
- hashSet.Add(Yotogi.RRCType.RRC6);
- }
- if (rrctype == Yotogi.RRCType.RRC9 && this.estrusMode && this.maid_.status.currentExcite < 300)
- {
- rrctype = Yotogi.RRCType.RRCNull;
- }
- if (rrctype != Yotogi.RRCType.RRCNull && (!this.estrusMode || !hashSet.Contains(rrctype)))
- {
- if (this.estrusMode)
- {
- Dictionary<Yotogi.RRCType, Yotogi.RRCType> dictionary = new Dictionary<Yotogi.RRCType, Yotogi.RRCType>();
- dictionary.Add(Yotogi.RRCType.RRC2, Yotogi.RRCType.RRC1);
- dictionary.Add(Yotogi.RRCType.RRC5, Yotogi.RRCType.RRC2);
- dictionary.Add(Yotogi.RRCType.RRC7, Yotogi.RRCType.RRC3);
- dictionary.Add(Yotogi.RRCType.RRC8, Yotogi.RRCType.RRC4);
- dictionary.Add(Yotogi.RRCType.RRC9, Yotogi.RRCType.RRC5);
- if (dictionary.ContainsKey(rrctype))
- {
- rrctype = dictionary[rrctype];
- }
- }
- string str2 = rrctype.ToString();
- if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2 || rrctype == Yotogi.RRCType.RRC_1 || rrctype == Yotogi.RRCType.RRC_2)
- {
- text2 = "*初々しい";
- }
- else if (this.playing_skill_level_ == 3)
- {
- text2 = "*慣れ";
- }
- if (this.estrusMode)
- {
- text2 += "発情";
- }
- text2 += str2;
- if (!string.IsNullOrEmpty(text2))
- {
- text = command_data.basic.call_file.rrc;
- }
- }
- }
- if (text != string.Empty)
- {
- this.CallCommandFile(text, text2, lockRRUpdate);
- }
- }
- private void PlayNormalClimax(Skill.Data.Command.Data command_data, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 通常-絶頂系");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.maid_.status.currentExcite);
- string file = command_data.basic.call_file.normal;
- string text = string.Empty;
- if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
- {
- text = ((this.backup_maid_param_.currentExcite >= 200) ? "*SYA2" : "*SYA1");
- }
- else
- {
- text = ((this.backup_maid_param_.currentExcite >= 200) ? "*SYA4" : "*SYA3");
- }
- if (this.estrusMode)
- {
- text = text.Replace("*", "*発情");
- }
- this.CallCommandFile(file, text, lockRRUpdate);
- file = command_data.basic.call_file.rr;
- if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
- {
- if (excitementStatus == Yotogi.ExcitementStatus.Minus || excitementStatus == Yotogi.ExcitementStatus.Small)
- {
- text = "*ZIG1";
- }
- else if (excitementStatus == Yotogi.ExcitementStatus.Medium)
- {
- text = "*ZIG2";
- }
- else if (excitementStatus == Yotogi.ExcitementStatus.Large)
- {
- text = "*ZIG3";
- }
- }
- else if (excitementStatus == Yotogi.ExcitementStatus.Minus || excitementStatus == Yotogi.ExcitementStatus.Small)
- {
- text = "*ZIG4";
- }
- else if (excitementStatus == Yotogi.ExcitementStatus.Medium)
- {
- text = "*ZIG5";
- }
- else if (excitementStatus == Yotogi.ExcitementStatus.Large)
- {
- text = "*ZIG6";
- }
- if (this.estrusMode)
- {
- text = text.Replace("*", "*発情");
- }
- this.CallCommandFile(file, text, lockRRUpdate);
- }
- private void PlayNormalStop(Skill.Data.Command.Data command_data, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 通常-止める系");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.maid_.status.currentExcite);
- string normal = command_data.basic.call_file.normal;
- string text = string.Empty;
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- text = "*YAM1";
- break;
- case Yotogi.ExcitementStatus.Small:
- text = "*YAM2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- text = "*YAM3";
- break;
- case Yotogi.ExcitementStatus.Large:
- text = "*YAM4";
- break;
- }
- if (this.estrusMode)
- {
- text = text.Replace("*", "*発情");
- }
- this.CallCommandFile(normal, text, lockRRUpdate);
- }
- private void PlayNormalSingle(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 通常-単発系");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
- string normal = command_data.basic.call_file.normal;
- string label = string.Empty;
- Relation relation = target_maid.status.relation;
- if (this.estrusMode)
- {
- if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*発情SA1";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*発情SA2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*発情SA3";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*発情SA4";
- break;
- }
- }
- else
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*発情SA5";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*発情SA6";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*発情SA7";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*発情SA8";
- break;
- }
- }
- }
- else if (this.playing_skill_level_ == 1 || this.playing_skill_level_ == 2)
- {
- if (relation == Relation.Lover)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*SA5";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*SA6";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*SA7";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*SA8";
- break;
- }
- }
- else if (this.playing_skill_level_ == 2 || relation == Relation.Trust)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*SA9";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*SA10";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*SA11";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*SA12";
- break;
- }
- }
- else
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*SA1";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*SA2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*SA3";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*SA4";
- break;
- }
- }
- }
- else if (this.playing_skill_level_ == 3)
- {
- if (relation == Relation.Lover)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*SA17";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*SA18";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*SA19";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*SA20";
- break;
- }
- }
- else
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*SA13";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*SA14";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*SA15";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*SA16";
- break;
- }
- }
- }
- this.CallCommandFile(normal, label, lockRRUpdate);
- }
- private void PlayInsert(Skill.Data.Command.Data command_data, bool lockRRUpdate)
- {
- string normal = command_data.basic.call_file.normal;
- string text = string.Empty;
- this.yotogi_mgr_.AddDebugLog(" 挿入中ではないのでファイルコール");
- switch (YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite))
- {
- case Yotogi.ExcitementStatus.Minus:
- text = "*SOU1";
- break;
- case Yotogi.ExcitementStatus.Small:
- text = "*SOU2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- text = "*SOU3";
- break;
- case Yotogi.ExcitementStatus.Large:
- text = "*SOU4";
- break;
- }
- if (this.estrusMode)
- {
- text = text.Replace("*", "*発情");
- }
- this.CallCommandFile(normal, text, lockRRUpdate);
- }
- private void PlayInsert2(Skill.Data.Command.Data command_data, bool lockRRUpdate)
- {
- string insert = command_data.basic.call_file.insert;
- string text = string.Empty;
- this.yotogi_mgr_.AddDebugLog(" 挿入中のファイルコール");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
- if (this.estrusMode)
- {
- text = "*発情";
- }
- else
- {
- text = "*";
- }
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- text += "SOC1";
- break;
- case Yotogi.ExcitementStatus.Small:
- text += "SOC2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- text += "SOC3";
- break;
- case Yotogi.ExcitementStatus.Large:
- text += "SOC4";
- break;
- }
- if (!ScriptManager.isGP001Mode)
- {
- this.ClearRepeatVoiceData();
- GameMain.Instance.SoundMgr.VoiceStopAll();
- }
- this.CallCommandFile(insert, text, lockRRUpdate);
- }
- private void PlayDrunkContinue(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 酔い-挿入,継続系");
- if (this.player_state_ != YotogiPlay.PlayerState.Insert)
- {
- this.PlayInsert(command_data, lockRRUpdate);
- }
- Relation relation = target_maid.status.relation;
- string text = string.Empty;
- string label = string.Empty;
- Yotogi.RCType rctype = YotogiPlay.GetRCType(this.backup_maid_param_.currentExcite, this.maid_.status.currentExcite);
- if (rctype != Yotogi.RCType.RCNull)
- {
- string str = rctype.ToString();
- this.yotogi_mgr_.AddDebugLog("RC HIT!! " + str);
- text = command_data.basic.call_file.rc;
- if (relation != Relation.Contact)
- {
- if (relation != Relation.Trust)
- {
- if (relation == Relation.Lover)
- {
- label = "*酔い恋人" + str;
- }
- }
- else
- {
- label = "*酔い信頼" + str;
- }
- }
- else
- {
- label = "*酔いお近づき" + str;
- }
- }
- else
- {
- this.PlayInsert2(command_data, lockRRUpdate);
- }
- if (text != string.Empty)
- {
- this.CallCommandFile(text, label, lockRRUpdate);
- }
- }
- private void PlayDrunkSingle(Skill.Data.Command.Data command_data, Maid target_maid, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 酔い-単発系");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
- Relation relation = target_maid.status.relation;
- string normal = command_data.basic.call_file.normal;
- string label = string.Empty;
- if (relation == Relation.Contact)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*酔いSA1";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*酔いSA2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*酔いSA3";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*酔いSA4";
- break;
- }
- }
- else if (relation == Relation.Trust)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*酔いSA5";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*酔いSA6";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*酔いSA7";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*酔いSA8";
- break;
- }
- }
- else if (relation == Relation.Lover)
- {
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*酔いSA9";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*酔いSA10";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*酔いSA11";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*酔いSA12";
- break;
- }
- }
- this.CallCommandFile(normal, label, lockRRUpdate);
- }
- private void PlayProclivitySingle(Skill.Data.Command.Data command_data, bool lockRRUpdate)
- {
- this.yotogi_mgr_.AddDebugLog("プレイ 性癖-単発系");
- Yotogi.ExcitementStatus excitementStatus = YotogiPlay.GetExcitementStatus(this.backup_maid_param_.currentExcite);
- string normal = command_data.basic.call_file.normal;
- string label = string.Empty;
- switch (excitementStatus)
- {
- case Yotogi.ExcitementStatus.Minus:
- label = "*性癖SA1";
- break;
- case Yotogi.ExcitementStatus.Small:
- label = "*性癖SA2";
- break;
- case Yotogi.ExcitementStatus.Medium:
- label = "*性癖SA3";
- break;
- case Yotogi.ExcitementStatus.Large:
- label = "*性癖SA4";
- break;
- }
- this.CallCommandFile(normal, label, lockRRUpdate);
- }
- private void CallCommandFile(string file, string label, bool lockRRUpdate)
- {
- if (string.IsNullOrEmpty(file) || file == ".ks")
- {
- return;
- }
- if (YotogiManager.isGP001HaremMode)
- {
- Maid[] array = new Maid[this.replace_personal_target_maid_array_.Length];
- this.replace_personal_target_maid_array_.CopyTo(array, 0);
- array[0] = GameMain.Instance.CharacterMgr.GetMaid(0);
- file = ScriptManager.ReplacePersonal(array, file);
- }
- else
- {
- file = ScriptManager.ReplacePersonal(this.replace_personal_target_maid_array_, file);
- }
- file = Path.ChangeExtension(file, ".ks");
- bool flag = false;
- using (TJSVariant tjsvariant = new TJSVariant())
- {
- this.script_mgr_.EvalScript("global.__skill_command_file.count;", tjsvariant);
- if (0 < tjsvariant.AsInteger())
- {
- flag = true;
- }
- }
- if (!flag)
- {
- this.ClearCommandFile();
- this.script_mgr_.EvalScript(string.Concat(new string[]
- {
- "global.__skill_command_file.add(%['file'=>'",
- file,
- "','label'=>'",
- label,
- "','rrlock'=>'",
- lockRRUpdate.ToString().ToLower(),
- "']);"
- }));
- this.script_mgr_.LoadYotogiScript("yotogi_skill_command_call_main.ks", string.Empty);
- this.yotogi_mgr_.AddDebugLog(string.Concat(new string[]
- {
- "コマンドファイル[",
- file,
- "][",
- label,
- "]を呼び出しました"
- }));
- }
- else
- {
- this.script_mgr_.EvalScript(string.Concat(new string[]
- {
- "global.__skill_command_file.add(%['file'=>'",
- file,
- "','label'=>'",
- label,
- "','rrlock'=>'",
- lockRRUpdate.ToString().ToLower(),
- "']);"
- }));
- }
- }
- private bool OnCreateCommand(Skill.Data.Command.Data command_data)
- {
- return command_data.basic.ng_propensity == null || !this.maid_.status.propensitys.ContainsKey(command_data.basic.ng_propensity.id);
- }
- private bool OnEnabledCommand(Skill.Data.Command.Data command_data)
- {
- Func<bool> func = delegate()
- {
- if (command_data.basic.isEstrusTriggerCommand && (200 > this.maid_.status.currentExcite || 300 > this.maid_.status.currentSensual))
- {
- return false;
- }
- if (command_data.basic.command_type == Yotogi.SkillCommandType.絶頂 && this.maid_.status.currentExcite < 80)
- {
- return false;
- }
- if (this.is_free_mode)
- {
- if (!command_data.EvalExpressionForFreeMode(this.maid_))
- {
- return false;
- }
- }
- else if (!command_data.EvalExpression(this.maid_))
- {
- return false;
- }
- if (command_data.basic.command_type == Yotogi.SkillCommandType.挿入)
- {
- return true;
- }
- if (command_data.basic.request_insert)
- {
- return this.player_state_ == YotogiPlay.PlayerState.Insert;
- }
- return this.player_state_ == YotogiPlay.PlayerState.Normal;
- };
- bool flag = func();
- if (this.command_menu != null && flag)
- {
- this.command_menu.AddCommand(command_data);
- }
- return flag;
- }
- private void OnChangeCommandTextColor(Skill.Data.Command.Data command_data, ref Color color)
- {
- if (command_data.status.bonusExcitementUpLine <= this.maid_.status.currentExcite || command_data.status.bonusExcitementDownLine > this.maid_.status.currentExcite)
- {
- color = Skill.Data.Command.bonusTargetTextColor;
- }
- }
- private void OnMouseCommand(GameObject commandObject, Skill.Data.Command.Data command_data, bool visible)
- {
- if (command_data == null || !visible)
- {
- this.commandExecConditionsPanel.SetActive(false);
- return;
- }
- List<KeyValuePair<string[], bool>> list = new List<KeyValuePair<string[], bool>>();
- foreach (int num in command_data.basic.request_propensity)
- {
- Propensity.Data data = Propensity.GetData(num);
- string[] key = new string[]
- {
- "MaidStatus/条件文/性癖【{0}】",
- data.drawName
- };
- if (Product.supportMultiLanguage)
- {
- key = new string[]
- {
- "MaidStatus/条件文/性癖【{0}】",
- data.termName
- };
- }
- list.Add(new KeyValuePair<string[], bool>(key, this.maid_.status.propensitys.ContainsKey(num)));
- }
- if (command_data.basic.isEstrusTriggerCommand)
- {
- list.Add(new KeyValuePair<string[], bool>(new string[]
- {
- "MaidStatus/条件文/興奮 {0}",
- "200"
- }, 200 <= this.maid_.status.currentExcite));
- list.Add(new KeyValuePair<string[], bool>(new string[]
- {
- "MaidStatus/条件文/官能 {0}",
- "300"
- }, 300 <= this.maid_.status.currentSensual));
- }
- if (command_data.basic.executionConditionParameters != null)
- {
- List<KeyValuePair<string[], bool>> list2 = command_data.basic.executionConditionParameters.CreateConditionTextAndStaturResults(this.maid_.status);
- foreach (KeyValuePair<string[], bool> item in list2)
- {
- if (this.is_free_mode && !item.Key[0].Contains("興奮"))
- {
- list.Add(new KeyValuePair<string[], bool>(item.Key, true));
- }
- else
- {
- list.Add(item);
- }
- }
- }
- if (list.Count == 0)
- {
- this.commandExecConditionsPanel.SetActive(false);
- return;
- }
- List<KeyValuePair<string[], Color>> list3 = new List<KeyValuePair<string[], Color>>();
- foreach (KeyValuePair<string[], bool> keyValuePair in list)
- {
- list3.Add(new KeyValuePair<string[], Color>(keyValuePair.Key, (!keyValuePair.Value) ? Color.gray : Color.white));
- }
- UIWidget widget = UTY.GetChildObject(this.commandExecConditionsPanel, "BG", false).GetComponent<UIWidget>();
- this.commandExecConditionList.resizeUIEvent.Clear();
- EventDelegate.Add(this.commandExecConditionList.resizeUIEvent, delegate()
- {
- widget.width = this.commandExecConditionList.width + 25;
- widget.height = this.commandExecConditionList.height + 65;
- });
- this.commandExecConditionList.SetTexts(list3.ToArray(), -1);
- Transform parent = this.commandExecConditionsPanel.transform.parent;
- this.commandExecConditionsPanel.transform.SetParent(commandObject.transform, false);
- this.commandExecConditionsPanel.transform.localPosition = Vector3.zero;
- this.commandExecConditionsPanel.transform.SetParent(parent, true);
- Vector3 localPosition = this.commandExecConditionsPanel.transform.localPosition;
- localPosition = new Vector3(localPosition.x + 194f, localPosition.y + 12f, localPosition.z);
- this.commandExecConditionsPanel.transform.localPosition = localPosition;
- this.commandExecConditionsPanel.SetActive(true);
- }
- private void UpdateCommand()
- {
- this.command_factory_.ClearCommand();
- if (this.command_menu != null)
- {
- this.command_menu.ClearCommand();
- }
- if (this.estrusMode && this.maid_.status.currentSensual <= 0)
- {
- if (this.command_menu != null)
- {
- this.command_menu.FixCommand();
- }
- return;
- }
- if (!this.estrusMode && this.maid_.status.currentMind <= 0)
- {
- if (this.command_menu != null)
- {
- this.command_menu.FixCommand();
- }
- return;
- }
- this.free_mode_backup_excitement_ = 0;
- for (int i = 0; i < this.valid_command_dic_.Count; i++)
- {
- Skill.Data.Command.Data data = this.valid_command_dic_[i];
- 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)))
- {
- if (!data.basic.isEstrusTriggerCommand || !this.estrusMode)
- {
- if (0 >= data.basic.request_skill_lv || data.basic.request_skill_lv == this.playing_skill_level_)
- {
- this.command_factory_.AddCommand(this.valid_command_dic_[i]);
- }
- }
- }
- }
- if (this.command_menu != null)
- {
- this.command_menu.FixCommand();
- }
- }
- private void SetSkillTowerButtonEnabled(bool enabled)
- {
- Transform transform = this.skill_group_parent_.transform;
- int num = 0;
- while (num < this.yotogi_mgr_.play_skill_array.Length && num < transform.childCount)
- {
- YotogiManager.PlayingSkillData playingSkillData = this.yotogi_mgr_.play_skill_array[num];
- GameObject gameObject = transform.GetChild(num).gameObject;
- GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
- UIButton component = childObject.GetComponent<UIButton>();
- component.enabled = enabled;
- num++;
- }
- }
- private void UpdateSkillTower()
- {
- Transform transform = this.skill_group_parent_.transform;
- if (this.skill_icon_default_color_.a == 0f)
- {
- this.skill_icon_default_color_ = UTY.GetChildObject(transform.GetChild(0).gameObject, "Icon", false).GetComponent<UIButton>().defaultColor;
- }
- int num = 0;
- while (num < this.yotogi_mgr_.play_skill_array.Length && num < transform.childCount)
- {
- YotogiManager.PlayingSkillData playingSkillData = this.yotogi_mgr_.play_skill_array[num];
- Yotogi.SkillDataPair skill_pair = playingSkillData.skill_pair;
- GameObject gameObject = transform.GetChild(num).gameObject;
- GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
- UI2DSprite component = childObject.GetComponent<UI2DSprite>();
- GameObject childObject2 = UTY.GetChildObject(gameObject, "Arrow", false);
- BoxCollider component2 = childObject.GetComponent<BoxCollider>();
- UIButton component3 = childObject.GetComponent<UIButton>();
- UISprite component4 = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
- UILabel componentInChildren = component4.GetComponentInChildren<UILabel>();
- UIRect uirect = component4;
- float alpha = 0f;
- componentInChildren.alpha = alpha;
- uirect.alpha = alpha;
- childObject2.SetActive(false);
- if (skill_pair.base_data == null)
- {
- childObject.SetActive(false);
- }
- else
- {
- YotogiSkillNameHoverPlate yotogiSkillNameHoverPlate = componentInChildren.GetComponent<YotogiSkillNameHoverPlate>();
- if (yotogiSkillNameHoverPlate == null)
- {
- yotogiSkillNameHoverPlate = componentInChildren.gameObject.AddComponent<YotogiSkillNameHoverPlate>();
- }
- yotogiSkillNameHoverPlate.SetName(skill_pair.base_data.name, skill_pair.base_data.termName, false);
- childObject.SetActive(true);
- childObject.GetComponent<UIWidget>().depth = childObject2.GetComponent<UIWidget>().depth;
- if (playingSkillData.is_play || this.playing_skill_no_ == num)
- {
- component3.enabled = false;
- if (this.playing_skill_no_ != num)
- {
- component.color = new Color(0.4f, 0.4f, 0.4f, 0.4f);
- }
- else
- {
- component.color = new Color(1f, 1f, 1f, 1f);
- childObject2.SetActive(true);
- }
- childObject.GetComponent<UIPlayAnimation>().enabled = false;
- }
- else
- {
- component.color = this.skill_icon_default_color_;
- component3.enabled = true;
- childObject.GetComponent<UIPlayAnimation>().enabled = true;
- }
- YotogiSkillIcon component5 = childObject.GetComponent<YotogiSkillIcon>();
- component5.SetSkillData(this.yotogi_mgr_.play_skill_array[num].skill_pair.base_data);
- }
- num++;
- }
- }
- private void OnSkillIconClick()
- {
- if (this.yotogi_mgr_.IsAllCharaBusy())
- {
- this.yotogi_mgr_.AddDebugLog("============================================");
- this.yotogi_mgr_.AddDebugLog("×スキルアイコンがクリックされました");
- this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
- this.yotogi_mgr_.AddDebugLog("============================================");
- return;
- }
- Transform transform = this.skill_group_parent_.transform;
- UIButton current = UIButton.current;
- int num = -1;
- for (int i = 0; i < this.yotogi_mgr_.play_skill_array.Length; i++)
- {
- GameObject gameObject = transform.GetChild(i).gameObject;
- GameObject childObject = UTY.GetChildObject(gameObject, "Icon", false);
- if (childObject.GetComponent<UIButton>() == current)
- {
- num = i - 1;
- break;
- }
- }
- if (num == -1)
- {
- return;
- }
- this.playing_skill_no_ = num;
- this.OnNextSkillMove();
- }
- public void VisibleSkillName(int icon_no, bool val)
- {
- GameObject gameObject = this.skill_group_parent_.transform.GetChild(icon_no).gameObject;
- UISprite component = UTY.GetChildObject(gameObject, "SkillName", false).GetComponent<UISprite>();
- UILabel componentInChildren = component.GetComponentInChildren<UILabel>();
- float num = 0f;
- if (val)
- {
- num = 1f;
- }
- UIRect uirect = component;
- float alpha = num;
- componentInChildren.alpha = alpha;
- uirect.alpha = alpha;
- }
- private void ClearCommandFile()
- {
- this.script_mgr_.EvalScript("global.__skill_command_file.clear();");
- }
- public void OnClickReleaseSeieki()
- {
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- for (int i = 0; i < characterMgr.GetMaidCount(); i++)
- {
- Maid maid = characterMgr.GetMaid(i);
- if (maid != null)
- {
- maid.body0.MulTexRemove("body", 0, "_MainTex", 18);
- maid.body0.MulTexRemove("body", 0, "_ShadowTex", 18);
- maid.body0.MulTexRemove("head", 5, "_MainTex", 18);
- maid.body0.MulTexRemove("head", 5, "_ShadowTex", 18);
- maid.body0.MulTexProc("body");
- maid.body0.MulTexProc("head");
- }
- }
- }
- private void OnClickSkillSelectEnd()
- {
- this.free_skill_select_.FixSkill();
- this.playing_skill_no_ = 0;
- this.OnNextSkillMove();
- }
- public void OnClickNext()
- {
- if (this.yotogi_mgr_.IsAllCharaBusy())
- {
- this.yotogi_mgr_.AddDebugLog("============================================");
- this.yotogi_mgr_.AddDebugLog("×スキルアイコンがクリックされました");
- this.yotogi_mgr_.AddDebugLog("IsBusy状態なのでキャンセルしました");
- this.yotogi_mgr_.AddDebugLog("============================================");
- return;
- }
- if (this.is_new_yotogi_mode)
- {
- this.Suspend(null, this.yotogi_mgr_.null_mgr.nextLabel);
- }
- else
- {
- this.AdvanceSkillMove();
- }
- }
- public void AdvanceSkillMove()
- {
- this.playing_skill_no_ = -1;
- if (!this.is_free_mode && !this.is_vr_mode)
- {
- for (int i = 0; i < this.yotogi_mgr_.play_skill_array.Length; i++)
- {
- if (this.yotogi_mgr_.play_skill_array[i].skill_pair.base_data != null)
- {
- if (!this.yotogi_mgr_.play_skill_array[i].is_play)
- {
- this.playing_skill_no_ = i - 1;
- break;
- }
- }
- }
- }
- this.OnNextSkillMove();
- }
- private void OnNextSkillMove()
- {
- this.additionalFtVoice = null;
- if (this.command_menu != null)
- {
- this.command_menu.DestroySkillCommand();
- this.command_menu.visible = false;
- }
- this.singleStatusLock = false;
- if (this.is_free_mode)
- {
- this.maid_.status.seikeiken = this.free_mode_backup_data_.seikeiken;
- }
- GameMain.Instance.SoundMgr.StopSe();
- this.yotogi_mgr_.yotogi_kag.enabled = false;
- if (this.IsFaint() || (!this.is_free_mode && !this.is_vr_mode && this.playing_skill_.skill_pair.base_data.specialConditionType == Skill.Data.SpecialConditionType.Faint))
- {
- this.is_faint_end = true;
- }
- else if (this.playing_skill_no_ == -1)
- {
- this.ClearCommandFile();
- this.SetRepeatVoiceFile(string.Empty, 0);
- this.ClearVoice();
- if (this.yotogi_mgr_.null_mgr.IsExistNextLabel())
- {
- this.Finish();
- }
- }
- else
- {
- this.Finish();
- }
- }
- private void OnClickViweReset()
- {
- this.camera_move_support_.ResetCamera();
- }
- protected override void OnFinish()
- {
- 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)
- {
- this.maid_.status.currentMind = 0;
- }
- if (this.playing_skill_no_ == -1 || this.IsFaint())
- {
- this.playing_skill_no_ = -1;
- if (this.is_free_mode || this.is_vr_mode)
- {
- GameMain.Instance.SoundMgr.VoiceStopAll();
- GameMain.Instance.SoundMgr.StopSe();
- CharacterMgr characterMgr = GameMain.Instance.CharacterMgr;
- GameMain.Instance.ScriptMgr.ClearForcExecWaitEvent();
- for (int i = 0; i < characterMgr.GetMaidCount(); i++)
- {
- Maid maid = characterMgr.GetMaid(i);
- if (maid != null)
- {
- maid.FaceAnime("通常", 0f, 0);
- maid.FaceBlend("無し");
- maid.OpenMouth(false);
- maid.body0.SetMaskMode(TBody.MaskMode.None);
- for (int j = 10; j <= 20; j++)
- {
- maid.body0.MulTexRemove("body", 0, "_MainTex", j);
- maid.body0.MulTexRemove("body", 0, "_ShadowTex", j);
- maid.body0.MulTexRemove("head", 5, "_MainTex", j);
- maid.body0.MulTexRemove("head", 5, "_ShadowTex", j);
- }
- maid.body0.MulTexRemove("body", 0, "_MainTex", 24);
- maid.body0.MulTexRemove("body", 0, "_ShadowTex", 24);
- maid.body0.MulTexProc("body");
- maid.body0.MulTexProc("head");
- }
- }
- this.yotogi_mgr_.ResetWorld();
- characterMgr.DeactivateCharaAll();
- }
- else
- {
- this.yotogi_mgr_.ApplyStatus();
- }
- if (this.yotogi_mgr_.null_mgr.IsExistNextLabel())
- {
- this.yotogi_mgr_.CallScreen(YotogiManager.CallScreenType.Null.ToString());
- }
- else
- {
- this.yotogi_mgr_.DebugOnClickCallResult();
- }
- }
- else
- {
- GameMain.Instance.CharacterMgr.SetCharaAllPos(Vector3.zero);
- GameMain.Instance.CharacterMgr.SetCharaAllRot(Vector3.zero);
- this.yotogi_mgr_.CallScreen(YotogiManager.CallScreenType.Play.ToString());
- }
- }
- protected override void OnFadeEnd()
- {
- if (this.is_free_mode || this.is_vr_mode)
- {
- GameMain.Instance.MainLight.Reset();
- GameMain.Instance.CharacterMgr.ResetCharaPosAll();
- GameMain.Instance.MainCamera.Reset(CameraMain.CameraType.Target, true);
- GameMain.Instance.SoundMgr.VoiceStopAll();
- this.yotogi_mgr_.UnVisibleMaidAndMan(true, true);
- this.maid_.Visible = true;
- GameMain.Instance.CMSystem.SetTmpGenericFlag("AddAllOffset_Ignore", 0);
- GameMain.Instance.CharacterMgr.ResetCharaPosAll();
- }
- }
- public void SetControlMask(bool val, bool is_endless = false)
- {
- if (!val)
- {
- this.control_mask_tick_count = -1;
- for (int i = 0; i < this.control_mask_list_.Count; i++)
- {
- this.control_mask_list_[i].SetActive(false);
- }
- }
- else
- {
- this.control_mask_tick_count = GameMain.tick_count + 3000;
- if (is_endless)
- {
- this.control_mask_tick_count = int.MaxValue;
- }
- for (int j = 0; j < this.control_mask_list_.Count; j++)
- {
- this.control_mask_list_[j].SetActive(true);
- }
- }
- }
- public void OnUndressingEvent(string call_file)
- {
- if (string.IsNullOrEmpty(call_file))
- {
- return;
- }
- }
- public void ChangeSliderValue()
- {
- float value = UIProgressBar.current.value;
- int manAlpha = (int)System.Math.Ceiling((double)(value * 100f));
- GameMain.Instance.CMSystem.ManAlpha = manAlpha;
- this.setting_man_alpha_ = manAlpha;
- GameMain.Instance.CharacterMgr.ManAlphaUpdate();
- }
- public void OnClickExciteLock()
- {
- this.is_excite_lock_ = !this.is_excite_lock_;
- GameMain.Instance.CMSystem.SetSystemVers("ExciteLock", (!this.is_excite_lock_) ? "0" : "1");
- this.btn_excite_lock_.SetSelect(this.is_excite_lock_);
- }
- public bool IsFaint()
- {
- 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));
- }
- public List<YotogiPlayManager.RepeatVoiceData> repeat_voice_data_list
- {
- get
- {
- return this.repeat_voice_data_list_;
- }
- }
- private bool is_free_mode
- {
- get
- {
- return this.yotogi_mgr_.is_free_mode;
- }
- }
- private bool is_vr_mode
- {
- get
- {
- return this.yotogi_mgr_.is_vr_mode;
- }
- }
- private bool is_new_yotogi_mode
- {
- get
- {
- return this.yotogi_mgr_.is_new_yotogi_mode;
- }
- }
- private YotogiCommandMenuOVR command_menu
- {
- get
- {
- return this.yotogi_mgr_.command_menu;
- }
- }
- private bool particleBreathe
- {
- get
- {
- return 0 < this.breatheObjects.Count && this.breatheObjects[0].activeInHierarchy;
- }
- set
- {
- bool flag = value;
- if (flag && (!this.estrusMode || this.maid_.status.currentExcite < 200))
- {
- flag = false;
- }
- foreach (GameObject gameObject in this.breatheObjects)
- {
- gameObject.SetActive(flag);
- }
- }
- }
- private int particleLoveLiquidType
- {
- get
- {
- for (int i = 0; i < this.loveLiquidObjects.Length; i++)
- {
- if (this.loveLiquidObjects[i].activeInHierarchy)
- {
- return i + 1;
- }
- }
- return 0;
- }
- set
- {
- int num = wf.Math.RoundMinMax(value, 0, 3);
- if (num != 0 && !this.estrusMode)
- {
- num = 0;
- }
- if (num != 0)
- {
- for (int i = 0; i < this.loveLiquidObjects.Length; i++)
- {
- this.loveLiquidObjects[i].SetActive(i == num - 1);
- }
- }
- else
- {
- foreach (GameObject gameObject in this.loveLiquidObjects)
- {
- gameObject.SetActive(false);
- }
- }
- }
- }
- public int kRepeatWaitTime = 200;
- public SubtitleDisplayManager subtitlesManager;
- public bool heroineChangeFlag;
- public bool singleStatusLock;
- public Dictionary<string, int> commandClickCountTotal = new Dictionary<string, int>();
- public Dictionary<string, int> commandClickCountSingle = new Dictionary<string, int>();
- public bool lockRepeatVoiceUpdate;
- private Maid maid_;
- private ScriptManager script_mgr_;
- private YotogiManager yotogi_mgr_;
- private YotogiManager.PlayingSkillData playing_skill_;
- private Yotogi.SkillDataPair skill_pair_;
- private YotogiParameterViewer paramenter_viewer_;
- private YotogiCommandFactory command_factory_;
- private YotogiParamScroll param_scroll_;
- private YotogiParamBasicBar param_basic_bar_;
- private YotogiCommonButtons common_buttons_;
- private FreeSkillSelect free_skill_select_;
- private WfCameraMoveSupport camera_move_support_;
- private GameObject skill_group_parent_;
- private UISlider man_alpha_slider_;
- private UndressingManager undressing_mgr_;
- private List<GameObject> control_mask_list_ = new List<GameObject>();
- private int setting_man_alpha_;
- private HashSet<int> play_command_id_ = new HashSet<int>();
- private int control_mask_tick_count = -1;
- private Color skill_icon_default_color_;
- private Maid[] replace_personal_target_maid_array_;
- private YotogiPlayManager.FreeModeBackUpData free_mode_backup_data_;
- private UIWFSelectButton btn_excite_lock_;
- private bool is_excite_lock_;
- private bool estrusMode;
- private GameObject commandExecConditionsPanel;
- private UIWFConditionList commandExecConditionList;
- private List<GameObject> breatheObjects = new List<GameObject>();
- private GameObject[] loveLiquidObjects = new GameObject[0];
- private bool doneFtFileCall;
- private YotogiPlayManager.AddFtVoiceData additionalFtVoice;
- private bool is_faint_end;
- private List<YotogiPlayManager.RepeatVoiceData> repeat_voice_data_list_ = new List<YotogiPlayManager.RepeatVoiceData>();
- private int playing_skill_level_;
- private int playing_skill_no_;
- private YotogiPlay.PlayerState player_state_;
- private YotogiPlay.Param backup_maid_param_;
- private BonusStatus bonusCorrectionStatus_;
- private List<Skill.Data.Command.Data> valid_command_dic_ = new List<Skill.Data.Command.Data>();
- private int free_mode_backup_excitement_;
- private float message_display_time_;
- private YotogiPlay.SuspendStore suspendStoreData;
- private Dictionary<string, HashSet<string>> calledAdvFiles = new Dictionary<string, HashSet<string>>();
- private struct FreeModeBackUpData
- {
- public Seikeiken seikeiken;
- }
- public class RepeatVoiceData
- {
- public string repeat_voice_file;
- public int elapsed_time;
- public int maid_no;
- public string text;
- }
- private class AddFtVoiceData
- {
- public string text;
- public string voiceFile;
- public int maidNo;
- public bool isPlaying;
- }
- }
|