Status.cs 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152
  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(1550);
  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(1000);
  1359. binary.Write(2177629204U);
  1360. }
  1361. public void Deserialize(BinaryReader binary)
  1362. {
  1363. string a = binary.ReadString();
  1364. NDebug.Assert(a == "CM3D2_MAID_STATUS", "メイドパラメータのヘッダーが不正です。");
  1365. this.OldStatus = null;
  1366. int num = binary.ReadInt32();
  1367. this.guid = binary.ReadString();
  1368. this.creationTime = binary.ReadString();
  1369. string text = this.creationTime.Replace(":", string.Empty);
  1370. text = text.Replace(" ", string.Empty);
  1371. this.creationTimeNum = ulong.Parse(text);
  1372. this.heroineType = (HeroineType)binary.ReadInt16();
  1373. if (this.heroineType == HeroineType.Sub)
  1374. {
  1375. int id = binary.ReadInt32();
  1376. this.subCharaData = SubMaid.GetData(id);
  1377. }
  1378. if (205 < num)
  1379. {
  1380. this.mainChara = binary.ReadBoolean();
  1381. }
  1382. this.employmentDay_ = binary.ReadInt32();
  1383. this.lastName = binary.ReadString();
  1384. this.firstName = binary.ReadString();
  1385. this.profileComment = binary.ReadString();
  1386. this.freeComment = binary.ReadString();
  1387. this.initSeikeiken = (Seikeiken)binary.ReadInt16();
  1388. this.seikeiken = (Seikeiken)binary.ReadInt16();
  1389. int num2 = binary.ReadInt32();
  1390. if (Personal.IsEnabled(num2))
  1391. {
  1392. this.SetPersonal(num2);
  1393. }
  1394. else
  1395. {
  1396. Debug.LogWarning(this.fullNameJpStyle + " : ロードされたデータの性格[" + Personal.GetData(num2).drawName + "]は有効ではないので初期性格に強制変更しました");
  1397. this.SetPersonal(Personal.GetData("Muku"));
  1398. }
  1399. if (207 < num)
  1400. {
  1401. this.contract = (Contract)binary.ReadInt16();
  1402. }
  1403. this.body.Deserialize(binary, num);
  1404. this.relation_ = (Relation)binary.ReadInt16();
  1405. if (num < 215)
  1406. {
  1407. binary.ReadInt16();
  1408. }
  1409. this.playCountYotogi_ = binary.ReadUInt16();
  1410. this.playCountNightWork_ = binary.ReadUInt16();
  1411. this.likability_ = binary.ReadUInt16();
  1412. this.studyRate_ = binary.ReadUInt16();
  1413. this.maxHp_ = binary.ReadUInt16();
  1414. this.currentHp_ = binary.ReadUInt16();
  1415. this.maxMind_ = binary.ReadUInt16();
  1416. this.currentMind_ = binary.ReadUInt16();
  1417. if (211 < num)
  1418. {
  1419. this.maxReason_ = binary.ReadUInt16();
  1420. this.currentReason_ = binary.ReadUInt16();
  1421. }
  1422. this.reception_ = binary.ReadUInt16();
  1423. this.care_ = binary.ReadUInt16();
  1424. this.lovely_ = binary.ReadUInt16();
  1425. this.elegance_ = binary.ReadUInt16();
  1426. this.charm_ = binary.ReadUInt16();
  1427. this.cooking_ = binary.ReadUInt16();
  1428. this.vocal_ = binary.ReadUInt16();
  1429. this.dance_ = binary.ReadUInt16();
  1430. this.appealPoint_ = binary.ReadUInt16();
  1431. this.inyoku_ = binary.ReadUInt16();
  1432. this.m_value_ = binary.ReadUInt16();
  1433. this.hentai_ = binary.ReadUInt16();
  1434. this.housi_ = binary.ReadUInt16();
  1435. this.teachRate_ = binary.ReadUInt16();
  1436. this.sexPlayNumberOfPeople_ = binary.ReadUInt16();
  1437. this.popularRank_ = binary.ReadUInt16();
  1438. this.sales_ = binary.ReadInt64();
  1439. this.totalSales_ = binary.ReadInt64();
  1440. if (207 < num)
  1441. {
  1442. this.evaluation_ = binary.ReadUInt16();
  1443. this.totalEvaluation_ = binary.ReadInt64();
  1444. }
  1445. this.leader = binary.ReadBoolean();
  1446. this.isFirstNameCall = binary.ReadBoolean();
  1447. if (202 < num)
  1448. {
  1449. this.enabledYotogiStatusLock = binary.ReadBoolean();
  1450. }
  1451. this.eyePartsTab = (EyePartsTab)binary.ReadInt16();
  1452. this.noonWorkId = binary.ReadInt32();
  1453. this.nightWorkId = binary.ReadInt32();
  1454. this.noonCommu = binary.ReadBoolean();
  1455. this.nightCommu = binary.ReadBoolean();
  1456. int num3 = (int)binary.ReadInt16();
  1457. this.features_.Clear();
  1458. for (int i = 0; i < num3; i++)
  1459. {
  1460. int num4 = binary.ReadInt32();
  1461. if (Feature.IsEnabled(num4))
  1462. {
  1463. this.features_.Add(num4, Feature.GetData(num4));
  1464. }
  1465. }
  1466. num3 = (int)binary.ReadInt16();
  1467. this.propensitys_.Clear();
  1468. for (int j = 0; j < num3; j++)
  1469. {
  1470. int num5 = binary.ReadInt32();
  1471. if (Propensity.IsEnabled(num5))
  1472. {
  1473. this.propensitys_.Add(num5, Propensity.GetData(num5));
  1474. }
  1475. }
  1476. this.jobClass.Deserialize(binary, num);
  1477. this.yotogiClass.Deserialize(binary, num);
  1478. this.UpdateClassBonusStatus();
  1479. if (211 >= num)
  1480. {
  1481. num3 = (int)binary.ReadInt16();
  1482. for (int k = 0; k < num3; k++)
  1483. {
  1484. binary.ReadInt32();
  1485. binary.ReadUInt32();
  1486. binary.ReadUInt16();
  1487. binary.ReadInt32();
  1488. binary.ReadInt32();
  1489. binary.ReadInt32();
  1490. binary.ReadInt32();
  1491. }
  1492. }
  1493. else
  1494. {
  1495. this.yotogiSkill.Deserialize(binary, num);
  1496. }
  1497. num3 = (int)binary.ReadInt16();
  1498. this.workDatas_.Clear();
  1499. for (int l = 0; l < num3; l++)
  1500. {
  1501. int key = binary.ReadInt32();
  1502. WorkData workData = new WorkData();
  1503. workData.Deserialize(binary, num);
  1504. this.workDatas_.Add(key, workData);
  1505. }
  1506. num3 = (int)binary.ReadInt16();
  1507. this.flags_.Clear();
  1508. for (int m = 0; m < num3; m++)
  1509. {
  1510. string key2 = binary.ReadString();
  1511. int value = binary.ReadInt32();
  1512. this.flags_.Add(key2, value);
  1513. }
  1514. if (205 < num)
  1515. {
  1516. num3 = (int)binary.ReadInt16();
  1517. this.eventEndFlags_.Clear();
  1518. for (int n = 0; n < num3; n++)
  1519. {
  1520. int key3 = binary.ReadInt32();
  1521. bool value2 = binary.ReadBoolean();
  1522. this.eventEndFlags_.Add(key3, value2);
  1523. }
  1524. }
  1525. num3 = (int)binary.ReadInt16();
  1526. this.partsDic.Clear();
  1527. for (int num6 = 0; num6 < num3; num6++)
  1528. {
  1529. string key4 = binary.ReadString();
  1530. string value3 = binary.ReadString();
  1531. this.partsDic.Add(key4, value3);
  1532. }
  1533. if (207 < num)
  1534. {
  1535. bool flag = binary.ReadBoolean();
  1536. if (flag)
  1537. {
  1538. this.OldStatus = new Status(this);
  1539. this.OldStatus.Deserialize(binary, num);
  1540. }
  1541. }
  1542. this.selectedJobClass = null;
  1543. if (binary.ReadBoolean())
  1544. {
  1545. int id2 = binary.ReadInt32();
  1546. if (this.jobClass.Contains(id2))
  1547. {
  1548. this.selectedJobClass = this.jobClass.Get(id2);
  1549. }
  1550. }
  1551. if (this.selectedJobClass == null)
  1552. {
  1553. ClassData<JobClass.Data>[] valueArray = this.jobClass.datas.GetValueArray();
  1554. int num7 = 0;
  1555. if (num7 < valueArray.Length)
  1556. {
  1557. ClassData<JobClass.Data> selectedJobClass = valueArray[num7];
  1558. this.selectedJobClass = selectedJobClass;
  1559. }
  1560. }
  1561. this.selectedYotogiClass = null;
  1562. if (binary.ReadBoolean())
  1563. {
  1564. int id3 = binary.ReadInt32();
  1565. if (this.yotogiClass.Contains(id3))
  1566. {
  1567. this.selectedYotogiClass = this.yotogiClass.Get(id3);
  1568. }
  1569. }
  1570. if (this.selectedYotogiClass == null)
  1571. {
  1572. ClassData<YotogiClass.Data>[] valueArray2 = this.yotogiClass.datas.GetValueArray();
  1573. int num8 = 0;
  1574. if (num8 < valueArray2.Length)
  1575. {
  1576. ClassData<YotogiClass.Data> selectedYotogiClass = valueArray2[num8];
  1577. this.selectedYotogiClass = selectedYotogiClass;
  1578. }
  1579. }
  1580. this.additionalRelation_ = AdditionalRelation.Null;
  1581. if (1270 <= num)
  1582. {
  1583. this.additionalRelation_ = (AdditionalRelation)binary.ReadInt16();
  1584. if (this.additionalRelation_ != AdditionalRelation.Null && this.heroineType == HeroineType.Sub)
  1585. {
  1586. this.additionalRelation_ = AdditionalRelation.Null;
  1587. }
  1588. this.nickName_ = binary.ReadString();
  1589. this.age = binary.ReadInt32();
  1590. if (this.additionalRelation_ == AdditionalRelation.Vigilance)
  1591. {
  1592. if (this.relation == Relation.Trust || this.relation == Relation.Lover)
  1593. {
  1594. this.additionalRelation_ = AdditionalRelation.Null;
  1595. }
  1596. if (this.relation == Relation.Lover)
  1597. {
  1598. if ((this.personal.uniqueName == "Muku" && this.GetEventEndFlag(5040)) || (this.personal.uniqueName == "Majime" && this.GetEventEndFlag(5140)) || (this.personal.uniqueName == "Rindere" && this.GetEventEndFlag(5240)))
  1599. {
  1600. this.additionalRelation_ = AdditionalRelation.LoverPlus;
  1601. }
  1602. }
  1603. 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))))
  1604. {
  1605. this.additionalRelation_ = AdditionalRelation.Null;
  1606. }
  1607. }
  1608. }
  1609. if (!PluginData.IsEnabled("GP002") || this.GetFlag("__1330_specialrelation__") == 0)
  1610. {
  1611. this.specialRelation = SpecialRelation.Null;
  1612. }
  1613. else
  1614. {
  1615. this.specialRelation = (SpecialRelation)this.GetFlag("__1330_specialrelation__");
  1616. }
  1617. this.RemoveFlag("__1330_specialrelation__");
  1618. if (1540 <= num)
  1619. {
  1620. int num9 = binary.ReadInt32();
  1621. }
  1622. uint num10 = binary.ReadUInt32();
  1623. NDebug.Assert(2177629204U == num10, "メイドパラメータのロードに失敗しました");
  1624. if (num <= 1050)
  1625. {
  1626. YotogiClass.Data data = YotogiClass.GetData("Kokuhakuplay");
  1627. if (this.yotogiClass.Get(data) != null && this.contract != Contract.Free)
  1628. {
  1629. this.yotogiClass.Remove(data, true);
  1630. }
  1631. List<int> list = new List<int>();
  1632. foreach (YotogiSkillData yotogiSkillData in this.yotogiSkill.datas.GetValueArray())
  1633. {
  1634. YotogiClass.Data yotogi_class = yotogiSkillData.data.getcondition_data.yotogi_class;
  1635. if (yotogi_class != null && !this.yotogiClass.Contains(yotogi_class) && yotogi_class.learnConditions.requestContracts.Count != 0 && !yotogi_class.learnConditions.requestContracts.Contains(this.contract))
  1636. {
  1637. list.Add(yotogiSkillData.id);
  1638. }
  1639. }
  1640. foreach (int skillId in list)
  1641. {
  1642. this.yotogiSkill.Remove(skillId);
  1643. }
  1644. }
  1645. if (num == 1380 && this.specialRelation == SpecialRelation.Null)
  1646. {
  1647. List<int> list2 = new List<int>();
  1648. foreach (YotogiSkillData yotogiSkillData2 in this.yotogiSkill.datas.GetValueArray())
  1649. {
  1650. if (yotogiSkillData2.data.getcondition_data.requestMarried)
  1651. {
  1652. list2.Add(yotogiSkillData2.id);
  1653. }
  1654. }
  1655. foreach (int skillId2 in list2)
  1656. {
  1657. this.yotogiSkill.Remove(skillId2);
  1658. }
  1659. }
  1660. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1661. foreach (Skill.Data data2 in learnPossibleSkills)
  1662. {
  1663. if (data2.specialConditionType == Skill.Data.SpecialConditionType.GP01Recollect || data2.specialConditionType == Skill.Data.SpecialConditionType.GP02Recollect || data2.specialConditionType == Skill.Data.SpecialConditionType.OnlyRecollect)
  1664. {
  1665. this.yotogiSkill.Add(data2);
  1666. }
  1667. }
  1668. if (this.GetFlag("処女喪失シナリオ初回") == 1 && this.initSeikeiken != Seikeiken.No_No)
  1669. {
  1670. this.initSeikeiken = Seikeiken.No_No;
  1671. }
  1672. }
  1673. public void Deserialize(StatusReader oldStatusReader, bool convertYotogiSkill)
  1674. {
  1675. Func<int, int> func = (int value) => (int)System.Math.Floor((double)((float)value * 0.3f));
  1676. this.OldStatus = new Status(this);
  1677. this.creationTimeNum = oldStatusReader.creationTimeNum;
  1678. this.guid = oldStatusReader.guid;
  1679. this.heroineType = HeroineType.Transfer;
  1680. this.mainChara = false;
  1681. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  1682. this.lastName = oldStatusReader.lastName;
  1683. this.firstName = oldStatusReader.firstName;
  1684. this.freeComment = oldStatusReader.freeComment;
  1685. this.initSeikeiken = oldStatusReader.initSeikeiken;
  1686. this.seikeiken = oldStatusReader.seikeiken;
  1687. string uniqueName = oldStatusReader.personal.ToString();
  1688. this.SetPersonal(Personal.GetData(uniqueName));
  1689. this.contract = oldStatusReader.contract;
  1690. this.additionalRelation = AdditionalRelation.Null;
  1691. this.body.height = oldStatusReader.body.height;
  1692. this.body.weight = oldStatusReader.body.weight;
  1693. this.body.bust = oldStatusReader.body.bust;
  1694. this.body.waist = oldStatusReader.body.waist;
  1695. this.body.hip = oldStatusReader.body.hip;
  1696. this.body.cup = oldStatusReader.body.cup;
  1697. if (oldStatusReader.relation == Relation.Tonus || oldStatusReader.relation == Relation.Contact)
  1698. {
  1699. this.relation_ = Relation.Contact;
  1700. }
  1701. else if (oldStatusReader.relation == Relation.Trust)
  1702. {
  1703. this.relation_ = Relation.Trust;
  1704. }
  1705. else
  1706. {
  1707. this.relation_ = Relation.Lover;
  1708. }
  1709. this.playCountYotogi = oldStatusReader.playCountYotogi;
  1710. this.playCountNightWork = oldStatusReader.playCountNightWork;
  1711. this.likability = oldStatusReader.likability;
  1712. this.studyRate = oldStatusReader.studyRate;
  1713. int num = 100;
  1714. this.baseMaxHp = num;
  1715. this.currentHp = num;
  1716. num = 100;
  1717. this.baseMaxMind = num;
  1718. this.currentMind = num;
  1719. this.baseReception = func(oldStatusReader.reception);
  1720. this.baseCare = func(oldStatusReader.care);
  1721. this.baseLovely = func(oldStatusReader.lovely);
  1722. this.baseElegance = func(oldStatusReader.elegance);
  1723. this.baseCharm = func(oldStatusReader.charm);
  1724. num = 0;
  1725. this.baseAppealPoint = num;
  1726. num = num;
  1727. this.baseDance = num;
  1728. num = num;
  1729. this.baseVocal = num;
  1730. this.baseCooking = num;
  1731. this.baseInyoku = func(oldStatusReader.inyoku);
  1732. this.baseMvalue = func(oldStatusReader.mvalue);
  1733. this.baseHentai = func(oldStatusReader.hentai);
  1734. this.baseHousi = func(oldStatusReader.housi);
  1735. this.baseTeachRate = func(oldStatusReader.teachRate);
  1736. this.sexPlayNumberOfPeople = oldStatusReader.sexPlayNumberOfPeople;
  1737. this.popularRank = 0;
  1738. num = 0;
  1739. this.evaluation = num;
  1740. this.sales = (long)num;
  1741. this.totalSales = oldStatusReader.totalSales;
  1742. this.totalEvaluations = oldStatusReader.totalEvaluations;
  1743. this.leader = false;
  1744. this.isFirstNameCall = oldStatusReader.isFirstNameCall;
  1745. this.eyePartsTab = EyePartsTab.LR;
  1746. this.noonWorkId = (this.nightWorkId = 0);
  1747. this.noonCommu = (this.nightCommu = false);
  1748. this.features_.Clear();
  1749. this.propensitys_.Clear();
  1750. this.jobClass.Clear();
  1751. this.yotogiClass.Clear();
  1752. this.yotogiSkill.Clear();
  1753. this.workDatas_.Clear();
  1754. this.flags_.Clear();
  1755. this.eventEndFlags_.Clear();
  1756. this.selectedJobClass = null;
  1757. AbstractClassData.ClassType classTypeFlags = AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New | AbstractClassData.ClassType.Old;
  1758. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1759. foreach (JobClass.Data data in learnPossibleClassDatas)
  1760. {
  1761. if (GameMain.Instance.CharacterMgr.status.IsJobClassOpenFlag(data.id))
  1762. {
  1763. this.jobClass.Add(data, false, false);
  1764. }
  1765. }
  1766. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1767. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  1768. {
  1769. if (GameMain.Instance.CharacterMgr.status.IsYotogiClassOpenFlag(data2.id))
  1770. {
  1771. this.yotogiClass.Add(data2, false, false);
  1772. }
  1773. }
  1774. foreach (StatusReader.ClassData classData in oldStatusReader.maidClassDatas)
  1775. {
  1776. if (classData.isHave && JobClass.IsEnabled(classData.classId) && !this.jobClass.Contains(classData.classId))
  1777. {
  1778. ClassData<JobClass.Data> classData2 = this.jobClass.Add(classData.classId, false, false);
  1779. if (classData2 != null)
  1780. {
  1781. classData2.expSystem.SetLevel(classData.level);
  1782. }
  1783. }
  1784. }
  1785. foreach (StatusReader.ClassData classData3 in oldStatusReader.yotogiClassDatas)
  1786. {
  1787. if (classData3.isHave && YotogiClass.IsEnabled(classData3.classId) && !this.yotogiClass.Contains(classData3.classId))
  1788. {
  1789. ClassData<YotogiClass.Data> classData4 = this.yotogiClass.Add(classData3.classId, false, false);
  1790. if (classData4 != null)
  1791. {
  1792. classData4.expSystem.SetLevel(classData3.level);
  1793. }
  1794. }
  1795. }
  1796. if (oldStatusReader.selectedMaidClass != null && this.jobClass.Contains(oldStatusReader.selectedMaidClass.classId))
  1797. {
  1798. this.selectedJobClass = this.jobClass.Get(oldStatusReader.selectedMaidClass.classId);
  1799. }
  1800. if (this.selectedJobClass == null)
  1801. {
  1802. ClassData<JobClass.Data>[] valueArray = this.jobClass.oldDatas.GetValueArray();
  1803. int num2 = 0;
  1804. if (num2 < valueArray.Length)
  1805. {
  1806. ClassData<JobClass.Data> selectedJobClass = valueArray[num2];
  1807. this.selectedJobClass = selectedJobClass;
  1808. }
  1809. }
  1810. if (convertYotogiSkill)
  1811. {
  1812. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1813. foreach (Skill.Data data3 in learnPossibleSkills)
  1814. {
  1815. this.yotogiSkill.Add(data3.id);
  1816. }
  1817. foreach (KeyValuePair<int, StatusReader.SkillData> keyValuePair in oldStatusReader.yotogiSkillDatas)
  1818. {
  1819. int id = keyValuePair.Value.id;
  1820. int level = keyValuePair.Value.level;
  1821. uint playCount = keyValuePair.Value.playCount;
  1822. if (!this.yotogiSkill.Contains(id) && Skill.Old.Contains(id))
  1823. {
  1824. this.yotogiSkill.Add(id);
  1825. }
  1826. YotogiSkillData yotogiSkillData = this.yotogiSkill.Get(id);
  1827. if (yotogiSkillData != null && yotogiSkillData.oldData != null)
  1828. {
  1829. yotogiSkillData.expSystem.SetLevel(level);
  1830. yotogiSkillData.playCount = playCount;
  1831. }
  1832. }
  1833. }
  1834. foreach (KeyValuePair<int, StatusReader.WorkData> keyValuePair2 in oldStatusReader.workDatas)
  1835. {
  1836. this.workDatas_.Add(keyValuePair2.Key, keyValuePair2.Value.toNewWorkData());
  1837. }
  1838. foreach (int num3 in oldStatusReader.features)
  1839. {
  1840. StatusReader.Feature feature = (StatusReader.Feature)num3;
  1841. string uniqueName2 = feature.ToString();
  1842. this.AddFeature(Feature.GetData(uniqueName2));
  1843. }
  1844. this.OldStatus.employmentElapsedDay = oldStatusReader.employmentElapsedDay;
  1845. this.OldStatus.relation = oldStatusReader.relation;
  1846. Dictionary<StatusReader.Propensity, string> dictionary = new Dictionary<StatusReader.Propensity, string>();
  1847. dictionary.Add(StatusReader.Propensity.淫乱, "敏感体質");
  1848. dictionary.Add(StatusReader.Propensity.変態, "変態の素質");
  1849. dictionary.Add(StatusReader.Propensity.飲精好き, "ごっくん大好き");
  1850. dictionary.Add(StatusReader.Propensity.奉仕好き, "桃色泡姫");
  1851. dictionary.Add(StatusReader.Propensity.M女, "ドMの素質");
  1852. dictionary.Add(StatusReader.Propensity.中出し好き, "中出し大好き");
  1853. foreach (int num4 in oldStatusReader.propensitys)
  1854. {
  1855. StatusReader.Propensity key = (StatusReader.Propensity)num4;
  1856. if (dictionary.ContainsKey(key))
  1857. {
  1858. this.AddPropensity(Propensity.GetData(dictionary[key]));
  1859. }
  1860. }
  1861. if (1000 <= oldStatusReader.sexual.curi)
  1862. {
  1863. this.AddPropensity(Propensity.GetData("敏感なクリトリス"));
  1864. }
  1865. this.partsDic = new Dictionary<string, string>(oldStatusReader.partsDic);
  1866. this.OldStatus.isMarriage = (oldStatusReader.flags.ContainsKey("_maid_param_marriage_flag") && oldStatusReader.flags["_maid_param_marriage_flag"] != 0);
  1867. this.OldStatus.isNewWife = (oldStatusReader.flags.ContainsKey("_maid_param_newwife_flag") && oldStatusReader.flags["_maid_param_newwife_flag"] != 0);
  1868. foreach (KeyValuePair<string, int> keyValuePair3 in oldStatusReader.flags)
  1869. {
  1870. this.OldStatus.AddFlag(keyValuePair3.Key, keyValuePair3.Value);
  1871. }
  1872. if (!GameMain.Instance.CharacterMgr.status.isOldPlayer)
  1873. {
  1874. this.likability = 0;
  1875. this.relation_ = Relation.Contact;
  1876. this.OldStatus.isMarriage = false;
  1877. this.OldStatus.isNewWife = false;
  1878. }
  1879. this.profileComment = MaidProfile.Create(this.maid, true);
  1880. }
  1881. public const int SaveDataVersion = 1000;
  1882. public const int MaidPointUpStatus = 20;
  1883. public const int NullID = -2147483648;
  1884. private const uint SaveDataCheckCode = 2177629204U;
  1885. public HeroineType heroineType;
  1886. public bool mainChara;
  1887. public SubMaid.Data subCharaData;
  1888. public string profileComment;
  1889. public int age;
  1890. public Seikeiken initSeikeiken;
  1891. public Seikeiken seikeiken;
  1892. public Contract contract;
  1893. public BodyData body;
  1894. public SpecialRelation specialRelation;
  1895. public int noonWorkId;
  1896. public int nightWorkId;
  1897. public bool noonCommu;
  1898. public bool nightCommu;
  1899. public bool leader;
  1900. public bool isFirstNameCall;
  1901. public bool enabledYotogiStatusLock;
  1902. public EyePartsTab eyePartsTab;
  1903. private Dictionary<int, Feature.Data> features_;
  1904. private Dictionary<int, Propensity.Data> propensitys_;
  1905. private BonusStatus bonusStatus;
  1906. private string freeComment_;
  1907. private Personal.Data personal_;
  1908. private int employmentDay_;
  1909. private string lastName_ = string.Empty;
  1910. private string firstName_ = string.Empty;
  1911. private string nickName_ = string.Empty;
  1912. private Relation relation_;
  1913. private AdditionalRelation additionalRelation_;
  1914. private ushort playCountYotogi_;
  1915. private ushort playCountNightWork_;
  1916. private ushort likability_;
  1917. private ushort studyRate_;
  1918. private int currentExcite_;
  1919. private int currentSensual_;
  1920. private ushort maxHp_;
  1921. private ushort currentHp_;
  1922. private ushort maxMind_;
  1923. private ushort currentMind_;
  1924. private ushort maxReason_;
  1925. private ushort currentReason_;
  1926. private ushort reception_;
  1927. private ushort care_;
  1928. private ushort lovely_;
  1929. private ushort elegance_;
  1930. private ushort charm_;
  1931. private ushort cooking_;
  1932. private ushort vocal_;
  1933. private ushort dance_;
  1934. private ushort appealPoint_;
  1935. private ushort inyoku_;
  1936. private ushort m_value_;
  1937. private ushort hentai_;
  1938. private ushort housi_;
  1939. private ushort teachRate_;
  1940. private ushort sexPlayNumberOfPeople_;
  1941. private ushort popularRank_;
  1942. private long sales_;
  1943. private long totalSales_;
  1944. private ushort evaluation_;
  1945. private long totalEvaluation_;
  1946. private Dictionary<int, WorkData> workDatas_;
  1947. private Dictionary<string, int> flags_;
  1948. private Dictionary<int, bool> eventEndFlags_;
  1949. private VoiceGroup voiceGroup_;
  1950. }
  1951. }