12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588 |
- 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 YotogiManager.PlayingSkillData playingSkill
- {
- get
- {
- return this.playing_skill_;
- }
- }
- 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;
- }
- }
|