Status.cs 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124
  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 int inranGap
  735. {
  736. get
  737. {
  738. return this.inyoku + this.lovely;
  739. }
  740. }
  741. public int mValueGap
  742. {
  743. get
  744. {
  745. return this.mvalue + this.elegance;
  746. }
  747. }
  748. public int hentaiGap
  749. {
  750. get
  751. {
  752. return this.hentai + this.charm;
  753. }
  754. }
  755. public int banishmentPrice
  756. {
  757. get
  758. {
  759. return (this.subCharaData == null) ? 10000 : 0;
  760. }
  761. }
  762. public bool isNickNameCall
  763. {
  764. get
  765. {
  766. return this.flags_.ContainsKey("__isNickNameCall__") && this.flags_["__isNickNameCall__"] != 0;
  767. }
  768. set
  769. {
  770. this.flags_["__isNickNameCall__"] = ((!value) ? 0 : 1);
  771. }
  772. }
  773. public VoiceGroup voiceGroup
  774. {
  775. get
  776. {
  777. return this.voiceGroup_;
  778. }
  779. set
  780. {
  781. this.voiceGroup_ = value;
  782. if (this.maid != null && this.maid.body0 != null)
  783. {
  784. this.maid.body0.SetVoiceGroup(value);
  785. }
  786. }
  787. }
  788. public ReadOnlyDictionary<int, Feature.Data> features { get; private set; }
  789. public ReadOnlyDictionary<int, Propensity.Data> propensitys { get; private set; }
  790. public JobClassSystem jobClass { get; private set; }
  791. public YotogiClassSystem yotogiClass { get; private set; }
  792. public YotogiSkillSystem yotogiSkill { get; private set; }
  793. public ReadOnlyDictionary<int, WorkData> workDatas { get; private set; }
  794. public ReadOnlyDictionary<string, int> flags { get; private set; }
  795. public ReadOnlyDictionary<int, bool> eventEndFlags { get; private set; }
  796. public Dictionary<string, string> partsDic { get; private set; }
  797. public Status OldStatus { get; private set; }
  798. public bool isCompatiblePersonality
  799. {
  800. get
  801. {
  802. return this.heroineType == HeroineType.Transfer && this.personal.compatible;
  803. }
  804. }
  805. public static string ConvertString(string str, int maxStrSize = 8)
  806. {
  807. str = Regex.Replace(str, "[\\r\\n\\t\\\\]", string.Empty);
  808. if (str.Length == 0)
  809. {
  810. str = " ";
  811. }
  812. StringInfo stringInfo = new StringInfo(str);
  813. if (maxStrSize < stringInfo.LengthInTextElements)
  814. {
  815. str = stringInfo.SubstringByTextElements(0, maxStrSize);
  816. }
  817. return str;
  818. }
  819. public void Initialize(Maid maid)
  820. {
  821. this.maid = maid;
  822. this.guid = Guid.NewGuid().ToString();
  823. this.creationTime = DateTime.Now.ToString("G", new CultureInfo("ja-JP")).Replace("/", string.Empty);
  824. string text = this.creationTime.Replace(":", string.Empty);
  825. text = text.Replace(" ", string.Empty);
  826. this.creationTimeNum = ulong.Parse(text);
  827. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  828. this.additionalRelation = AdditionalRelation.Vigilance;
  829. this.specialRelation = SpecialRelation.Null;
  830. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New);
  831. foreach (JobClass.Data data in learnPossibleClassDatas)
  832. {
  833. this.jobClass.Add(data, true, true);
  834. if (this.selectedJobClass == null)
  835. {
  836. this.ChangeJobClass(data);
  837. }
  838. }
  839. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New);
  840. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  841. {
  842. this.yotogiClass.Add(data2, true, true);
  843. if (this.selectedYotogiClass == null)
  844. {
  845. this.ChangeYotogiClass(data2);
  846. }
  847. }
  848. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  849. foreach (Skill.Data data3 in learnPossibleSkills)
  850. {
  851. this.yotogiSkill.Add(data3.id);
  852. }
  853. int num = 100;
  854. this.baseMaxReason = num;
  855. num = num;
  856. this.baseMaxMind = num;
  857. this.baseMaxHp = num;
  858. this.UpdateClassBonusStatus();
  859. this.sexPlayNumberOfPeople = MaidProfile.UpdateInitPlayNumber(maid);
  860. this.UpdateBodyParam();
  861. this.profileComment = MaidProfile.Create(maid, false);
  862. this.currentHp = this.maxHp;
  863. this.currentMind = this.maxMind;
  864. }
  865. public bool SetPersonal(int personalId)
  866. {
  867. return this.SetPersonal(Personal.GetData(personalId));
  868. }
  869. public bool SetPersonal(Personal.Data data)
  870. {
  871. if (!Personal.IsEnabled(data.id) && !data.oldPersonal)
  872. {
  873. Debug.LogError("性格[" + data.drawName + "]は有効ではないので設定できません");
  874. return false;
  875. }
  876. this.personal_ = data;
  877. this.additionalRelation = this.additionalRelation;
  878. if (this.personal_.oldPersonal)
  879. {
  880. this.heroineType = HeroineType.Transfer;
  881. if (this.OldStatus == null)
  882. {
  883. this.OldStatus = new Status(this);
  884. }
  885. }
  886. else if (this.heroineType == HeroineType.Transfer)
  887. {
  888. this.heroineType = HeroineType.Original;
  889. this.OldStatus = null;
  890. }
  891. return true;
  892. }
  893. public void SetSeikeikenFront(bool val)
  894. {
  895. if (val)
  896. {
  897. if (this.seikeiken == Seikeiken.Yes_Yes || this.seikeiken == Seikeiken.Yes_No)
  898. {
  899. return;
  900. }
  901. if (this.seikeiken == Seikeiken.No_No)
  902. {
  903. this.seikeiken = Seikeiken.Yes_No;
  904. }
  905. else
  906. {
  907. this.seikeiken = Seikeiken.Yes_Yes;
  908. }
  909. }
  910. else
  911. {
  912. if (this.seikeiken == Seikeiken.No_No || this.seikeiken == Seikeiken.No_Yes)
  913. {
  914. return;
  915. }
  916. if (this.seikeiken == Seikeiken.Yes_Yes)
  917. {
  918. this.seikeiken = Seikeiken.No_Yes;
  919. }
  920. else
  921. {
  922. this.seikeiken = Seikeiken.No_No;
  923. }
  924. }
  925. }
  926. public void SetSeikeikenBack(bool val)
  927. {
  928. if (val)
  929. {
  930. if (this.seikeiken == Seikeiken.Yes_Yes || this.seikeiken == Seikeiken.No_Yes)
  931. {
  932. return;
  933. }
  934. if (this.seikeiken == Seikeiken.No_No)
  935. {
  936. this.seikeiken = Seikeiken.No_Yes;
  937. }
  938. else
  939. {
  940. this.seikeiken = Seikeiken.Yes_Yes;
  941. }
  942. }
  943. else
  944. {
  945. if (this.seikeiken == Seikeiken.No_No || this.seikeiken == Seikeiken.Yes_No)
  946. {
  947. return;
  948. }
  949. if (this.seikeiken == Seikeiken.Yes_Yes)
  950. {
  951. this.seikeiken = Seikeiken.Yes_No;
  952. }
  953. else
  954. {
  955. this.seikeiken = Seikeiken.No_No;
  956. }
  957. }
  958. }
  959. public bool ChangeJobClass(int jobClassId)
  960. {
  961. return this.ChangeJobClass(JobClass.GetData(jobClassId));
  962. }
  963. public bool ChangeJobClass(JobClass.Data data)
  964. {
  965. if (data == null)
  966. {
  967. return false;
  968. }
  969. if (!JobClass.IsEnabled(data.id))
  970. {
  971. Debug.LogError("ジョブクラス[" + data.drawName + "]は有効ではないので設定できません");
  972. return false;
  973. }
  974. if (!this.jobClass.Contains(data.id))
  975. {
  976. Debug.LogError("ジョブクラス[" + data.drawName + "]は取得していないので設定できません");
  977. return false;
  978. }
  979. this.selectedJobClass = this.jobClass.Get(data.id);
  980. return true;
  981. }
  982. public bool ChangeYotogiClass(int yotogiClassId)
  983. {
  984. return this.ChangeYotogiClass(YotogiClass.GetData(yotogiClassId));
  985. }
  986. public bool ChangeYotogiClass(YotogiClass.Data data)
  987. {
  988. if (data == null)
  989. {
  990. return false;
  991. }
  992. if (!YotogiClass.IsEnabled(data.id))
  993. {
  994. Debug.LogError("夜伽クラス[" + data.drawName + "]は有効ではないので設定できません");
  995. return false;
  996. }
  997. if (!this.yotogiClass.Contains(data.id))
  998. {
  999. Debug.LogError("夜伽クラス[" + data.drawName + "]は取得していないので設定できません");
  1000. return false;
  1001. }
  1002. this.selectedYotogiClass = this.yotogiClass.Get(data.id);
  1003. return true;
  1004. }
  1005. public Feature.Data AddFeature(int featureId)
  1006. {
  1007. return this.AddFeature(Feature.GetData(featureId));
  1008. }
  1009. public Feature.Data AddFeature(Feature.Data data)
  1010. {
  1011. if (data != null && Feature.IsEnabled(data.id) && !this.features_.ContainsKey(data.id))
  1012. {
  1013. this.features_.Add(data.id, data);
  1014. }
  1015. return data;
  1016. }
  1017. public void RemoveFeature(int featureId)
  1018. {
  1019. this.RemoveFeature(Feature.GetData(featureId));
  1020. }
  1021. public void RemoveFeature(Feature.Data data)
  1022. {
  1023. if (data != null && this.features_.ContainsKey(data.id))
  1024. {
  1025. this.features_.Remove(data.id);
  1026. }
  1027. }
  1028. public Propensity.Data AddPropensity(int propensityId)
  1029. {
  1030. return this.AddPropensity(Propensity.GetData(propensityId));
  1031. }
  1032. public Propensity.Data AddPropensity(Propensity.Data data)
  1033. {
  1034. if (data != null && Propensity.IsEnabled(data.id) && !this.propensitys_.ContainsKey(data.id))
  1035. {
  1036. this.propensitys_.Add(data.id, data);
  1037. }
  1038. return data;
  1039. }
  1040. public void RemovePropensity(int featureId)
  1041. {
  1042. this.RemovePropensity(Propensity.GetData(featureId));
  1043. }
  1044. public void RemovePropensity(Propensity.Data data)
  1045. {
  1046. if (data != null && this.propensitys_.ContainsKey(data.id))
  1047. {
  1048. this.propensitys_.Remove(data.id);
  1049. }
  1050. }
  1051. public void SetWorkData(Dictionary<int, WorkData> src)
  1052. {
  1053. this.workDatas_.Clear();
  1054. if (src == null)
  1055. {
  1056. return;
  1057. }
  1058. foreach (KeyValuePair<int, WorkData> keyValuePair in src)
  1059. {
  1060. this.workDatas_.Add(keyValuePair.Key, keyValuePair.Value);
  1061. }
  1062. }
  1063. public void AddWorkDataPlayCount(int id, int addPlayCount)
  1064. {
  1065. if (!this.workDatas_.ContainsKey(id))
  1066. {
  1067. this.workDatas_.Add(id, new WorkData());
  1068. }
  1069. this.workDatas_[id].playCount += (uint)addPlayCount;
  1070. }
  1071. public void SetWorkDataLevel(int id, int level)
  1072. {
  1073. if (!this.workDatas_.ContainsKey(id))
  1074. {
  1075. this.workDatas_.Add(id, new WorkData());
  1076. }
  1077. this.workDatas_[id].level = level;
  1078. }
  1079. public void SetFlag(string flagName, int value)
  1080. {
  1081. if (!this.flags_.ContainsKey(flagName))
  1082. {
  1083. this.flags_.Add(flagName, value);
  1084. }
  1085. else
  1086. {
  1087. this.flags_[flagName] = value;
  1088. }
  1089. }
  1090. public void AddFlag(string flagName, int value)
  1091. {
  1092. if (!this.flags_.ContainsKey(flagName))
  1093. {
  1094. this.flags_.Add(flagName, value);
  1095. }
  1096. else
  1097. {
  1098. Dictionary<string, int> dictionary;
  1099. (dictionary = this.flags_)[flagName] = dictionary[flagName] + value;
  1100. }
  1101. }
  1102. public int GetFlag(string flagName)
  1103. {
  1104. return (!this.flags_.ContainsKey(flagName)) ? 0 : this.flags_[flagName];
  1105. }
  1106. public bool RemoveFlag(string flagName)
  1107. {
  1108. return this.flags_.ContainsKey(flagName) && this.flags_.Remove(flagName);
  1109. }
  1110. public void RemoveFlagAll()
  1111. {
  1112. this.flags_.Clear();
  1113. }
  1114. public void SetEventEndFlag(int id, bool value)
  1115. {
  1116. if (this.eventEndFlags_.ContainsKey(id))
  1117. {
  1118. this.eventEndFlags_[id] = value;
  1119. }
  1120. else
  1121. {
  1122. this.eventEndFlags_.Add(id, value);
  1123. }
  1124. }
  1125. public void RemoveEventEndFlag(int id)
  1126. {
  1127. if (this.eventEndFlags_.ContainsKey(id))
  1128. {
  1129. this.eventEndFlags_.Remove(id);
  1130. }
  1131. }
  1132. public bool GetEventEndFlag(int id)
  1133. {
  1134. return this.eventEndFlags_.ContainsKey(id) && this.eventEndFlags_[id];
  1135. }
  1136. public void RemoveEventEndFlagAll()
  1137. {
  1138. this.eventEndFlags_.Clear();
  1139. }
  1140. public BonusStatus GetBonusStatusAsFeatureAndPropensitys()
  1141. {
  1142. BonusStatus result = new BonusStatus();
  1143. foreach (Feature.Data data in this.features.GetValueArray())
  1144. {
  1145. if (data.bonusCorrection != null)
  1146. {
  1147. data.bonusCorrection.ApplyAddBonusStatus(result);
  1148. }
  1149. }
  1150. foreach (Propensity.Data data2 in this.propensitys.GetValueArray())
  1151. {
  1152. if (data2.bonusCorrection != null)
  1153. {
  1154. data2.bonusCorrection.ApplyAddBonusStatus(result);
  1155. }
  1156. }
  1157. return result;
  1158. }
  1159. public void UpdateBodyParam()
  1160. {
  1161. if (this.maid.Parts == null)
  1162. {
  1163. return;
  1164. }
  1165. Func<MPN, float> func = (MPN mpn) => (float)this.maid.GetProp(mpn).value;
  1166. 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;
  1167. float num2 = 55f * func(MPN.RegFat) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1168. float num3 = 55f * func(MPN.RegMeet) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1169. float num4 = 10f * func(MPN.UdeScl) * 0.1f;
  1170. float num5 = 5f * func(MPN.ArmL) + 5f * func(MPN.sintyou) * 1f + 5f * func(MPN.UdeScl) * 0.5f;
  1171. float num6 = 70f * func(MPN.Hara) + 50f * func(MPN.sintyou) * 0.7f + 50f * func(MPN.west) * func(MPN.Hara) * 0.005f;
  1172. float num7 = 10f * func(MPN.MuneL) * 2f;
  1173. float num8 = num7 * func(MPN.MuneTare) * 0.005f;
  1174. 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;
  1175. float num10 = 10f * func(MPN.koshi) + 7f * func(MPN.koshi) * func(MPN.sintyou) * 0.04f;
  1176. float num11 = 4f * func(MPN.kata);
  1177. float num12 = 38000f + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 + num11;
  1178. this.body.height = (int)(num / 10f);
  1179. this.body.weight = (int)(num12 / 1000f);
  1180. float num13 = 70f + func(MPN.MuneL) * 0.31f + func(MPN.west) * 0.02f;
  1181. num13 -= 5f * (func(MPN.MuneS) / 100f);
  1182. this.body.bust = (int)num13;
  1183. this.body.waist = (int)(40f + func(MPN.west) * 0.25f + func(MPN.Hara) * 0.35f);
  1184. this.body.hip = (int)(65f + func(MPN.koshi) * 0.3f + func(MPN.RegFat) * 0.025f + func(MPN.RegMeet) * 0.025f);
  1185. if (num13 < 80f)
  1186. {
  1187. this.body.cup = "A";
  1188. }
  1189. else if (110f <= num13)
  1190. {
  1191. this.body.cup = "N";
  1192. }
  1193. else
  1194. {
  1195. char[] array = new char[]
  1196. {
  1197. 'B',
  1198. 'C',
  1199. 'D',
  1200. 'E',
  1201. 'F',
  1202. 'G',
  1203. 'H',
  1204. 'I',
  1205. 'J',
  1206. 'K',
  1207. 'L',
  1208. 'M'
  1209. };
  1210. this.body.cup = array[(int)((num13 - 80f) / 2.5f)].ToString();
  1211. }
  1212. }
  1213. public void UpdateClassBonusStatus()
  1214. {
  1215. this.bonusStatus.Clear();
  1216. if (this.heroineType == HeroineType.Sub)
  1217. {
  1218. return;
  1219. }
  1220. foreach (KeyValuePair<int, ClassData<JobClass.Data>> keyValuePair in this.jobClass.GetAllDatas())
  1221. {
  1222. ClassData<JobClass.Data> value = keyValuePair.Value;
  1223. value.data.levelBonuss[value.level - 1].ApplyAddBonusStatus(this.bonusStatus);
  1224. }
  1225. }
  1226. public void Serialize(BinaryWriter binary)
  1227. {
  1228. this.SetFlag("__1330_specialrelation__", (int)this.specialRelation);
  1229. binary.Write("CM3D2_MAID_STATUS");
  1230. binary.Write(1470);
  1231. binary.Write(this.guid);
  1232. binary.Write(this.creationTime);
  1233. binary.Write((short)this.heroineType);
  1234. if (this.heroineType == HeroineType.Sub)
  1235. {
  1236. binary.Write(this.subCharaData.id);
  1237. }
  1238. binary.Write(this.mainChara);
  1239. binary.Write(this.employmentDay_);
  1240. binary.Write(this.lastName);
  1241. binary.Write(this.firstName);
  1242. binary.Write(this.profileComment);
  1243. binary.Write(this.freeComment);
  1244. binary.Write((short)this.initSeikeiken);
  1245. binary.Write((short)this.seikeiken);
  1246. binary.Write(this.personal_.id);
  1247. binary.Write((short)this.contract);
  1248. this.body.Serialize(binary);
  1249. binary.Write((short)this.relation_);
  1250. binary.Write(this.playCountYotogi_);
  1251. binary.Write(this.playCountNightWork_);
  1252. binary.Write(this.likability_);
  1253. binary.Write(this.studyRate_);
  1254. binary.Write(this.maxHp_);
  1255. binary.Write(this.currentHp_);
  1256. binary.Write(this.maxMind_);
  1257. binary.Write(this.currentMind_);
  1258. binary.Write(this.maxReason_);
  1259. binary.Write(this.currentReason_);
  1260. binary.Write(this.reception_);
  1261. binary.Write(this.care_);
  1262. binary.Write(this.lovely_);
  1263. binary.Write(this.elegance_);
  1264. binary.Write(this.charm_);
  1265. binary.Write(this.cooking_);
  1266. binary.Write(this.vocal_);
  1267. binary.Write(this.dance_);
  1268. binary.Write(this.appealPoint_);
  1269. binary.Write(this.inyoku_);
  1270. binary.Write(this.m_value_);
  1271. binary.Write(this.hentai_);
  1272. binary.Write(this.housi_);
  1273. binary.Write(this.teachRate_);
  1274. binary.Write(this.sexPlayNumberOfPeople_);
  1275. binary.Write(this.popularRank_);
  1276. binary.Write(this.sales_);
  1277. binary.Write(this.totalSales_);
  1278. binary.Write(this.evaluation_);
  1279. binary.Write(this.totalEvaluation_);
  1280. binary.Write(this.leader);
  1281. binary.Write(this.isFirstNameCall);
  1282. binary.Write(this.enabledYotogiStatusLock);
  1283. binary.Write((short)this.eyePartsTab);
  1284. binary.Write(this.noonWorkId);
  1285. binary.Write(this.nightWorkId);
  1286. binary.Write(this.noonCommu);
  1287. binary.Write(this.nightCommu);
  1288. binary.Write((short)this.features_.Count);
  1289. foreach (KeyValuePair<int, Feature.Data> keyValuePair in this.features_)
  1290. {
  1291. binary.Write(keyValuePair.Key);
  1292. }
  1293. binary.Write((short)this.propensitys_.Count);
  1294. foreach (KeyValuePair<int, Propensity.Data> keyValuePair2 in this.propensitys_)
  1295. {
  1296. binary.Write(keyValuePair2.Key);
  1297. }
  1298. this.jobClass.Serialize(binary);
  1299. this.yotogiClass.Serialize(binary);
  1300. this.yotogiSkill.Serialize(binary);
  1301. binary.Write((short)this.workDatas_.Count);
  1302. foreach (KeyValuePair<int, WorkData> keyValuePair3 in this.workDatas_)
  1303. {
  1304. binary.Write(keyValuePair3.Key);
  1305. keyValuePair3.Value.Serialize(binary);
  1306. }
  1307. binary.Write((short)this.flags_.Count);
  1308. foreach (KeyValuePair<string, int> keyValuePair4 in this.flags_)
  1309. {
  1310. binary.Write(keyValuePair4.Key);
  1311. binary.Write(keyValuePair4.Value);
  1312. }
  1313. binary.Write((short)this.eventEndFlags_.Count);
  1314. foreach (KeyValuePair<int, bool> keyValuePair5 in this.eventEndFlags_)
  1315. {
  1316. binary.Write(keyValuePair5.Key);
  1317. binary.Write(keyValuePair5.Value);
  1318. }
  1319. binary.Write((short)this.partsDic.Count);
  1320. foreach (KeyValuePair<string, string> keyValuePair6 in this.partsDic)
  1321. {
  1322. binary.Write(keyValuePair6.Key);
  1323. binary.Write(keyValuePair6.Value);
  1324. }
  1325. binary.Write(this.OldStatus != null);
  1326. if (this.OldStatus != null)
  1327. {
  1328. this.OldStatus.Serialize(binary);
  1329. }
  1330. binary.Write(this.selectedJobClass != null);
  1331. if (this.selectedJobClass != null)
  1332. {
  1333. binary.Write(this.selectedJobClass.data.id);
  1334. }
  1335. binary.Write(this.selectedYotogiClass != null);
  1336. if (this.selectedYotogiClass != null)
  1337. {
  1338. binary.Write(this.selectedYotogiClass.data.id);
  1339. }
  1340. binary.Write((short)this.additionalRelation_);
  1341. binary.Write(this.nickName_);
  1342. binary.Write(this.age);
  1343. binary.Write(2177629204U);
  1344. }
  1345. public void Deserialize(BinaryReader binary)
  1346. {
  1347. string a = binary.ReadString();
  1348. NDebug.Assert(a == "CM3D2_MAID_STATUS", "メイドパラメータのヘッダーが不正です。");
  1349. this.OldStatus = null;
  1350. int num = binary.ReadInt32();
  1351. this.guid = binary.ReadString();
  1352. this.creationTime = binary.ReadString();
  1353. string text = this.creationTime.Replace(":", string.Empty);
  1354. text = text.Replace(" ", string.Empty);
  1355. this.creationTimeNum = ulong.Parse(text);
  1356. this.heroineType = (HeroineType)binary.ReadInt16();
  1357. if (this.heroineType == HeroineType.Sub)
  1358. {
  1359. int id = binary.ReadInt32();
  1360. this.subCharaData = SubMaid.GetData(id);
  1361. }
  1362. if (205 < num)
  1363. {
  1364. this.mainChara = binary.ReadBoolean();
  1365. }
  1366. this.employmentDay_ = binary.ReadInt32();
  1367. this.lastName = binary.ReadString();
  1368. this.firstName = binary.ReadString();
  1369. this.profileComment = binary.ReadString();
  1370. this.freeComment = binary.ReadString();
  1371. this.initSeikeiken = (Seikeiken)binary.ReadInt16();
  1372. this.seikeiken = (Seikeiken)binary.ReadInt16();
  1373. int num2 = binary.ReadInt32();
  1374. if (Personal.IsEnabled(num2))
  1375. {
  1376. this.SetPersonal(num2);
  1377. }
  1378. else
  1379. {
  1380. Debug.LogWarning(this.fullNameJpStyle + " : ロードされたデータの性格[" + Personal.GetData(num2).drawName + "]は有効ではないので初期性格に強制変更しました");
  1381. this.SetPersonal(Personal.GetData("Muku"));
  1382. }
  1383. if (207 < num)
  1384. {
  1385. this.contract = (Contract)binary.ReadInt16();
  1386. }
  1387. this.body.Deserialize(binary, num);
  1388. this.relation_ = (Relation)binary.ReadInt16();
  1389. if (num < 215)
  1390. {
  1391. binary.ReadInt16();
  1392. }
  1393. this.playCountYotogi_ = binary.ReadUInt16();
  1394. this.playCountNightWork_ = binary.ReadUInt16();
  1395. this.likability_ = binary.ReadUInt16();
  1396. this.studyRate_ = binary.ReadUInt16();
  1397. this.maxHp_ = binary.ReadUInt16();
  1398. this.currentHp_ = binary.ReadUInt16();
  1399. this.maxMind_ = binary.ReadUInt16();
  1400. this.currentMind_ = binary.ReadUInt16();
  1401. if (211 < num)
  1402. {
  1403. this.maxReason_ = binary.ReadUInt16();
  1404. this.currentReason_ = binary.ReadUInt16();
  1405. }
  1406. this.reception_ = binary.ReadUInt16();
  1407. this.care_ = binary.ReadUInt16();
  1408. this.lovely_ = binary.ReadUInt16();
  1409. this.elegance_ = binary.ReadUInt16();
  1410. this.charm_ = binary.ReadUInt16();
  1411. this.cooking_ = binary.ReadUInt16();
  1412. this.vocal_ = binary.ReadUInt16();
  1413. this.dance_ = binary.ReadUInt16();
  1414. this.appealPoint_ = binary.ReadUInt16();
  1415. this.inyoku_ = binary.ReadUInt16();
  1416. this.m_value_ = binary.ReadUInt16();
  1417. this.hentai_ = binary.ReadUInt16();
  1418. this.housi_ = binary.ReadUInt16();
  1419. this.teachRate_ = binary.ReadUInt16();
  1420. this.sexPlayNumberOfPeople_ = binary.ReadUInt16();
  1421. this.popularRank_ = binary.ReadUInt16();
  1422. this.sales_ = binary.ReadInt64();
  1423. this.totalSales_ = binary.ReadInt64();
  1424. if (207 < num)
  1425. {
  1426. this.evaluation_ = binary.ReadUInt16();
  1427. this.totalEvaluation_ = binary.ReadInt64();
  1428. }
  1429. this.leader = binary.ReadBoolean();
  1430. this.isFirstNameCall = binary.ReadBoolean();
  1431. if (202 < num)
  1432. {
  1433. this.enabledYotogiStatusLock = binary.ReadBoolean();
  1434. }
  1435. this.eyePartsTab = (EyePartsTab)binary.ReadInt16();
  1436. this.noonWorkId = binary.ReadInt32();
  1437. this.nightWorkId = binary.ReadInt32();
  1438. this.noonCommu = binary.ReadBoolean();
  1439. this.nightCommu = binary.ReadBoolean();
  1440. int num3 = (int)binary.ReadInt16();
  1441. this.features_.Clear();
  1442. for (int i = 0; i < num3; i++)
  1443. {
  1444. int num4 = binary.ReadInt32();
  1445. if (Feature.IsEnabled(num4))
  1446. {
  1447. this.features_.Add(num4, Feature.GetData(num4));
  1448. }
  1449. }
  1450. num3 = (int)binary.ReadInt16();
  1451. this.propensitys_.Clear();
  1452. for (int j = 0; j < num3; j++)
  1453. {
  1454. int num5 = binary.ReadInt32();
  1455. if (Propensity.IsEnabled(num5))
  1456. {
  1457. this.propensitys_.Add(num5, Propensity.GetData(num5));
  1458. }
  1459. }
  1460. this.jobClass.Deserialize(binary, num);
  1461. this.yotogiClass.Deserialize(binary, num);
  1462. this.UpdateClassBonusStatus();
  1463. if (211 >= num)
  1464. {
  1465. num3 = (int)binary.ReadInt16();
  1466. for (int k = 0; k < num3; k++)
  1467. {
  1468. binary.ReadInt32();
  1469. binary.ReadUInt32();
  1470. binary.ReadUInt16();
  1471. binary.ReadInt32();
  1472. binary.ReadInt32();
  1473. binary.ReadInt32();
  1474. binary.ReadInt32();
  1475. }
  1476. }
  1477. else
  1478. {
  1479. this.yotogiSkill.Deserialize(binary, num);
  1480. }
  1481. num3 = (int)binary.ReadInt16();
  1482. this.workDatas_.Clear();
  1483. for (int l = 0; l < num3; l++)
  1484. {
  1485. int key = binary.ReadInt32();
  1486. WorkData workData = new WorkData();
  1487. workData.Deserialize(binary, num);
  1488. this.workDatas_.Add(key, workData);
  1489. }
  1490. num3 = (int)binary.ReadInt16();
  1491. this.flags_.Clear();
  1492. for (int m = 0; m < num3; m++)
  1493. {
  1494. string key2 = binary.ReadString();
  1495. int value = binary.ReadInt32();
  1496. this.flags_.Add(key2, value);
  1497. }
  1498. if (205 < num)
  1499. {
  1500. num3 = (int)binary.ReadInt16();
  1501. this.eventEndFlags_.Clear();
  1502. for (int n = 0; n < num3; n++)
  1503. {
  1504. int key3 = binary.ReadInt32();
  1505. bool value2 = binary.ReadBoolean();
  1506. this.eventEndFlags_.Add(key3, value2);
  1507. }
  1508. }
  1509. num3 = (int)binary.ReadInt16();
  1510. this.partsDic.Clear();
  1511. for (int num6 = 0; num6 < num3; num6++)
  1512. {
  1513. string key4 = binary.ReadString();
  1514. string value3 = binary.ReadString();
  1515. this.partsDic.Add(key4, value3);
  1516. }
  1517. if (207 < num)
  1518. {
  1519. bool flag = binary.ReadBoolean();
  1520. if (flag)
  1521. {
  1522. this.OldStatus = new Status(this);
  1523. this.OldStatus.Deserialize(binary, num);
  1524. }
  1525. }
  1526. this.selectedJobClass = null;
  1527. if (binary.ReadBoolean())
  1528. {
  1529. int id2 = binary.ReadInt32();
  1530. if (this.jobClass.Contains(id2))
  1531. {
  1532. this.selectedJobClass = this.jobClass.Get(id2);
  1533. }
  1534. }
  1535. if (this.selectedJobClass == null)
  1536. {
  1537. ClassData<JobClass.Data>[] valueArray = this.jobClass.datas.GetValueArray();
  1538. int num7 = 0;
  1539. if (num7 < valueArray.Length)
  1540. {
  1541. ClassData<JobClass.Data> selectedJobClass = valueArray[num7];
  1542. this.selectedJobClass = selectedJobClass;
  1543. }
  1544. }
  1545. this.selectedYotogiClass = null;
  1546. if (binary.ReadBoolean())
  1547. {
  1548. int id3 = binary.ReadInt32();
  1549. if (this.yotogiClass.Contains(id3))
  1550. {
  1551. this.selectedYotogiClass = this.yotogiClass.Get(id3);
  1552. }
  1553. }
  1554. if (this.selectedYotogiClass == null)
  1555. {
  1556. ClassData<YotogiClass.Data>[] valueArray2 = this.yotogiClass.datas.GetValueArray();
  1557. int num8 = 0;
  1558. if (num8 < valueArray2.Length)
  1559. {
  1560. ClassData<YotogiClass.Data> selectedYotogiClass = valueArray2[num8];
  1561. this.selectedYotogiClass = selectedYotogiClass;
  1562. }
  1563. }
  1564. this.additionalRelation_ = AdditionalRelation.Null;
  1565. if (1270 <= num)
  1566. {
  1567. this.additionalRelation_ = (AdditionalRelation)binary.ReadInt16();
  1568. if (this.additionalRelation_ != AdditionalRelation.Null && this.heroineType == HeroineType.Sub)
  1569. {
  1570. this.additionalRelation_ = AdditionalRelation.Null;
  1571. }
  1572. this.nickName_ = binary.ReadString();
  1573. this.age = binary.ReadInt32();
  1574. if (this.additionalRelation_ == AdditionalRelation.Vigilance)
  1575. {
  1576. if (this.relation == Relation.Trust || this.relation == Relation.Lover)
  1577. {
  1578. this.additionalRelation_ = AdditionalRelation.Null;
  1579. }
  1580. if (this.relation == Relation.Lover)
  1581. {
  1582. if ((this.personal.uniqueName == "Muku" && this.GetEventEndFlag(5040)) || (this.personal.uniqueName == "Majime" && this.GetEventEndFlag(5140)) || (this.personal.uniqueName == "Rindere" && this.GetEventEndFlag(5240)))
  1583. {
  1584. this.additionalRelation_ = AdditionalRelation.LoverPlus;
  1585. }
  1586. }
  1587. 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))))
  1588. {
  1589. this.additionalRelation_ = AdditionalRelation.Null;
  1590. }
  1591. }
  1592. }
  1593. if (!PluginData.IsEnabled("GP002") || this.GetFlag("__1330_specialrelation__") == 0)
  1594. {
  1595. this.specialRelation = SpecialRelation.Null;
  1596. }
  1597. else
  1598. {
  1599. this.specialRelation = (SpecialRelation)this.GetFlag("__1330_specialrelation__");
  1600. }
  1601. this.RemoveFlag("__1330_specialrelation__");
  1602. uint num9 = binary.ReadUInt32();
  1603. NDebug.Assert(2177629204U == num9, "メイドパラメータのロードに失敗しました");
  1604. if (num <= 1050)
  1605. {
  1606. YotogiClass.Data data = YotogiClass.GetData("Kokuhakuplay");
  1607. if (this.yotogiClass.Get(data) != null && this.contract != Contract.Free)
  1608. {
  1609. this.yotogiClass.Remove(data, true);
  1610. }
  1611. List<int> list = new List<int>();
  1612. foreach (YotogiSkillData yotogiSkillData in this.yotogiSkill.datas.GetValueArray())
  1613. {
  1614. YotogiClass.Data yotogi_class = yotogiSkillData.data.getcondition_data.yotogi_class;
  1615. if (yotogi_class != null && !this.yotogiClass.Contains(yotogi_class) && yotogi_class.learnConditions.requestContracts.Count != 0 && !yotogi_class.learnConditions.requestContracts.Contains(this.contract))
  1616. {
  1617. list.Add(yotogiSkillData.id);
  1618. }
  1619. }
  1620. foreach (int skillId in list)
  1621. {
  1622. this.yotogiSkill.Remove(skillId);
  1623. }
  1624. }
  1625. if (num == 1380 && this.specialRelation == SpecialRelation.Null)
  1626. {
  1627. List<int> list2 = new List<int>();
  1628. foreach (YotogiSkillData yotogiSkillData2 in this.yotogiSkill.datas.GetValueArray())
  1629. {
  1630. if (yotogiSkillData2.data.getcondition_data.requestMarried)
  1631. {
  1632. list2.Add(yotogiSkillData2.id);
  1633. }
  1634. }
  1635. foreach (int skillId2 in list2)
  1636. {
  1637. this.yotogiSkill.Remove(skillId2);
  1638. }
  1639. }
  1640. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1641. foreach (Skill.Data data2 in learnPossibleSkills)
  1642. {
  1643. if (data2.specialConditionType == Skill.Data.SpecialConditionType.GP01Recollect || data2.specialConditionType == Skill.Data.SpecialConditionType.GP02Recollect)
  1644. {
  1645. this.yotogiSkill.Add(data2);
  1646. }
  1647. }
  1648. }
  1649. public void Deserialize(StatusReader oldStatusReader, bool convertYotogiSkill)
  1650. {
  1651. Func<int, int> func = (int value) => (int)System.Math.Floor((double)((float)value * 0.3f));
  1652. this.OldStatus = new Status(this);
  1653. this.creationTimeNum = oldStatusReader.creationTimeNum;
  1654. this.guid = oldStatusReader.guid;
  1655. this.heroineType = HeroineType.Transfer;
  1656. this.mainChara = false;
  1657. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  1658. this.lastName = oldStatusReader.lastName;
  1659. this.firstName = oldStatusReader.firstName;
  1660. this.freeComment = oldStatusReader.freeComment;
  1661. this.initSeikeiken = oldStatusReader.initSeikeiken;
  1662. this.seikeiken = oldStatusReader.seikeiken;
  1663. string uniqueName = oldStatusReader.personal.ToString();
  1664. this.SetPersonal(Personal.GetData(uniqueName));
  1665. this.contract = oldStatusReader.contract;
  1666. this.additionalRelation = AdditionalRelation.Null;
  1667. this.body.height = oldStatusReader.body.height;
  1668. this.body.weight = oldStatusReader.body.weight;
  1669. this.body.bust = oldStatusReader.body.bust;
  1670. this.body.waist = oldStatusReader.body.waist;
  1671. this.body.hip = oldStatusReader.body.hip;
  1672. this.body.cup = oldStatusReader.body.cup;
  1673. if (oldStatusReader.relation == Relation.Tonus || oldStatusReader.relation == Relation.Contact)
  1674. {
  1675. this.relation_ = Relation.Contact;
  1676. }
  1677. else if (oldStatusReader.relation == Relation.Trust)
  1678. {
  1679. this.relation_ = Relation.Trust;
  1680. }
  1681. else
  1682. {
  1683. this.relation_ = Relation.Lover;
  1684. }
  1685. this.playCountYotogi = oldStatusReader.playCountYotogi;
  1686. this.playCountNightWork = oldStatusReader.playCountNightWork;
  1687. this.likability = oldStatusReader.likability;
  1688. this.studyRate = oldStatusReader.studyRate;
  1689. int num = 100;
  1690. this.baseMaxHp = num;
  1691. this.currentHp = num;
  1692. num = 100;
  1693. this.baseMaxMind = num;
  1694. this.currentMind = num;
  1695. this.baseReception = func(oldStatusReader.reception);
  1696. this.baseCare = func(oldStatusReader.care);
  1697. this.baseLovely = func(oldStatusReader.lovely);
  1698. this.baseElegance = func(oldStatusReader.elegance);
  1699. this.baseCharm = func(oldStatusReader.charm);
  1700. num = 0;
  1701. this.baseAppealPoint = num;
  1702. num = num;
  1703. this.baseDance = num;
  1704. num = num;
  1705. this.baseVocal = num;
  1706. this.baseCooking = num;
  1707. this.baseInyoku = func(oldStatusReader.inyoku);
  1708. this.baseMvalue = func(oldStatusReader.mvalue);
  1709. this.baseHentai = func(oldStatusReader.hentai);
  1710. this.baseHousi = func(oldStatusReader.housi);
  1711. this.baseTeachRate = func(oldStatusReader.teachRate);
  1712. this.sexPlayNumberOfPeople = oldStatusReader.sexPlayNumberOfPeople;
  1713. this.popularRank = 0;
  1714. num = 0;
  1715. this.evaluation = num;
  1716. this.sales = (long)num;
  1717. this.totalSales = oldStatusReader.totalSales;
  1718. this.totalEvaluations = oldStatusReader.totalEvaluations;
  1719. this.leader = false;
  1720. this.isFirstNameCall = oldStatusReader.isFirstNameCall;
  1721. this.eyePartsTab = EyePartsTab.LR;
  1722. this.noonWorkId = (this.nightWorkId = 0);
  1723. this.noonCommu = (this.nightCommu = false);
  1724. this.features_.Clear();
  1725. this.propensitys_.Clear();
  1726. this.jobClass.Clear();
  1727. this.yotogiClass.Clear();
  1728. this.yotogiSkill.Clear();
  1729. this.workDatas_.Clear();
  1730. this.flags_.Clear();
  1731. this.eventEndFlags_.Clear();
  1732. this.selectedJobClass = null;
  1733. AbstractClassData.ClassType classTypeFlags = AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New | AbstractClassData.ClassType.Old;
  1734. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1735. foreach (JobClass.Data data in learnPossibleClassDatas)
  1736. {
  1737. if (GameMain.Instance.CharacterMgr.status.IsJobClassOpenFlag(data.id))
  1738. {
  1739. this.jobClass.Add(data, false, false);
  1740. }
  1741. }
  1742. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1743. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  1744. {
  1745. if (GameMain.Instance.CharacterMgr.status.IsYotogiClassOpenFlag(data2.id))
  1746. {
  1747. this.yotogiClass.Add(data2, false, false);
  1748. }
  1749. }
  1750. foreach (StatusReader.ClassData classData in oldStatusReader.maidClassDatas)
  1751. {
  1752. if (classData.isHave && JobClass.IsEnabled(classData.classId) && !this.jobClass.Contains(classData.classId))
  1753. {
  1754. ClassData<JobClass.Data> classData2 = this.jobClass.Add(classData.classId, false, false);
  1755. if (classData2 != null)
  1756. {
  1757. classData2.expSystem.SetLevel(classData.level);
  1758. }
  1759. }
  1760. }
  1761. foreach (StatusReader.ClassData classData3 in oldStatusReader.yotogiClassDatas)
  1762. {
  1763. if (classData3.isHave && YotogiClass.IsEnabled(classData3.classId) && !this.yotogiClass.Contains(classData3.classId))
  1764. {
  1765. ClassData<YotogiClass.Data> classData4 = this.yotogiClass.Add(classData3.classId, false, false);
  1766. if (classData4 != null)
  1767. {
  1768. classData4.expSystem.SetLevel(classData3.level);
  1769. }
  1770. }
  1771. }
  1772. if (oldStatusReader.selectedMaidClass != null && this.jobClass.Contains(oldStatusReader.selectedMaidClass.classId))
  1773. {
  1774. this.selectedJobClass = this.jobClass.Get(oldStatusReader.selectedMaidClass.classId);
  1775. }
  1776. if (this.selectedJobClass == null)
  1777. {
  1778. ClassData<JobClass.Data>[] valueArray = this.jobClass.oldDatas.GetValueArray();
  1779. int num2 = 0;
  1780. if (num2 < valueArray.Length)
  1781. {
  1782. ClassData<JobClass.Data> selectedJobClass = valueArray[num2];
  1783. this.selectedJobClass = selectedJobClass;
  1784. }
  1785. }
  1786. if (convertYotogiSkill)
  1787. {
  1788. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1789. foreach (Skill.Data data3 in learnPossibleSkills)
  1790. {
  1791. this.yotogiSkill.Add(data3.id);
  1792. }
  1793. foreach (KeyValuePair<int, StatusReader.SkillData> keyValuePair in oldStatusReader.yotogiSkillDatas)
  1794. {
  1795. int id = keyValuePair.Value.id;
  1796. int level = keyValuePair.Value.level;
  1797. uint playCount = keyValuePair.Value.playCount;
  1798. if (!this.yotogiSkill.Contains(id) && Skill.Old.Contains(id))
  1799. {
  1800. this.yotogiSkill.Add(id);
  1801. }
  1802. YotogiSkillData yotogiSkillData = this.yotogiSkill.Get(id);
  1803. if (yotogiSkillData != null && yotogiSkillData.oldData != null)
  1804. {
  1805. yotogiSkillData.expSystem.SetLevel(level);
  1806. yotogiSkillData.playCount = playCount;
  1807. }
  1808. }
  1809. }
  1810. foreach (KeyValuePair<int, StatusReader.WorkData> keyValuePair2 in oldStatusReader.workDatas)
  1811. {
  1812. this.workDatas_.Add(keyValuePair2.Key, keyValuePair2.Value.toNewWorkData());
  1813. }
  1814. foreach (int num3 in oldStatusReader.features)
  1815. {
  1816. StatusReader.Feature feature = (StatusReader.Feature)num3;
  1817. string uniqueName2 = feature.ToString();
  1818. this.AddFeature(Feature.GetData(uniqueName2));
  1819. }
  1820. this.OldStatus.employmentElapsedDay = oldStatusReader.employmentElapsedDay;
  1821. this.OldStatus.relation = oldStatusReader.relation;
  1822. Dictionary<StatusReader.Propensity, string> dictionary = new Dictionary<StatusReader.Propensity, string>();
  1823. dictionary.Add(StatusReader.Propensity.淫乱, "敏感体質");
  1824. dictionary.Add(StatusReader.Propensity.変態, "変態の素質");
  1825. dictionary.Add(StatusReader.Propensity.飲精好き, "ごっくん大好き");
  1826. dictionary.Add(StatusReader.Propensity.奉仕好き, "桃色泡姫");
  1827. dictionary.Add(StatusReader.Propensity.M女, "ドMの素質");
  1828. dictionary.Add(StatusReader.Propensity.中出し好き, "中出し大好き");
  1829. foreach (int num4 in oldStatusReader.propensitys)
  1830. {
  1831. StatusReader.Propensity key = (StatusReader.Propensity)num4;
  1832. if (dictionary.ContainsKey(key))
  1833. {
  1834. this.AddPropensity(Propensity.GetData(dictionary[key]));
  1835. }
  1836. }
  1837. if (1000 <= oldStatusReader.sexual.curi)
  1838. {
  1839. this.AddPropensity(Propensity.GetData("敏感なクリトリス"));
  1840. }
  1841. this.partsDic = new Dictionary<string, string>(oldStatusReader.partsDic);
  1842. this.OldStatus.isMarriage = (oldStatusReader.flags.ContainsKey("_maid_param_marriage_flag") && oldStatusReader.flags["_maid_param_marriage_flag"] != 0);
  1843. this.OldStatus.isNewWife = (oldStatusReader.flags.ContainsKey("_maid_param_newwife_flag") && oldStatusReader.flags["_maid_param_newwife_flag"] != 0);
  1844. foreach (KeyValuePair<string, int> keyValuePair3 in oldStatusReader.flags)
  1845. {
  1846. this.OldStatus.AddFlag(keyValuePair3.Key, keyValuePair3.Value);
  1847. }
  1848. if (!GameMain.Instance.CharacterMgr.status.isOldPlayer)
  1849. {
  1850. this.likability = 0;
  1851. this.relation_ = Relation.Contact;
  1852. this.OldStatus.isMarriage = false;
  1853. this.OldStatus.isNewWife = false;
  1854. }
  1855. this.profileComment = MaidProfile.Create(this.maid, true);
  1856. }
  1857. public const int MaidPointUpStatus = 20;
  1858. public const int NullID = -2147483648;
  1859. private const uint SaveDataCheckCode = 2177629204U;
  1860. public HeroineType heroineType;
  1861. public bool mainChara;
  1862. public SubMaid.Data subCharaData;
  1863. public string profileComment;
  1864. public int age;
  1865. public Seikeiken initSeikeiken;
  1866. public Seikeiken seikeiken;
  1867. public Contract contract;
  1868. public BodyData body;
  1869. public SpecialRelation specialRelation;
  1870. public int noonWorkId;
  1871. public int nightWorkId;
  1872. public bool noonCommu;
  1873. public bool nightCommu;
  1874. public bool leader;
  1875. public bool isFirstNameCall;
  1876. public bool enabledYotogiStatusLock;
  1877. public EyePartsTab eyePartsTab;
  1878. private Dictionary<int, Feature.Data> features_;
  1879. private Dictionary<int, Propensity.Data> propensitys_;
  1880. private BonusStatus bonusStatus;
  1881. private string freeComment_;
  1882. private Personal.Data personal_;
  1883. private int employmentDay_;
  1884. private string lastName_ = string.Empty;
  1885. private string firstName_ = string.Empty;
  1886. private string nickName_ = string.Empty;
  1887. private Relation relation_;
  1888. private AdditionalRelation additionalRelation_;
  1889. private ushort playCountYotogi_;
  1890. private ushort playCountNightWork_;
  1891. private ushort likability_;
  1892. private ushort studyRate_;
  1893. private int currentExcite_;
  1894. private int currentSensual_;
  1895. private ushort maxHp_;
  1896. private ushort currentHp_;
  1897. private ushort maxMind_;
  1898. private ushort currentMind_;
  1899. private ushort maxReason_;
  1900. private ushort currentReason_;
  1901. private ushort reception_;
  1902. private ushort care_;
  1903. private ushort lovely_;
  1904. private ushort elegance_;
  1905. private ushort charm_;
  1906. private ushort cooking_;
  1907. private ushort vocal_;
  1908. private ushort dance_;
  1909. private ushort appealPoint_;
  1910. private ushort inyoku_;
  1911. private ushort m_value_;
  1912. private ushort hentai_;
  1913. private ushort housi_;
  1914. private ushort teachRate_;
  1915. private ushort sexPlayNumberOfPeople_;
  1916. private ushort popularRank_;
  1917. private long sales_;
  1918. private long totalSales_;
  1919. private ushort evaluation_;
  1920. private long totalEvaluation_;
  1921. private Dictionary<int, WorkData> workDatas_;
  1922. private Dictionary<string, int> flags_;
  1923. private Dictionary<int, bool> eventEndFlags_;
  1924. private VoiceGroup voiceGroup_;
  1925. }
  1926. }