Status.cs 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.IO;
  5. using System.Text.RegularExpressions;
  6. using Edit;
  7. using MaidStatus.CsvData;
  8. using MaidStatus.Old;
  9. using UnityEngine;
  10. using wf;
  11. using Yotogis;
  12. namespace MaidStatus
  13. {
  14. public class Status
  15. {
  16. public Status()
  17. {
  18. Feature.CreateData();
  19. Propensity.CreateData();
  20. YotogiClass.CreateData();
  21. JobClass.CreateData();
  22. Personal.CreateData();
  23. SubMaid.CreateData();
  24. PersonalEventBlocker.CreateData();
  25. this.body = new BodyData();
  26. this.features_ = new Dictionary<int, Feature.Data>();
  27. this.features = new ReadOnlyDictionary<int, Feature.Data>(this.features_);
  28. this.propensitys_ = new Dictionary<int, Propensity.Data>();
  29. this.propensitys = new ReadOnlyDictionary<int, Propensity.Data>(this.propensitys_);
  30. this.jobClass = new JobClassSystem(this);
  31. this.yotogiClass = new YotogiClassSystem(this);
  32. this.yotogiSkill = new YotogiSkillSystem(this);
  33. this.workDatas_ = new Dictionary<int, WorkData>();
  34. this.workDatas = new ReadOnlyDictionary<int, WorkData>(this.workDatas_);
  35. this.flags_ = new Dictionary<string, int>();
  36. this.flags = new ReadOnlyDictionary<string, int>(this.flags_);
  37. this.eventEndFlags_ = new Dictionary<int, bool>();
  38. this.eventEndFlags = new ReadOnlyDictionary<int, bool>(this.eventEndFlags_);
  39. this.partsDic = new Dictionary<string, string>();
  40. this.bonusStatus = new BonusStatus();
  41. this.SetPersonal(Personal.GetData("Muku"));
  42. this.heroineType = HeroineType.Original;
  43. this.mainChara = false;
  44. this.subCharaData = null;
  45. this.firstName = MaidRandomName.GetFirstName();
  46. this.lastName = MaidRandomName.GetLastName();
  47. this.isFirstNameCall = true;
  48. this.enabledYotogiStatusLock = false;
  49. string empty = string.Empty;
  50. this.freeComment = empty;
  51. this.profileComment = empty;
  52. }
  53. public static int maxNameLength
  54. {
  55. get
  56. {
  57. return (!Product.isEnglish) ? 8 : 11;
  58. }
  59. }
  60. public static int minAge
  61. {
  62. get
  63. {
  64. return 20;
  65. }
  66. }
  67. public static int maxAge
  68. {
  69. get
  70. {
  71. return 999;
  72. }
  73. }
  74. public string guid { get; private set; }
  75. public string creationTime { get; private set; }
  76. public ulong creationTimeNum { get; private set; }
  77. public Maid maid { get; private set; }
  78. public SubMaid.Data.CharacterStatus subCharaStatus
  79. {
  80. get
  81. {
  82. return (this.subCharaData != null) ? ((!GameMain.Instance.CharacterMgr.status.lockUserDraftMaid || this.subCharaData.secondStatus == null) ? this.subCharaData.status : this.subCharaData.secondStatus) : null;
  83. }
  84. }
  85. public int employmentDay
  86. {
  87. get
  88. {
  89. return this.employmentDay_;
  90. }
  91. set
  92. {
  93. this.employmentDay_ = wf.Math.Round5(value);
  94. }
  95. }
  96. public int employmentElapsedDay
  97. {
  98. get
  99. {
  100. int num = GameMain.Instance.CharacterMgr.status.days - this.employmentDay_;
  101. num += ((this.OldStatus != null) ? this.OldStatus.employmentElapsedDay : 0);
  102. return wf.Math.Round5(num);
  103. }
  104. }
  105. public string lastName
  106. {
  107. get
  108. {
  109. return this.lastName_;
  110. }
  111. set
  112. {
  113. this.lastName_ = ((value != null) ? Status.ConvertString(value, Status.maxNameLength) : string.Empty);
  114. }
  115. }
  116. public string firstName
  117. {
  118. get
  119. {
  120. return this.firstName_;
  121. }
  122. set
  123. {
  124. this.firstName_ = ((value != null) ? Status.ConvertString(value, Status.maxNameLength) : string.Empty);
  125. }
  126. }
  127. public NamePair charaName
  128. {
  129. get
  130. {
  131. NamePair result = new NamePair((!Product.isEnglish) ? this.lastName : this.firstName, (!Product.isEnglish) ? this.firstName : this.lastName);
  132. return result;
  133. }
  134. }
  135. public string fullNameJpStyle
  136. {
  137. get
  138. {
  139. return this.lastName + " " + this.firstName;
  140. }
  141. }
  142. public string fullNameEnStyle
  143. {
  144. get
  145. {
  146. return this.firstName + " " + this.lastName;
  147. }
  148. }
  149. public string nickName
  150. {
  151. get
  152. {
  153. return this.nickName_;
  154. }
  155. set
  156. {
  157. this.nickName_ = ((value != null) ? Status.ConvertString(value, Status.maxNameLength) : string.Empty);
  158. }
  159. }
  160. public string callName
  161. {
  162. get
  163. {
  164. return (!this.isNickNameCall) ? ((!this.isFirstNameCall) ? this.lastName : this.firstName) : this.nickName;
  165. }
  166. }
  167. public string freeComment
  168. {
  169. get
  170. {
  171. return this.freeComment_;
  172. }
  173. set
  174. {
  175. this.freeComment_ = ((value != null) ? Status.ConvertString(value, 308) : string.Empty);
  176. }
  177. }
  178. public Personal.Data personal
  179. {
  180. get
  181. {
  182. return this.personal_;
  183. }
  184. }
  185. public ClassData<JobClass.Data> selectedJobClass { get; private set; }
  186. public ClassData<YotogiClass.Data> selectedYotogiClass { get; private set; }
  187. public Relation relation
  188. {
  189. get
  190. {
  191. return this.relation_;
  192. }
  193. set
  194. {
  195. this.relation_ = value;
  196. if (this.OldStatus != null)
  197. {
  198. if (value == Relation.Contact && this.OldStatus.relation != Relation.Contact)
  199. {
  200. this.OldStatus.relation = Relation.Contact;
  201. }
  202. else if (value == Relation.Trust && this.OldStatus.relation != Relation.Trust)
  203. {
  204. this.OldStatus.relation = Relation.Trust;
  205. }
  206. else if (value == Relation.Lover && this.OldStatus.relation != Relation.Lover)
  207. {
  208. this.OldStatus.relation = Relation.Lover;
  209. }
  210. }
  211. }
  212. }
  213. public AdditionalRelation additionalRelation
  214. {
  215. get
  216. {
  217. return this.additionalRelation_;
  218. }
  219. set
  220. {
  221. if (Product.enabeldAdditionalRelation && this.personal.enabledAdditionalRelation)
  222. {
  223. this.additionalRelation_ = ((this.heroineType == HeroineType.Sub) ? AdditionalRelation.Null : value);
  224. }
  225. else
  226. {
  227. this.additionalRelation_ = AdditionalRelation.Null;
  228. }
  229. }
  230. }
  231. public string conditionText
  232. {
  233. get
  234. {
  235. return Title.Get(this);
  236. }
  237. }
  238. public string conditionTermText
  239. {
  240. get
  241. {
  242. return "MaidStatus/ステータス称号/" + this.conditionText;
  243. }
  244. }
  245. public int playCountYotogi
  246. {
  247. get
  248. {
  249. return (int)this.playCountYotogi_;
  250. }
  251. set
  252. {
  253. this.playCountYotogi_ = (ushort)wf.Math.Round4(value);
  254. }
  255. }
  256. public int playCountNightWork
  257. {
  258. get
  259. {
  260. return (int)this.playCountNightWork_;
  261. }
  262. set
  263. {
  264. this.playCountNightWork_ = (ushort)wf.Math.Round4(value);
  265. }
  266. }
  267. public int likability
  268. {
  269. get
  270. {
  271. return (int)this.likability_;
  272. }
  273. set
  274. {
  275. this.likability_ = (ushort)wf.Math.Round3(value);
  276. }
  277. }
  278. public int studyRate
  279. {
  280. get
  281. {
  282. return (int)this.studyRate_;
  283. }
  284. set
  285. {
  286. this.studyRate_ = (ushort)wf.Math.RoundMinMax(value, 0, 1000);
  287. }
  288. }
  289. public int currentExcite
  290. {
  291. get
  292. {
  293. return this.currentExcite_;
  294. }
  295. set
  296. {
  297. this.currentExcite_ = wf.Math.RoundMinMax(value, -100, 300);
  298. }
  299. }
  300. public int currentSensual
  301. {
  302. get
  303. {
  304. return this.currentSensual_;
  305. }
  306. set
  307. {
  308. this.currentSensual_ = wf.Math.RoundMinMax(value, 0, 300);
  309. }
  310. }
  311. public int maxHp
  312. {
  313. get
  314. {
  315. return wf.Math.Round3((int)this.maxHp_ + this.bonusStatus.hp);
  316. }
  317. }
  318. public int baseMaxHp
  319. {
  320. get
  321. {
  322. return (int)this.maxHp_;
  323. }
  324. set
  325. {
  326. this.maxHp_ = (ushort)wf.Math.Round3(value);
  327. }
  328. }
  329. public int currentHp
  330. {
  331. get
  332. {
  333. return (int)this.currentHp_;
  334. }
  335. set
  336. {
  337. this.currentHp_ = (ushort)wf.Math.RoundMinMax(value, 0, this.maxHp);
  338. }
  339. }
  340. public int maxMind
  341. {
  342. get
  343. {
  344. return wf.Math.Round3((int)this.maxMind_ + this.bonusStatus.mind);
  345. }
  346. }
  347. public int baseMaxMind
  348. {
  349. get
  350. {
  351. return (int)this.maxMind_;
  352. }
  353. set
  354. {
  355. this.maxMind_ = (ushort)wf.Math.Round3(value);
  356. }
  357. }
  358. public int currentMind
  359. {
  360. get
  361. {
  362. return (int)this.currentMind_;
  363. }
  364. set
  365. {
  366. this.currentMind_ = (ushort)wf.Math.RoundMinMax(value, 0, this.maxMind);
  367. }
  368. }
  369. public int maxReason
  370. {
  371. get
  372. {
  373. return wf.Math.Round3((int)this.maxReason_ + this.bonusStatus.reason);
  374. }
  375. }
  376. public int baseMaxReason
  377. {
  378. get
  379. {
  380. return (int)this.maxReason_;
  381. }
  382. set
  383. {
  384. this.maxReason_ = (ushort)wf.Math.Round3(value);
  385. }
  386. }
  387. public int currentReason
  388. {
  389. get
  390. {
  391. return (int)this.currentReason_;
  392. }
  393. set
  394. {
  395. this.currentReason_ = (ushort)wf.Math.RoundMinMax(value, 0, this.maxReason);
  396. }
  397. }
  398. public int reception
  399. {
  400. get
  401. {
  402. return wf.Math.Round4((int)this.reception_ + this.bonusStatus.reception);
  403. }
  404. }
  405. public int baseReception
  406. {
  407. get
  408. {
  409. return (int)this.reception_;
  410. }
  411. set
  412. {
  413. this.reception_ = (ushort)wf.Math.Round4(value);
  414. }
  415. }
  416. public int care
  417. {
  418. get
  419. {
  420. return wf.Math.Round4((int)this.care_ + this.bonusStatus.care);
  421. }
  422. }
  423. public int baseCare
  424. {
  425. get
  426. {
  427. return (int)this.care_;
  428. }
  429. set
  430. {
  431. this.care_ = (ushort)wf.Math.Round4(value);
  432. }
  433. }
  434. public int lovely
  435. {
  436. get
  437. {
  438. return wf.Math.Round4((int)this.lovely_ + this.bonusStatus.lovely);
  439. }
  440. }
  441. public int baseLovely
  442. {
  443. get
  444. {
  445. return (int)this.lovely_;
  446. }
  447. set
  448. {
  449. this.lovely_ = (ushort)wf.Math.Round4(value);
  450. }
  451. }
  452. public int elegance
  453. {
  454. get
  455. {
  456. return wf.Math.Round4((int)this.elegance_ + this.bonusStatus.elegance);
  457. }
  458. }
  459. public int baseElegance
  460. {
  461. get
  462. {
  463. return (int)this.elegance_;
  464. }
  465. set
  466. {
  467. this.elegance_ = (ushort)wf.Math.Round4(value);
  468. }
  469. }
  470. public int charm
  471. {
  472. get
  473. {
  474. return wf.Math.Round4((int)this.charm_ + this.bonusStatus.charm);
  475. }
  476. }
  477. public int baseCharm
  478. {
  479. get
  480. {
  481. return (int)this.charm_;
  482. }
  483. set
  484. {
  485. this.charm_ = (ushort)wf.Math.Round4(value);
  486. }
  487. }
  488. public int cooking
  489. {
  490. get
  491. {
  492. return wf.Math.Round4((int)this.cooking_ + this.bonusStatus.charm);
  493. }
  494. }
  495. public int baseCooking
  496. {
  497. get
  498. {
  499. return (int)this.cooking_;
  500. }
  501. set
  502. {
  503. this.cooking_ = (ushort)wf.Math.Round4(value);
  504. }
  505. }
  506. public int vocal
  507. {
  508. get
  509. {
  510. return wf.Math.Round4((int)this.vocal_ + this.bonusStatus.vocal);
  511. }
  512. }
  513. public int baseVocal
  514. {
  515. get
  516. {
  517. return (int)this.vocal_;
  518. }
  519. set
  520. {
  521. this.vocal_ = (ushort)wf.Math.Round4(value);
  522. }
  523. }
  524. public int dance
  525. {
  526. get
  527. {
  528. return wf.Math.Round4((int)this.dance_ + this.bonusStatus.dance);
  529. }
  530. }
  531. public int baseDance
  532. {
  533. get
  534. {
  535. return (int)this.dance_;
  536. }
  537. set
  538. {
  539. this.dance_ = (ushort)wf.Math.Round4(value);
  540. }
  541. }
  542. public int appealPoint
  543. {
  544. get
  545. {
  546. return wf.Math.RoundMinMax((int)this.appealPoint_ + this.bonusStatus.appealPoint, 0, this.maxAppealPoint);
  547. }
  548. }
  549. public int baseAppealPoint
  550. {
  551. get
  552. {
  553. return (int)this.appealPoint_;
  554. }
  555. set
  556. {
  557. this.appealPoint_ = (ushort)wf.Math.RoundMinMax(value, 0, this.maxAppealPoint);
  558. }
  559. }
  560. public int maxAppealPoint
  561. {
  562. get
  563. {
  564. return 200 + wf.Math.Round4(this.dance) / 1000 * 200;
  565. }
  566. }
  567. public int inyoku
  568. {
  569. get
  570. {
  571. return wf.Math.Round4((int)this.inyoku_ + this.bonusStatus.inyoku);
  572. }
  573. }
  574. public int baseInyoku
  575. {
  576. get
  577. {
  578. return (int)this.inyoku_;
  579. }
  580. set
  581. {
  582. this.inyoku_ = (ushort)wf.Math.Round4(value);
  583. }
  584. }
  585. public int mvalue
  586. {
  587. get
  588. {
  589. return wf.Math.Round4((int)this.m_value_ + this.bonusStatus.mvalue);
  590. }
  591. }
  592. public int baseMvalue
  593. {
  594. get
  595. {
  596. return (int)this.m_value_;
  597. }
  598. set
  599. {
  600. this.m_value_ = (ushort)wf.Math.Round4(value);
  601. }
  602. }
  603. public int hentai
  604. {
  605. get
  606. {
  607. return wf.Math.Round4((int)this.hentai_ + this.bonusStatus.hentai);
  608. }
  609. }
  610. public int baseHentai
  611. {
  612. get
  613. {
  614. return (int)this.hentai_;
  615. }
  616. set
  617. {
  618. this.hentai_ = (ushort)wf.Math.Round4(value);
  619. }
  620. }
  621. public int housi
  622. {
  623. get
  624. {
  625. return wf.Math.Round4((int)this.housi_ + this.bonusStatus.housi);
  626. }
  627. }
  628. public int baseHousi
  629. {
  630. get
  631. {
  632. return (int)this.housi_;
  633. }
  634. set
  635. {
  636. this.housi_ = (ushort)wf.Math.Round4(value);
  637. }
  638. }
  639. public int teachRate
  640. {
  641. get
  642. {
  643. return wf.Math.Round4((int)this.teachRate_ + this.bonusStatus.teachRate);
  644. }
  645. }
  646. public int baseTeachRate
  647. {
  648. get
  649. {
  650. return (int)this.teachRate_;
  651. }
  652. set
  653. {
  654. this.teachRate_ = (ushort)wf.Math.Round4(value);
  655. }
  656. }
  657. public int sexPlayNumberOfPeople
  658. {
  659. get
  660. {
  661. return (int)this.sexPlayNumberOfPeople_;
  662. }
  663. set
  664. {
  665. this.sexPlayNumberOfPeople_ = (ushort)wf.Math.Round3(value);
  666. }
  667. }
  668. public int popularRank
  669. {
  670. get
  671. {
  672. return (int)this.popularRank_;
  673. }
  674. set
  675. {
  676. this.popularRank_ = (ushort)wf.Math.Round3(value);
  677. }
  678. }
  679. public int evaluation
  680. {
  681. get
  682. {
  683. return (int)this.evaluation_;
  684. }
  685. set
  686. {
  687. this.evaluation_ = (ushort)wf.Math.Round4(value);
  688. }
  689. }
  690. public long totalEvaluations
  691. {
  692. get
  693. {
  694. return this.totalEvaluation_;
  695. }
  696. set
  697. {
  698. this.totalEvaluation_ = System.Math.Min(System.Math.Max(value, 0L), 9999999999L);
  699. }
  700. }
  701. public long sales
  702. {
  703. get
  704. {
  705. return this.sales_;
  706. }
  707. set
  708. {
  709. this.sales_ = System.Math.Min(System.Math.Max(value, 0L), 9999999999L);
  710. }
  711. }
  712. public long totalSales
  713. {
  714. get
  715. {
  716. return this.totalSales_;
  717. }
  718. set
  719. {
  720. this.totalSales_ = System.Math.Min(System.Math.Max(value, 0L), 9999999999L);
  721. }
  722. }
  723. public Feeling feeling
  724. {
  725. get
  726. {
  727. return (Feeling)this.flags_["__vr_feeling"];
  728. }
  729. set
  730. {
  731. this.flags_["__vr_feeling"] = (int)value;
  732. }
  733. }
  734. public bool isScoutMaid
  735. {
  736. get
  737. {
  738. return this.flags_["__is_scout_maid"] == 1;
  739. }
  740. set
  741. {
  742. this.flags_["__is_scout_maid"] = ((!value) ? 0 : 1);
  743. }
  744. }
  745. public int inranGap
  746. {
  747. get
  748. {
  749. return this.inyoku + this.lovely;
  750. }
  751. }
  752. public int mValueGap
  753. {
  754. get
  755. {
  756. return this.mvalue + this.elegance;
  757. }
  758. }
  759. public int hentaiGap
  760. {
  761. get
  762. {
  763. return this.hentai + this.charm;
  764. }
  765. }
  766. public int banishmentPrice
  767. {
  768. get
  769. {
  770. return (this.subCharaData == null) ? 10000 : 0;
  771. }
  772. }
  773. public bool isNickNameCall
  774. {
  775. get
  776. {
  777. return this.flags_.ContainsKey("__isNickNameCall__") && this.flags_["__isNickNameCall__"] != 0;
  778. }
  779. set
  780. {
  781. this.flags_["__isNickNameCall__"] = ((!value) ? 0 : 1);
  782. }
  783. }
  784. public VoiceGroup voiceGroup
  785. {
  786. get
  787. {
  788. return this.voiceGroup_;
  789. }
  790. set
  791. {
  792. this.voiceGroup_ = value;
  793. if (this.maid != null && this.maid.body0 != null)
  794. {
  795. this.maid.body0.SetVoiceGroup(value);
  796. }
  797. }
  798. }
  799. public ReadOnlyDictionary<int, Feature.Data> features { get; private set; }
  800. public ReadOnlyDictionary<int, Propensity.Data> propensitys { get; private set; }
  801. public JobClassSystem jobClass { get; private set; }
  802. public YotogiClassSystem yotogiClass { get; private set; }
  803. public YotogiSkillSystem yotogiSkill { get; private set; }
  804. public ReadOnlyDictionary<int, WorkData> workDatas { get; private set; }
  805. public ReadOnlyDictionary<string, int> flags { get; private set; }
  806. public ReadOnlyDictionary<int, bool> eventEndFlags { get; private set; }
  807. public Dictionary<string, string> partsDic { get; private set; }
  808. public Status OldStatus { get; private set; }
  809. public bool isCompatiblePersonality
  810. {
  811. get
  812. {
  813. return this.heroineType == HeroineType.Transfer && this.personal.compatible;
  814. }
  815. }
  816. public static string ConvertString(string str, int maxStrSize = 8)
  817. {
  818. str = Regex.Replace(str, "[\\r\\n\\t\\\\]", string.Empty);
  819. if (str.Length == 0)
  820. {
  821. str = " ";
  822. }
  823. StringInfo stringInfo = new StringInfo(str);
  824. if (maxStrSize < stringInfo.LengthInTextElements)
  825. {
  826. str = stringInfo.SubstringByTextElements(0, maxStrSize);
  827. }
  828. return str;
  829. }
  830. public void SetNewGuidAndCreationTime(string guidText = null, string creationTimeText = null)
  831. {
  832. this.guid = ((!string.IsNullOrEmpty(guidText)) ? guidText : Guid.NewGuid().ToString());
  833. this.creationTime = ((!string.IsNullOrEmpty(creationTimeText)) ? creationTimeText : DateTime.Now.ToString("G", new CultureInfo("ja-JP")).Replace("/", string.Empty));
  834. string text = this.creationTime.Replace(":", string.Empty);
  835. text = text.Replace(" ", string.Empty);
  836. this.creationTimeNum = ulong.Parse(text);
  837. }
  838. public void Initialize(Maid maid)
  839. {
  840. this.maid = maid;
  841. this.SetNewGuidAndCreationTime(null, null);
  842. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  843. this.additionalRelation = AdditionalRelation.Vigilance;
  844. this.specialRelation = SpecialRelation.Null;
  845. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New);
  846. foreach (JobClass.Data data in learnPossibleClassDatas)
  847. {
  848. this.jobClass.Add(data, true, true);
  849. if (this.selectedJobClass == null)
  850. {
  851. this.ChangeJobClass(data);
  852. }
  853. }
  854. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New);
  855. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  856. {
  857. this.yotogiClass.Add(data2, true, true);
  858. if (this.selectedYotogiClass == null)
  859. {
  860. this.ChangeYotogiClass(data2);
  861. }
  862. }
  863. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  864. foreach (Skill.Data data3 in learnPossibleSkills)
  865. {
  866. this.yotogiSkill.Add(data3.id);
  867. }
  868. int num = 100;
  869. this.baseMaxReason = num;
  870. num = num;
  871. this.baseMaxMind = num;
  872. this.baseMaxHp = num;
  873. this.UpdateClassBonusStatus();
  874. this.sexPlayNumberOfPeople = MaidProfile.UpdateInitPlayNumber(maid);
  875. this.UpdateBodyParam();
  876. this.profileComment = MaidProfile.Create(maid, false);
  877. this.currentHp = this.maxHp;
  878. this.currentMind = this.maxMind;
  879. }
  880. public bool SetPersonal(int personalId)
  881. {
  882. return this.SetPersonal(Personal.GetData(personalId));
  883. }
  884. public bool SetPersonal(Personal.Data data)
  885. {
  886. if (!Personal.IsEnabled(data.id) && !data.oldPersonal)
  887. {
  888. Debug.LogError("性格[" + data.drawName + "]は有効ではないので設定できません");
  889. return false;
  890. }
  891. this.personal_ = data;
  892. this.additionalRelation = this.additionalRelation;
  893. if (this.personal_.oldPersonal)
  894. {
  895. this.heroineType = HeroineType.Transfer;
  896. if (this.OldStatus == null)
  897. {
  898. this.OldStatus = new Status(this);
  899. }
  900. }
  901. else if (this.heroineType == HeroineType.Transfer)
  902. {
  903. this.heroineType = HeroineType.Original;
  904. this.OldStatus = null;
  905. }
  906. return true;
  907. }
  908. public void SetSeikeikenFront(bool val)
  909. {
  910. if (val)
  911. {
  912. if (this.seikeiken == Seikeiken.Yes_Yes || this.seikeiken == Seikeiken.Yes_No)
  913. {
  914. return;
  915. }
  916. if (this.seikeiken == Seikeiken.No_No)
  917. {
  918. this.seikeiken = Seikeiken.Yes_No;
  919. }
  920. else
  921. {
  922. this.seikeiken = Seikeiken.Yes_Yes;
  923. }
  924. }
  925. else
  926. {
  927. if (this.seikeiken == Seikeiken.No_No || this.seikeiken == Seikeiken.No_Yes)
  928. {
  929. return;
  930. }
  931. if (this.seikeiken == Seikeiken.Yes_Yes)
  932. {
  933. this.seikeiken = Seikeiken.No_Yes;
  934. }
  935. else
  936. {
  937. this.seikeiken = Seikeiken.No_No;
  938. }
  939. }
  940. }
  941. public void SetSeikeikenBack(bool val)
  942. {
  943. if (val)
  944. {
  945. if (this.seikeiken == Seikeiken.Yes_Yes || this.seikeiken == Seikeiken.No_Yes)
  946. {
  947. return;
  948. }
  949. if (this.seikeiken == Seikeiken.No_No)
  950. {
  951. this.seikeiken = Seikeiken.No_Yes;
  952. }
  953. else
  954. {
  955. this.seikeiken = Seikeiken.Yes_Yes;
  956. }
  957. }
  958. else
  959. {
  960. if (this.seikeiken == Seikeiken.No_No || this.seikeiken == Seikeiken.Yes_No)
  961. {
  962. return;
  963. }
  964. if (this.seikeiken == Seikeiken.Yes_Yes)
  965. {
  966. this.seikeiken = Seikeiken.Yes_No;
  967. }
  968. else
  969. {
  970. this.seikeiken = Seikeiken.No_No;
  971. }
  972. }
  973. }
  974. public bool ChangeJobClass(int jobClassId)
  975. {
  976. return this.ChangeJobClass(JobClass.GetData(jobClassId));
  977. }
  978. public bool ChangeJobClass(JobClass.Data data)
  979. {
  980. if (data == null)
  981. {
  982. return false;
  983. }
  984. if (!JobClass.IsEnabled(data.id))
  985. {
  986. Debug.LogError("ジョブクラス[" + data.drawName + "]は有効ではないので設定できません");
  987. return false;
  988. }
  989. if (!this.jobClass.Contains(data.id))
  990. {
  991. Debug.LogError("ジョブクラス[" + data.drawName + "]は取得していないので設定できません");
  992. return false;
  993. }
  994. this.selectedJobClass = this.jobClass.Get(data.id);
  995. return true;
  996. }
  997. public bool ChangeYotogiClass(int yotogiClassId)
  998. {
  999. return this.ChangeYotogiClass(YotogiClass.GetData(yotogiClassId));
  1000. }
  1001. public bool ChangeYotogiClass(YotogiClass.Data data)
  1002. {
  1003. if (data == null)
  1004. {
  1005. return false;
  1006. }
  1007. if (!YotogiClass.IsEnabled(data.id))
  1008. {
  1009. Debug.LogError("夜伽クラス[" + data.drawName + "]は有効ではないので設定できません");
  1010. return false;
  1011. }
  1012. if (!this.yotogiClass.Contains(data.id))
  1013. {
  1014. Debug.LogError("夜伽クラス[" + data.drawName + "]は取得していないので設定できません");
  1015. return false;
  1016. }
  1017. this.selectedYotogiClass = this.yotogiClass.Get(data.id);
  1018. return true;
  1019. }
  1020. public Feature.Data AddFeature(int featureId)
  1021. {
  1022. return this.AddFeature(Feature.GetData(featureId));
  1023. }
  1024. public Feature.Data AddFeature(Feature.Data data)
  1025. {
  1026. if (data != null && Feature.IsEnabled(data.id) && !this.features_.ContainsKey(data.id))
  1027. {
  1028. this.features_.Add(data.id, data);
  1029. }
  1030. return data;
  1031. }
  1032. public void RemoveFeature(int featureId)
  1033. {
  1034. this.RemoveFeature(Feature.GetData(featureId));
  1035. }
  1036. public void RemoveFeature(Feature.Data data)
  1037. {
  1038. if (data != null && this.features_.ContainsKey(data.id))
  1039. {
  1040. this.features_.Remove(data.id);
  1041. }
  1042. }
  1043. public Propensity.Data AddPropensity(int propensityId)
  1044. {
  1045. return this.AddPropensity(Propensity.GetData(propensityId));
  1046. }
  1047. public Propensity.Data AddPropensity(Propensity.Data data)
  1048. {
  1049. if (data != null && Propensity.IsEnabled(data.id) && !this.propensitys_.ContainsKey(data.id))
  1050. {
  1051. this.propensitys_.Add(data.id, data);
  1052. }
  1053. return data;
  1054. }
  1055. public void RemovePropensity(int featureId)
  1056. {
  1057. this.RemovePropensity(Propensity.GetData(featureId));
  1058. }
  1059. public void RemovePropensity(Propensity.Data data)
  1060. {
  1061. if (data != null && this.propensitys_.ContainsKey(data.id))
  1062. {
  1063. this.propensitys_.Remove(data.id);
  1064. }
  1065. }
  1066. public void SetWorkData(Dictionary<int, WorkData> src)
  1067. {
  1068. this.workDatas_.Clear();
  1069. if (src == null)
  1070. {
  1071. return;
  1072. }
  1073. foreach (KeyValuePair<int, WorkData> keyValuePair in src)
  1074. {
  1075. this.workDatas_.Add(keyValuePair.Key, keyValuePair.Value);
  1076. }
  1077. }
  1078. public void AddWorkDataPlayCount(int id, int addPlayCount)
  1079. {
  1080. if (!this.workDatas_.ContainsKey(id))
  1081. {
  1082. this.workDatas_.Add(id, new WorkData());
  1083. }
  1084. this.workDatas_[id].playCount += (uint)addPlayCount;
  1085. }
  1086. public void SetWorkDataLevel(int id, int level)
  1087. {
  1088. if (!this.workDatas_.ContainsKey(id))
  1089. {
  1090. this.workDatas_.Add(id, new WorkData());
  1091. }
  1092. this.workDatas_[id].level = level;
  1093. }
  1094. public void SetFlag(string flagName, int value)
  1095. {
  1096. if (!this.flags_.ContainsKey(flagName))
  1097. {
  1098. this.flags_.Add(flagName, value);
  1099. }
  1100. else
  1101. {
  1102. this.flags_[flagName] = value;
  1103. }
  1104. }
  1105. public void AddFlag(string flagName, int value)
  1106. {
  1107. if (!this.flags_.ContainsKey(flagName))
  1108. {
  1109. this.flags_.Add(flagName, value);
  1110. }
  1111. else
  1112. {
  1113. Dictionary<string, int> dictionary;
  1114. (dictionary = this.flags_)[flagName] = dictionary[flagName] + value;
  1115. }
  1116. }
  1117. public int GetFlag(string flagName)
  1118. {
  1119. return (!this.flags_.ContainsKey(flagName)) ? 0 : this.flags_[flagName];
  1120. }
  1121. public bool RemoveFlag(string flagName)
  1122. {
  1123. return this.flags_.ContainsKey(flagName) && this.flags_.Remove(flagName);
  1124. }
  1125. public void RemoveFlagAll()
  1126. {
  1127. this.flags_.Clear();
  1128. }
  1129. public void SetEventEndFlag(int id, bool value)
  1130. {
  1131. if (this.eventEndFlags_.ContainsKey(id))
  1132. {
  1133. this.eventEndFlags_[id] = value;
  1134. }
  1135. else
  1136. {
  1137. this.eventEndFlags_.Add(id, value);
  1138. }
  1139. }
  1140. public void RemoveEventEndFlag(int id)
  1141. {
  1142. if (this.eventEndFlags_.ContainsKey(id))
  1143. {
  1144. this.eventEndFlags_.Remove(id);
  1145. }
  1146. }
  1147. public bool GetEventEndFlag(int id)
  1148. {
  1149. return this.eventEndFlags_.ContainsKey(id) && this.eventEndFlags_[id];
  1150. }
  1151. public void RemoveEventEndFlagAll()
  1152. {
  1153. this.eventEndFlags_.Clear();
  1154. }
  1155. public BonusStatus GetBonusStatusAsFeatureAndPropensitys()
  1156. {
  1157. BonusStatus result = new BonusStatus();
  1158. foreach (Feature.Data data in this.features.GetValueArray())
  1159. {
  1160. if (data.bonusCorrection != null)
  1161. {
  1162. data.bonusCorrection.ApplyAddBonusStatus(result);
  1163. }
  1164. }
  1165. foreach (Propensity.Data data2 in this.propensitys.GetValueArray())
  1166. {
  1167. if (data2.bonusCorrection != null)
  1168. {
  1169. data2.bonusCorrection.ApplyAddBonusStatus(result);
  1170. }
  1171. }
  1172. return result;
  1173. }
  1174. public void UpdateBodyParam()
  1175. {
  1176. if (this.maid.Parts == null)
  1177. {
  1178. return;
  1179. }
  1180. Func<MPN, float> func = (MPN mpn) => (float)this.maid.GetProp(mpn).value;
  1181. float num = 1340f + func(MPN.sintyou) * 4f + func(MPN.DouPer) * (1f + func(MPN.sintyou) * 0.005f) + func(MPN.KubiScl) * 0.5f + func(MPN.HeadY) * 0.5f;
  1182. float num2 = 55f * func(MPN.RegFat) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1183. float num3 = 55f * func(MPN.RegMeet) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1184. float num4 = 10f * func(MPN.UdeScl) * 0.1f;
  1185. float num5 = 5f * func(MPN.ArmL) + 5f * func(MPN.sintyou) * 1f + 5f * func(MPN.UdeScl) * 0.5f;
  1186. float num6 = 70f * func(MPN.Hara) + 50f * func(MPN.sintyou) * 0.7f + 50f * func(MPN.west) * func(MPN.Hara) * 0.005f;
  1187. float num7 = 10f * func(MPN.MuneL) * 2f;
  1188. float num8 = num7 * func(MPN.MuneTare) * 0.005f;
  1189. float num9 = 20f * func(MPN.west) * 0.5f + 15f * func(MPN.west) * func(MPN.sintyou) * 0.02f + 15f * func(MPN.west) * func(MPN.DouPer) * 0.01f;
  1190. float num10 = 10f * func(MPN.koshi) + 7f * func(MPN.koshi) * func(MPN.sintyou) * 0.04f;
  1191. float num11 = 4f * func(MPN.kata);
  1192. float num12 = 38000f + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 + num11;
  1193. this.body.height = (int)(num / 10f);
  1194. this.body.weight = (int)(num12 / 1000f);
  1195. float num13 = 70f + func(MPN.MuneL) * 0.31f + func(MPN.west) * 0.02f;
  1196. num13 -= 5f * (func(MPN.MuneS) / 100f);
  1197. this.body.bust = (int)num13;
  1198. this.body.waist = (int)(40f + func(MPN.west) * 0.25f + func(MPN.Hara) * 0.35f);
  1199. this.body.hip = (int)(65f + func(MPN.koshi) * 0.3f + func(MPN.RegFat) * 0.025f + func(MPN.RegMeet) * 0.025f);
  1200. if (num13 < 80f)
  1201. {
  1202. this.body.cup = "A";
  1203. }
  1204. else if (110f <= num13)
  1205. {
  1206. this.body.cup = "N";
  1207. }
  1208. else
  1209. {
  1210. char[] array = new char[]
  1211. {
  1212. 'B',
  1213. 'C',
  1214. 'D',
  1215. 'E',
  1216. 'F',
  1217. 'G',
  1218. 'H',
  1219. 'I',
  1220. 'J',
  1221. 'K',
  1222. 'L',
  1223. 'M'
  1224. };
  1225. this.body.cup = array[(int)((num13 - 80f) / 2.5f)].ToString();
  1226. }
  1227. }
  1228. public void UpdateClassBonusStatus()
  1229. {
  1230. this.bonusStatus.Clear();
  1231. if (this.heroineType == HeroineType.Sub)
  1232. {
  1233. return;
  1234. }
  1235. foreach (KeyValuePair<int, ClassData<JobClass.Data>> keyValuePair in this.jobClass.GetAllDatas())
  1236. {
  1237. ClassData<JobClass.Data> value = keyValuePair.Value;
  1238. value.data.levelBonuss[value.level - 1].ApplyAddBonusStatus(this.bonusStatus);
  1239. }
  1240. }
  1241. public void Serialize(BinaryWriter binary)
  1242. {
  1243. this.SetFlag("__1330_specialrelation__", (int)this.specialRelation);
  1244. binary.Write("CM3D2_MAID_STATUS");
  1245. binary.Write(1480);
  1246. binary.Write(this.guid);
  1247. binary.Write(this.creationTime);
  1248. binary.Write((short)this.heroineType);
  1249. if (this.heroineType == HeroineType.Sub)
  1250. {
  1251. binary.Write(this.subCharaData.id);
  1252. }
  1253. binary.Write(this.mainChara);
  1254. binary.Write(this.employmentDay_);
  1255. binary.Write(this.lastName);
  1256. binary.Write(this.firstName);
  1257. binary.Write(this.profileComment);
  1258. binary.Write(this.freeComment);
  1259. binary.Write((short)this.initSeikeiken);
  1260. binary.Write((short)this.seikeiken);
  1261. binary.Write(this.personal_.id);
  1262. binary.Write((short)this.contract);
  1263. this.body.Serialize(binary);
  1264. binary.Write((short)this.relation_);
  1265. binary.Write(this.playCountYotogi_);
  1266. binary.Write(this.playCountNightWork_);
  1267. binary.Write(this.likability_);
  1268. binary.Write(this.studyRate_);
  1269. binary.Write(this.maxHp_);
  1270. binary.Write(this.currentHp_);
  1271. binary.Write(this.maxMind_);
  1272. binary.Write(this.currentMind_);
  1273. binary.Write(this.maxReason_);
  1274. binary.Write(this.currentReason_);
  1275. binary.Write(this.reception_);
  1276. binary.Write(this.care_);
  1277. binary.Write(this.lovely_);
  1278. binary.Write(this.elegance_);
  1279. binary.Write(this.charm_);
  1280. binary.Write(this.cooking_);
  1281. binary.Write(this.vocal_);
  1282. binary.Write(this.dance_);
  1283. binary.Write(this.appealPoint_);
  1284. binary.Write(this.inyoku_);
  1285. binary.Write(this.m_value_);
  1286. binary.Write(this.hentai_);
  1287. binary.Write(this.housi_);
  1288. binary.Write(this.teachRate_);
  1289. binary.Write(this.sexPlayNumberOfPeople_);
  1290. binary.Write(this.popularRank_);
  1291. binary.Write(this.sales_);
  1292. binary.Write(this.totalSales_);
  1293. binary.Write(this.evaluation_);
  1294. binary.Write(this.totalEvaluation_);
  1295. binary.Write(this.leader);
  1296. binary.Write(this.isFirstNameCall);
  1297. binary.Write(this.enabledYotogiStatusLock);
  1298. binary.Write((short)this.eyePartsTab);
  1299. binary.Write(this.noonWorkId);
  1300. binary.Write(this.nightWorkId);
  1301. binary.Write(this.noonCommu);
  1302. binary.Write(this.nightCommu);
  1303. binary.Write((short)this.features_.Count);
  1304. foreach (KeyValuePair<int, Feature.Data> keyValuePair in this.features_)
  1305. {
  1306. binary.Write(keyValuePair.Key);
  1307. }
  1308. binary.Write((short)this.propensitys_.Count);
  1309. foreach (KeyValuePair<int, Propensity.Data> keyValuePair2 in this.propensitys_)
  1310. {
  1311. binary.Write(keyValuePair2.Key);
  1312. }
  1313. this.jobClass.Serialize(binary);
  1314. this.yotogiClass.Serialize(binary);
  1315. this.yotogiSkill.Serialize(binary);
  1316. binary.Write((short)this.workDatas_.Count);
  1317. foreach (KeyValuePair<int, WorkData> keyValuePair3 in this.workDatas_)
  1318. {
  1319. binary.Write(keyValuePair3.Key);
  1320. keyValuePair3.Value.Serialize(binary);
  1321. }
  1322. binary.Write((short)this.flags_.Count);
  1323. foreach (KeyValuePair<string, int> keyValuePair4 in this.flags_)
  1324. {
  1325. binary.Write(keyValuePair4.Key);
  1326. binary.Write(keyValuePair4.Value);
  1327. }
  1328. binary.Write((short)this.eventEndFlags_.Count);
  1329. foreach (KeyValuePair<int, bool> keyValuePair5 in this.eventEndFlags_)
  1330. {
  1331. binary.Write(keyValuePair5.Key);
  1332. binary.Write(keyValuePair5.Value);
  1333. }
  1334. binary.Write((short)this.partsDic.Count);
  1335. foreach (KeyValuePair<string, string> keyValuePair6 in this.partsDic)
  1336. {
  1337. binary.Write(keyValuePair6.Key);
  1338. binary.Write(keyValuePair6.Value);
  1339. }
  1340. binary.Write(this.OldStatus != null);
  1341. if (this.OldStatus != null)
  1342. {
  1343. this.OldStatus.Serialize(binary);
  1344. }
  1345. binary.Write(this.selectedJobClass != null);
  1346. if (this.selectedJobClass != null)
  1347. {
  1348. binary.Write(this.selectedJobClass.data.id);
  1349. }
  1350. binary.Write(this.selectedYotogiClass != null);
  1351. if (this.selectedYotogiClass != null)
  1352. {
  1353. binary.Write(this.selectedYotogiClass.data.id);
  1354. }
  1355. binary.Write((short)this.additionalRelation_);
  1356. binary.Write(this.nickName_);
  1357. binary.Write(this.age);
  1358. binary.Write(2177629204U);
  1359. }
  1360. public void Deserialize(BinaryReader binary)
  1361. {
  1362. string a = binary.ReadString();
  1363. NDebug.Assert(a == "CM3D2_MAID_STATUS", "メイドパラメータのヘッダーが不正です。");
  1364. this.OldStatus = null;
  1365. int num = binary.ReadInt32();
  1366. this.guid = binary.ReadString();
  1367. this.creationTime = binary.ReadString();
  1368. string text = this.creationTime.Replace(":", string.Empty);
  1369. text = text.Replace(" ", string.Empty);
  1370. this.creationTimeNum = ulong.Parse(text);
  1371. this.heroineType = (HeroineType)binary.ReadInt16();
  1372. if (this.heroineType == HeroineType.Sub)
  1373. {
  1374. int id = binary.ReadInt32();
  1375. this.subCharaData = SubMaid.GetData(id);
  1376. }
  1377. if (205 < num)
  1378. {
  1379. this.mainChara = binary.ReadBoolean();
  1380. }
  1381. this.employmentDay_ = binary.ReadInt32();
  1382. this.lastName = binary.ReadString();
  1383. this.firstName = binary.ReadString();
  1384. this.profileComment = binary.ReadString();
  1385. this.freeComment = binary.ReadString();
  1386. this.initSeikeiken = (Seikeiken)binary.ReadInt16();
  1387. this.seikeiken = (Seikeiken)binary.ReadInt16();
  1388. int num2 = binary.ReadInt32();
  1389. if (Personal.IsEnabled(num2))
  1390. {
  1391. this.SetPersonal(num2);
  1392. }
  1393. else
  1394. {
  1395. Debug.LogWarning(this.fullNameJpStyle + " : ロードされたデータの性格[" + Personal.GetData(num2).drawName + "]は有効ではないので初期性格に強制変更しました");
  1396. this.SetPersonal(Personal.GetData("Muku"));
  1397. }
  1398. if (207 < num)
  1399. {
  1400. this.contract = (Contract)binary.ReadInt16();
  1401. }
  1402. this.body.Deserialize(binary, num);
  1403. this.relation_ = (Relation)binary.ReadInt16();
  1404. if (num < 215)
  1405. {
  1406. binary.ReadInt16();
  1407. }
  1408. this.playCountYotogi_ = binary.ReadUInt16();
  1409. this.playCountNightWork_ = binary.ReadUInt16();
  1410. this.likability_ = binary.ReadUInt16();
  1411. this.studyRate_ = binary.ReadUInt16();
  1412. this.maxHp_ = binary.ReadUInt16();
  1413. this.currentHp_ = binary.ReadUInt16();
  1414. this.maxMind_ = binary.ReadUInt16();
  1415. this.currentMind_ = binary.ReadUInt16();
  1416. if (211 < num)
  1417. {
  1418. this.maxReason_ = binary.ReadUInt16();
  1419. this.currentReason_ = binary.ReadUInt16();
  1420. }
  1421. this.reception_ = binary.ReadUInt16();
  1422. this.care_ = binary.ReadUInt16();
  1423. this.lovely_ = binary.ReadUInt16();
  1424. this.elegance_ = binary.ReadUInt16();
  1425. this.charm_ = binary.ReadUInt16();
  1426. this.cooking_ = binary.ReadUInt16();
  1427. this.vocal_ = binary.ReadUInt16();
  1428. this.dance_ = binary.ReadUInt16();
  1429. this.appealPoint_ = binary.ReadUInt16();
  1430. this.inyoku_ = binary.ReadUInt16();
  1431. this.m_value_ = binary.ReadUInt16();
  1432. this.hentai_ = binary.ReadUInt16();
  1433. this.housi_ = binary.ReadUInt16();
  1434. this.teachRate_ = binary.ReadUInt16();
  1435. this.sexPlayNumberOfPeople_ = binary.ReadUInt16();
  1436. this.popularRank_ = binary.ReadUInt16();
  1437. this.sales_ = binary.ReadInt64();
  1438. this.totalSales_ = binary.ReadInt64();
  1439. if (207 < num)
  1440. {
  1441. this.evaluation_ = binary.ReadUInt16();
  1442. this.totalEvaluation_ = binary.ReadInt64();
  1443. }
  1444. this.leader = binary.ReadBoolean();
  1445. this.isFirstNameCall = binary.ReadBoolean();
  1446. if (202 < num)
  1447. {
  1448. this.enabledYotogiStatusLock = binary.ReadBoolean();
  1449. }
  1450. this.eyePartsTab = (EyePartsTab)binary.ReadInt16();
  1451. this.noonWorkId = binary.ReadInt32();
  1452. this.nightWorkId = binary.ReadInt32();
  1453. this.noonCommu = binary.ReadBoolean();
  1454. this.nightCommu = binary.ReadBoolean();
  1455. int num3 = (int)binary.ReadInt16();
  1456. this.features_.Clear();
  1457. for (int i = 0; i < num3; i++)
  1458. {
  1459. int num4 = binary.ReadInt32();
  1460. if (Feature.IsEnabled(num4))
  1461. {
  1462. this.features_.Add(num4, Feature.GetData(num4));
  1463. }
  1464. }
  1465. num3 = (int)binary.ReadInt16();
  1466. this.propensitys_.Clear();
  1467. for (int j = 0; j < num3; j++)
  1468. {
  1469. int num5 = binary.ReadInt32();
  1470. if (Propensity.IsEnabled(num5))
  1471. {
  1472. this.propensitys_.Add(num5, Propensity.GetData(num5));
  1473. }
  1474. }
  1475. this.jobClass.Deserialize(binary, num);
  1476. this.yotogiClass.Deserialize(binary, num);
  1477. this.UpdateClassBonusStatus();
  1478. if (211 >= num)
  1479. {
  1480. num3 = (int)binary.ReadInt16();
  1481. for (int k = 0; k < num3; k++)
  1482. {
  1483. binary.ReadInt32();
  1484. binary.ReadUInt32();
  1485. binary.ReadUInt16();
  1486. binary.ReadInt32();
  1487. binary.ReadInt32();
  1488. binary.ReadInt32();
  1489. binary.ReadInt32();
  1490. }
  1491. }
  1492. else
  1493. {
  1494. this.yotogiSkill.Deserialize(binary, num);
  1495. }
  1496. num3 = (int)binary.ReadInt16();
  1497. this.workDatas_.Clear();
  1498. for (int l = 0; l < num3; l++)
  1499. {
  1500. int key = binary.ReadInt32();
  1501. WorkData workData = new WorkData();
  1502. workData.Deserialize(binary, num);
  1503. this.workDatas_.Add(key, workData);
  1504. }
  1505. num3 = (int)binary.ReadInt16();
  1506. this.flags_.Clear();
  1507. for (int m = 0; m < num3; m++)
  1508. {
  1509. string key2 = binary.ReadString();
  1510. int value = binary.ReadInt32();
  1511. this.flags_.Add(key2, value);
  1512. }
  1513. if (205 < num)
  1514. {
  1515. num3 = (int)binary.ReadInt16();
  1516. this.eventEndFlags_.Clear();
  1517. for (int n = 0; n < num3; n++)
  1518. {
  1519. int key3 = binary.ReadInt32();
  1520. bool value2 = binary.ReadBoolean();
  1521. this.eventEndFlags_.Add(key3, value2);
  1522. }
  1523. }
  1524. num3 = (int)binary.ReadInt16();
  1525. this.partsDic.Clear();
  1526. for (int num6 = 0; num6 < num3; num6++)
  1527. {
  1528. string key4 = binary.ReadString();
  1529. string value3 = binary.ReadString();
  1530. this.partsDic.Add(key4, value3);
  1531. }
  1532. if (207 < num)
  1533. {
  1534. bool flag = binary.ReadBoolean();
  1535. if (flag)
  1536. {
  1537. this.OldStatus = new Status(this);
  1538. this.OldStatus.Deserialize(binary, num);
  1539. }
  1540. }
  1541. this.selectedJobClass = null;
  1542. if (binary.ReadBoolean())
  1543. {
  1544. int id2 = binary.ReadInt32();
  1545. if (this.jobClass.Contains(id2))
  1546. {
  1547. this.selectedJobClass = this.jobClass.Get(id2);
  1548. }
  1549. }
  1550. if (this.selectedJobClass == null)
  1551. {
  1552. ClassData<JobClass.Data>[] valueArray = this.jobClass.datas.GetValueArray();
  1553. int num7 = 0;
  1554. if (num7 < valueArray.Length)
  1555. {
  1556. ClassData<JobClass.Data> selectedJobClass = valueArray[num7];
  1557. this.selectedJobClass = selectedJobClass;
  1558. }
  1559. }
  1560. this.selectedYotogiClass = null;
  1561. if (binary.ReadBoolean())
  1562. {
  1563. int id3 = binary.ReadInt32();
  1564. if (this.yotogiClass.Contains(id3))
  1565. {
  1566. this.selectedYotogiClass = this.yotogiClass.Get(id3);
  1567. }
  1568. }
  1569. if (this.selectedYotogiClass == null)
  1570. {
  1571. ClassData<YotogiClass.Data>[] valueArray2 = this.yotogiClass.datas.GetValueArray();
  1572. int num8 = 0;
  1573. if (num8 < valueArray2.Length)
  1574. {
  1575. ClassData<YotogiClass.Data> selectedYotogiClass = valueArray2[num8];
  1576. this.selectedYotogiClass = selectedYotogiClass;
  1577. }
  1578. }
  1579. this.additionalRelation_ = AdditionalRelation.Null;
  1580. if (1270 <= num)
  1581. {
  1582. this.additionalRelation_ = (AdditionalRelation)binary.ReadInt16();
  1583. if (this.additionalRelation_ != AdditionalRelation.Null && this.heroineType == HeroineType.Sub)
  1584. {
  1585. this.additionalRelation_ = AdditionalRelation.Null;
  1586. }
  1587. this.nickName_ = binary.ReadString();
  1588. this.age = binary.ReadInt32();
  1589. if (this.additionalRelation_ == AdditionalRelation.Vigilance)
  1590. {
  1591. if (this.relation == Relation.Trust || this.relation == Relation.Lover)
  1592. {
  1593. this.additionalRelation_ = AdditionalRelation.Null;
  1594. }
  1595. if (this.relation == Relation.Lover)
  1596. {
  1597. if ((this.personal.uniqueName == "Muku" && this.GetEventEndFlag(5040)) || (this.personal.uniqueName == "Majime" && this.GetEventEndFlag(5140)) || (this.personal.uniqueName == "Rindere" && this.GetEventEndFlag(5240)))
  1598. {
  1599. this.additionalRelation_ = AdditionalRelation.LoverPlus;
  1600. }
  1601. }
  1602. else if (this.relation == Relation.Contact && ((this.personal.uniqueName == "Muku" && this.GetEventEndFlag(5030)) || (this.personal.uniqueName == "Majime" && this.GetEventEndFlag(5130)) || (this.personal.uniqueName == "Rindere" && this.GetEventEndFlag(5230))))
  1603. {
  1604. this.additionalRelation_ = AdditionalRelation.Null;
  1605. }
  1606. }
  1607. }
  1608. if (!PluginData.IsEnabled("GP002") || this.GetFlag("__1330_specialrelation__") == 0)
  1609. {
  1610. this.specialRelation = SpecialRelation.Null;
  1611. }
  1612. else
  1613. {
  1614. this.specialRelation = (SpecialRelation)this.GetFlag("__1330_specialrelation__");
  1615. }
  1616. this.RemoveFlag("__1330_specialrelation__");
  1617. uint num9 = binary.ReadUInt32();
  1618. NDebug.Assert(2177629204U == num9, "メイドパラメータのロードに失敗しました");
  1619. if (num <= 1050)
  1620. {
  1621. YotogiClass.Data data = YotogiClass.GetData("Kokuhakuplay");
  1622. if (this.yotogiClass.Get(data) != null && this.contract != Contract.Free)
  1623. {
  1624. this.yotogiClass.Remove(data, true);
  1625. }
  1626. List<int> list = new List<int>();
  1627. foreach (YotogiSkillData yotogiSkillData in this.yotogiSkill.datas.GetValueArray())
  1628. {
  1629. YotogiClass.Data yotogi_class = yotogiSkillData.data.getcondition_data.yotogi_class;
  1630. if (yotogi_class != null && !this.yotogiClass.Contains(yotogi_class) && yotogi_class.learnConditions.requestContracts.Count != 0 && !yotogi_class.learnConditions.requestContracts.Contains(this.contract))
  1631. {
  1632. list.Add(yotogiSkillData.id);
  1633. }
  1634. }
  1635. foreach (int skillId in list)
  1636. {
  1637. this.yotogiSkill.Remove(skillId);
  1638. }
  1639. }
  1640. if (num == 1380 && this.specialRelation == SpecialRelation.Null)
  1641. {
  1642. List<int> list2 = new List<int>();
  1643. foreach (YotogiSkillData yotogiSkillData2 in this.yotogiSkill.datas.GetValueArray())
  1644. {
  1645. if (yotogiSkillData2.data.getcondition_data.requestMarried)
  1646. {
  1647. list2.Add(yotogiSkillData2.id);
  1648. }
  1649. }
  1650. foreach (int skillId2 in list2)
  1651. {
  1652. this.yotogiSkill.Remove(skillId2);
  1653. }
  1654. }
  1655. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1656. foreach (Skill.Data data2 in learnPossibleSkills)
  1657. {
  1658. if (data2.specialConditionType == Skill.Data.SpecialConditionType.GP01Recollect || data2.specialConditionType == Skill.Data.SpecialConditionType.GP02Recollect)
  1659. {
  1660. this.yotogiSkill.Add(data2);
  1661. }
  1662. }
  1663. if (this.GetFlag("処女喪失シナリオ初回") == 1 && this.initSeikeiken != Seikeiken.No_No)
  1664. {
  1665. this.initSeikeiken = Seikeiken.No_No;
  1666. }
  1667. }
  1668. public void Deserialize(StatusReader oldStatusReader, bool convertYotogiSkill)
  1669. {
  1670. Func<int, int> func = (int value) => (int)System.Math.Floor((double)((float)value * 0.3f));
  1671. this.OldStatus = new Status(this);
  1672. this.creationTimeNum = oldStatusReader.creationTimeNum;
  1673. this.guid = oldStatusReader.guid;
  1674. this.heroineType = HeroineType.Transfer;
  1675. this.mainChara = false;
  1676. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  1677. this.lastName = oldStatusReader.lastName;
  1678. this.firstName = oldStatusReader.firstName;
  1679. this.freeComment = oldStatusReader.freeComment;
  1680. this.initSeikeiken = oldStatusReader.initSeikeiken;
  1681. this.seikeiken = oldStatusReader.seikeiken;
  1682. string uniqueName = oldStatusReader.personal.ToString();
  1683. this.SetPersonal(Personal.GetData(uniqueName));
  1684. this.contract = oldStatusReader.contract;
  1685. this.additionalRelation = AdditionalRelation.Null;
  1686. this.body.height = oldStatusReader.body.height;
  1687. this.body.weight = oldStatusReader.body.weight;
  1688. this.body.bust = oldStatusReader.body.bust;
  1689. this.body.waist = oldStatusReader.body.waist;
  1690. this.body.hip = oldStatusReader.body.hip;
  1691. this.body.cup = oldStatusReader.body.cup;
  1692. if (oldStatusReader.relation == Relation.Tonus || oldStatusReader.relation == Relation.Contact)
  1693. {
  1694. this.relation_ = Relation.Contact;
  1695. }
  1696. else if (oldStatusReader.relation == Relation.Trust)
  1697. {
  1698. this.relation_ = Relation.Trust;
  1699. }
  1700. else
  1701. {
  1702. this.relation_ = Relation.Lover;
  1703. }
  1704. this.playCountYotogi = oldStatusReader.playCountYotogi;
  1705. this.playCountNightWork = oldStatusReader.playCountNightWork;
  1706. this.likability = oldStatusReader.likability;
  1707. this.studyRate = oldStatusReader.studyRate;
  1708. int num = 100;
  1709. this.baseMaxHp = num;
  1710. this.currentHp = num;
  1711. num = 100;
  1712. this.baseMaxMind = num;
  1713. this.currentMind = num;
  1714. this.baseReception = func(oldStatusReader.reception);
  1715. this.baseCare = func(oldStatusReader.care);
  1716. this.baseLovely = func(oldStatusReader.lovely);
  1717. this.baseElegance = func(oldStatusReader.elegance);
  1718. this.baseCharm = func(oldStatusReader.charm);
  1719. num = 0;
  1720. this.baseAppealPoint = num;
  1721. num = num;
  1722. this.baseDance = num;
  1723. num = num;
  1724. this.baseVocal = num;
  1725. this.baseCooking = num;
  1726. this.baseInyoku = func(oldStatusReader.inyoku);
  1727. this.baseMvalue = func(oldStatusReader.mvalue);
  1728. this.baseHentai = func(oldStatusReader.hentai);
  1729. this.baseHousi = func(oldStatusReader.housi);
  1730. this.baseTeachRate = func(oldStatusReader.teachRate);
  1731. this.sexPlayNumberOfPeople = oldStatusReader.sexPlayNumberOfPeople;
  1732. this.popularRank = 0;
  1733. num = 0;
  1734. this.evaluation = num;
  1735. this.sales = (long)num;
  1736. this.totalSales = oldStatusReader.totalSales;
  1737. this.totalEvaluations = oldStatusReader.totalEvaluations;
  1738. this.leader = false;
  1739. this.isFirstNameCall = oldStatusReader.isFirstNameCall;
  1740. this.eyePartsTab = EyePartsTab.LR;
  1741. this.noonWorkId = (this.nightWorkId = 0);
  1742. this.noonCommu = (this.nightCommu = false);
  1743. this.features_.Clear();
  1744. this.propensitys_.Clear();
  1745. this.jobClass.Clear();
  1746. this.yotogiClass.Clear();
  1747. this.yotogiSkill.Clear();
  1748. this.workDatas_.Clear();
  1749. this.flags_.Clear();
  1750. this.eventEndFlags_.Clear();
  1751. this.selectedJobClass = null;
  1752. AbstractClassData.ClassType classTypeFlags = AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New | AbstractClassData.ClassType.Old;
  1753. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1754. foreach (JobClass.Data data in learnPossibleClassDatas)
  1755. {
  1756. if (GameMain.Instance.CharacterMgr.status.IsJobClassOpenFlag(data.id))
  1757. {
  1758. this.jobClass.Add(data, false, false);
  1759. }
  1760. }
  1761. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1762. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  1763. {
  1764. if (GameMain.Instance.CharacterMgr.status.IsYotogiClassOpenFlag(data2.id))
  1765. {
  1766. this.yotogiClass.Add(data2, false, false);
  1767. }
  1768. }
  1769. foreach (StatusReader.ClassData classData in oldStatusReader.maidClassDatas)
  1770. {
  1771. if (classData.isHave && JobClass.IsEnabled(classData.classId) && !this.jobClass.Contains(classData.classId))
  1772. {
  1773. ClassData<JobClass.Data> classData2 = this.jobClass.Add(classData.classId, false, false);
  1774. if (classData2 != null)
  1775. {
  1776. classData2.expSystem.SetLevel(classData.level);
  1777. }
  1778. }
  1779. }
  1780. foreach (StatusReader.ClassData classData3 in oldStatusReader.yotogiClassDatas)
  1781. {
  1782. if (classData3.isHave && YotogiClass.IsEnabled(classData3.classId) && !this.yotogiClass.Contains(classData3.classId))
  1783. {
  1784. ClassData<YotogiClass.Data> classData4 = this.yotogiClass.Add(classData3.classId, false, false);
  1785. if (classData4 != null)
  1786. {
  1787. classData4.expSystem.SetLevel(classData3.level);
  1788. }
  1789. }
  1790. }
  1791. if (oldStatusReader.selectedMaidClass != null && this.jobClass.Contains(oldStatusReader.selectedMaidClass.classId))
  1792. {
  1793. this.selectedJobClass = this.jobClass.Get(oldStatusReader.selectedMaidClass.classId);
  1794. }
  1795. if (this.selectedJobClass == null)
  1796. {
  1797. ClassData<JobClass.Data>[] valueArray = this.jobClass.oldDatas.GetValueArray();
  1798. int num2 = 0;
  1799. if (num2 < valueArray.Length)
  1800. {
  1801. ClassData<JobClass.Data> selectedJobClass = valueArray[num2];
  1802. this.selectedJobClass = selectedJobClass;
  1803. }
  1804. }
  1805. if (convertYotogiSkill)
  1806. {
  1807. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1808. foreach (Skill.Data data3 in learnPossibleSkills)
  1809. {
  1810. this.yotogiSkill.Add(data3.id);
  1811. }
  1812. foreach (KeyValuePair<int, StatusReader.SkillData> keyValuePair in oldStatusReader.yotogiSkillDatas)
  1813. {
  1814. int id = keyValuePair.Value.id;
  1815. int level = keyValuePair.Value.level;
  1816. uint playCount = keyValuePair.Value.playCount;
  1817. if (!this.yotogiSkill.Contains(id) && Skill.Old.Contains(id))
  1818. {
  1819. this.yotogiSkill.Add(id);
  1820. }
  1821. YotogiSkillData yotogiSkillData = this.yotogiSkill.Get(id);
  1822. if (yotogiSkillData != null && yotogiSkillData.oldData != null)
  1823. {
  1824. yotogiSkillData.expSystem.SetLevel(level);
  1825. yotogiSkillData.playCount = playCount;
  1826. }
  1827. }
  1828. }
  1829. foreach (KeyValuePair<int, StatusReader.WorkData> keyValuePair2 in oldStatusReader.workDatas)
  1830. {
  1831. this.workDatas_.Add(keyValuePair2.Key, keyValuePair2.Value.toNewWorkData());
  1832. }
  1833. foreach (int num3 in oldStatusReader.features)
  1834. {
  1835. StatusReader.Feature feature = (StatusReader.Feature)num3;
  1836. string uniqueName2 = feature.ToString();
  1837. this.AddFeature(Feature.GetData(uniqueName2));
  1838. }
  1839. this.OldStatus.employmentElapsedDay = oldStatusReader.employmentElapsedDay;
  1840. this.OldStatus.relation = oldStatusReader.relation;
  1841. Dictionary<StatusReader.Propensity, string> dictionary = new Dictionary<StatusReader.Propensity, string>();
  1842. dictionary.Add(StatusReader.Propensity.淫乱, "敏感体質");
  1843. dictionary.Add(StatusReader.Propensity.変態, "変態の素質");
  1844. dictionary.Add(StatusReader.Propensity.飲精好き, "ごっくん大好き");
  1845. dictionary.Add(StatusReader.Propensity.奉仕好き, "桃色泡姫");
  1846. dictionary.Add(StatusReader.Propensity.M女, "ドMの素質");
  1847. dictionary.Add(StatusReader.Propensity.中出し好き, "中出し大好き");
  1848. foreach (int num4 in oldStatusReader.propensitys)
  1849. {
  1850. StatusReader.Propensity key = (StatusReader.Propensity)num4;
  1851. if (dictionary.ContainsKey(key))
  1852. {
  1853. this.AddPropensity(Propensity.GetData(dictionary[key]));
  1854. }
  1855. }
  1856. if (1000 <= oldStatusReader.sexual.curi)
  1857. {
  1858. this.AddPropensity(Propensity.GetData("敏感なクリトリス"));
  1859. }
  1860. this.partsDic = new Dictionary<string, string>(oldStatusReader.partsDic);
  1861. this.OldStatus.isMarriage = (oldStatusReader.flags.ContainsKey("_maid_param_marriage_flag") && oldStatusReader.flags["_maid_param_marriage_flag"] != 0);
  1862. this.OldStatus.isNewWife = (oldStatusReader.flags.ContainsKey("_maid_param_newwife_flag") && oldStatusReader.flags["_maid_param_newwife_flag"] != 0);
  1863. foreach (KeyValuePair<string, int> keyValuePair3 in oldStatusReader.flags)
  1864. {
  1865. this.OldStatus.AddFlag(keyValuePair3.Key, keyValuePair3.Value);
  1866. }
  1867. if (!GameMain.Instance.CharacterMgr.status.isOldPlayer)
  1868. {
  1869. this.likability = 0;
  1870. this.relation_ = Relation.Contact;
  1871. this.OldStatus.isMarriage = false;
  1872. this.OldStatus.isNewWife = false;
  1873. }
  1874. this.profileComment = MaidProfile.Create(this.maid, true);
  1875. }
  1876. public const int MaidPointUpStatus = 20;
  1877. public const int NullID = -2147483648;
  1878. private const uint SaveDataCheckCode = 2177629204U;
  1879. public HeroineType heroineType;
  1880. public bool mainChara;
  1881. public SubMaid.Data subCharaData;
  1882. public string profileComment;
  1883. public int age;
  1884. public Seikeiken initSeikeiken;
  1885. public Seikeiken seikeiken;
  1886. public Contract contract;
  1887. public BodyData body;
  1888. public SpecialRelation specialRelation;
  1889. public int noonWorkId;
  1890. public int nightWorkId;
  1891. public bool noonCommu;
  1892. public bool nightCommu;
  1893. public bool leader;
  1894. public bool isFirstNameCall;
  1895. public bool enabledYotogiStatusLock;
  1896. public EyePartsTab eyePartsTab;
  1897. private Dictionary<int, Feature.Data> features_;
  1898. private Dictionary<int, Propensity.Data> propensitys_;
  1899. private BonusStatus bonusStatus;
  1900. private string freeComment_;
  1901. private Personal.Data personal_;
  1902. private int employmentDay_;
  1903. private string lastName_ = string.Empty;
  1904. private string firstName_ = string.Empty;
  1905. private string nickName_ = string.Empty;
  1906. private Relation relation_;
  1907. private AdditionalRelation additionalRelation_;
  1908. private ushort playCountYotogi_;
  1909. private ushort playCountNightWork_;
  1910. private ushort likability_;
  1911. private ushort studyRate_;
  1912. private int currentExcite_;
  1913. private int currentSensual_;
  1914. private ushort maxHp_;
  1915. private ushort currentHp_;
  1916. private ushort maxMind_;
  1917. private ushort currentMind_;
  1918. private ushort maxReason_;
  1919. private ushort currentReason_;
  1920. private ushort reception_;
  1921. private ushort care_;
  1922. private ushort lovely_;
  1923. private ushort elegance_;
  1924. private ushort charm_;
  1925. private ushort cooking_;
  1926. private ushort vocal_;
  1927. private ushort dance_;
  1928. private ushort appealPoint_;
  1929. private ushort inyoku_;
  1930. private ushort m_value_;
  1931. private ushort hentai_;
  1932. private ushort housi_;
  1933. private ushort teachRate_;
  1934. private ushort sexPlayNumberOfPeople_;
  1935. private ushort popularRank_;
  1936. private long sales_;
  1937. private long totalSales_;
  1938. private ushort evaluation_;
  1939. private long totalEvaluation_;
  1940. private Dictionary<int, WorkData> workDatas_;
  1941. private Dictionary<string, int> flags_;
  1942. private Dictionary<int, bool> eventEndFlags_;
  1943. private VoiceGroup voiceGroup_;
  1944. }
  1945. }