Status.cs 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101
  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 10000;
  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 AddWorkDataPlayCount(int id, int addPlayCount)
  1052. {
  1053. if (!this.workDatas_.ContainsKey(id))
  1054. {
  1055. this.workDatas_.Add(id, new WorkData());
  1056. }
  1057. this.workDatas_[id].playCount += (uint)addPlayCount;
  1058. }
  1059. public void SetWorkDataLevel(int id, int level)
  1060. {
  1061. if (!this.workDatas_.ContainsKey(id))
  1062. {
  1063. this.workDatas_.Add(id, new WorkData());
  1064. }
  1065. this.workDatas_[id].level = level;
  1066. }
  1067. public void SetFlag(string flagName, int value)
  1068. {
  1069. if (!this.flags_.ContainsKey(flagName))
  1070. {
  1071. this.flags_.Add(flagName, value);
  1072. }
  1073. else
  1074. {
  1075. this.flags_[flagName] = value;
  1076. }
  1077. }
  1078. public void AddFlag(string flagName, int value)
  1079. {
  1080. if (!this.flags_.ContainsKey(flagName))
  1081. {
  1082. this.flags_.Add(flagName, value);
  1083. }
  1084. else
  1085. {
  1086. Dictionary<string, int> dictionary;
  1087. (dictionary = this.flags_)[flagName] = dictionary[flagName] + value;
  1088. }
  1089. }
  1090. public int GetFlag(string flagName)
  1091. {
  1092. return (!this.flags_.ContainsKey(flagName)) ? 0 : this.flags_[flagName];
  1093. }
  1094. public bool RemoveFlag(string flagName)
  1095. {
  1096. return this.flags_.ContainsKey(flagName) && this.flags_.Remove(flagName);
  1097. }
  1098. public void SetEventEndFlag(int id, bool value)
  1099. {
  1100. if (this.eventEndFlags_.ContainsKey(id))
  1101. {
  1102. this.eventEndFlags_[id] = value;
  1103. }
  1104. else
  1105. {
  1106. this.eventEndFlags_.Add(id, value);
  1107. }
  1108. }
  1109. public void RemoveEventEndFlag(int id)
  1110. {
  1111. if (this.eventEndFlags_.ContainsKey(id))
  1112. {
  1113. this.eventEndFlags_.Remove(id);
  1114. }
  1115. }
  1116. public bool GetEventEndFlag(int id)
  1117. {
  1118. return this.eventEndFlags_.ContainsKey(id) && this.eventEndFlags_[id];
  1119. }
  1120. public BonusStatus GetBonusStatusAsFeatureAndPropensitys()
  1121. {
  1122. BonusStatus result = new BonusStatus();
  1123. foreach (Feature.Data data in this.features.GetValueArray())
  1124. {
  1125. if (data.bonusCorrection != null)
  1126. {
  1127. data.bonusCorrection.ApplyAddBonusStatus(result);
  1128. }
  1129. }
  1130. foreach (Propensity.Data data2 in this.propensitys.GetValueArray())
  1131. {
  1132. if (data2.bonusCorrection != null)
  1133. {
  1134. data2.bonusCorrection.ApplyAddBonusStatus(result);
  1135. }
  1136. }
  1137. return result;
  1138. }
  1139. public void UpdateBodyParam()
  1140. {
  1141. if (this.maid.Parts == null)
  1142. {
  1143. return;
  1144. }
  1145. Func<MPN, float> func = (MPN mpn) => (float)this.maid.GetProp(mpn).value;
  1146. 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;
  1147. float num2 = 55f * func(MPN.RegFat) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1148. float num3 = 55f * func(MPN.RegMeet) + 50f * func(MPN.sintyou) * 0.5f + 50f * func(MPN.DouPer) * 0.4f;
  1149. float num4 = 10f * func(MPN.UdeScl) * 0.1f;
  1150. float num5 = 5f * func(MPN.ArmL) + 5f * func(MPN.sintyou) * 1f + 5f * func(MPN.UdeScl) * 0.5f;
  1151. float num6 = 70f * func(MPN.Hara) + 50f * func(MPN.sintyou) * 0.7f + 50f * func(MPN.west) * func(MPN.Hara) * 0.005f;
  1152. float num7 = 10f * func(MPN.MuneL) * 2f;
  1153. float num8 = num7 * func(MPN.MuneTare) * 0.005f;
  1154. 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;
  1155. float num10 = 10f * func(MPN.koshi) + 7f * func(MPN.koshi) * func(MPN.sintyou) * 0.04f;
  1156. float num11 = 4f * func(MPN.kata);
  1157. float num12 = 38000f + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 + num11;
  1158. this.body.height = (int)(num / 10f);
  1159. this.body.weight = (int)(num12 / 1000f);
  1160. float num13 = 70f + func(MPN.MuneL) * 0.31f + func(MPN.west) * 0.02f;
  1161. num13 -= 5f * (func(MPN.MuneS) / 100f);
  1162. this.body.bust = (int)num13;
  1163. this.body.waist = (int)(40f + func(MPN.west) * 0.25f + func(MPN.Hara) * 0.35f);
  1164. this.body.hip = (int)(65f + func(MPN.koshi) * 0.3f + func(MPN.RegFat) * 0.025f + func(MPN.RegMeet) * 0.025f);
  1165. if (num13 < 80f)
  1166. {
  1167. this.body.cup = "A";
  1168. }
  1169. else if (110f <= num13)
  1170. {
  1171. this.body.cup = "N";
  1172. }
  1173. else
  1174. {
  1175. char[] array = new char[]
  1176. {
  1177. 'B',
  1178. 'C',
  1179. 'D',
  1180. 'E',
  1181. 'F',
  1182. 'G',
  1183. 'H',
  1184. 'I',
  1185. 'J',
  1186. 'K',
  1187. 'L',
  1188. 'M'
  1189. };
  1190. this.body.cup = array[(int)((num13 - 80f) / 2.5f)].ToString();
  1191. }
  1192. }
  1193. public void UpdateClassBonusStatus()
  1194. {
  1195. this.bonusStatus.Clear();
  1196. if (this.heroineType == HeroineType.Sub)
  1197. {
  1198. return;
  1199. }
  1200. foreach (KeyValuePair<int, ClassData<JobClass.Data>> keyValuePair in this.jobClass.GetAllDatas())
  1201. {
  1202. ClassData<JobClass.Data> value = keyValuePair.Value;
  1203. value.data.levelBonuss[value.level - 1].ApplyAddBonusStatus(this.bonusStatus);
  1204. }
  1205. }
  1206. public void Serialize(BinaryWriter binary)
  1207. {
  1208. this.SetFlag("__1330_specialrelation__", (int)this.specialRelation);
  1209. binary.Write("CM3D2_MAID_STATUS");
  1210. binary.Write(1440);
  1211. binary.Write(this.guid);
  1212. binary.Write(this.creationTime);
  1213. binary.Write((short)this.heroineType);
  1214. if (this.heroineType == HeroineType.Sub)
  1215. {
  1216. binary.Write(this.subCharaData.id);
  1217. }
  1218. binary.Write(this.mainChara);
  1219. binary.Write(this.employmentDay_);
  1220. binary.Write(this.lastName);
  1221. binary.Write(this.firstName);
  1222. binary.Write(this.profileComment);
  1223. binary.Write(this.freeComment);
  1224. binary.Write((short)this.initSeikeiken);
  1225. binary.Write((short)this.seikeiken);
  1226. binary.Write(this.personal_.id);
  1227. binary.Write((short)this.contract);
  1228. this.body.Serialize(binary);
  1229. binary.Write((short)this.relation_);
  1230. binary.Write(this.playCountYotogi_);
  1231. binary.Write(this.playCountNightWork_);
  1232. binary.Write(this.likability_);
  1233. binary.Write(this.studyRate_);
  1234. binary.Write(this.maxHp_);
  1235. binary.Write(this.currentHp_);
  1236. binary.Write(this.maxMind_);
  1237. binary.Write(this.currentMind_);
  1238. binary.Write(this.maxReason_);
  1239. binary.Write(this.currentReason_);
  1240. binary.Write(this.reception_);
  1241. binary.Write(this.care_);
  1242. binary.Write(this.lovely_);
  1243. binary.Write(this.elegance_);
  1244. binary.Write(this.charm_);
  1245. binary.Write(this.cooking_);
  1246. binary.Write(this.vocal_);
  1247. binary.Write(this.dance_);
  1248. binary.Write(this.appealPoint_);
  1249. binary.Write(this.inyoku_);
  1250. binary.Write(this.m_value_);
  1251. binary.Write(this.hentai_);
  1252. binary.Write(this.housi_);
  1253. binary.Write(this.teachRate_);
  1254. binary.Write(this.sexPlayNumberOfPeople_);
  1255. binary.Write(this.popularRank_);
  1256. binary.Write(this.sales_);
  1257. binary.Write(this.totalSales_);
  1258. binary.Write(this.evaluation_);
  1259. binary.Write(this.totalEvaluation_);
  1260. binary.Write(this.leader);
  1261. binary.Write(this.isFirstNameCall);
  1262. binary.Write(this.enabledYotogiStatusLock);
  1263. binary.Write((short)this.eyePartsTab);
  1264. binary.Write(this.noonWorkId);
  1265. binary.Write(this.nightWorkId);
  1266. binary.Write(this.noonCommu);
  1267. binary.Write(this.nightCommu);
  1268. binary.Write((short)this.features_.Count);
  1269. foreach (KeyValuePair<int, Feature.Data> keyValuePair in this.features_)
  1270. {
  1271. binary.Write(keyValuePair.Key);
  1272. }
  1273. binary.Write((short)this.propensitys_.Count);
  1274. foreach (KeyValuePair<int, Propensity.Data> keyValuePair2 in this.propensitys_)
  1275. {
  1276. binary.Write(keyValuePair2.Key);
  1277. }
  1278. this.jobClass.Serialize(binary);
  1279. this.yotogiClass.Serialize(binary);
  1280. this.yotogiSkill.Serialize(binary);
  1281. binary.Write((short)this.workDatas_.Count);
  1282. foreach (KeyValuePair<int, WorkData> keyValuePair3 in this.workDatas_)
  1283. {
  1284. binary.Write(keyValuePair3.Key);
  1285. keyValuePair3.Value.Serialize(binary);
  1286. }
  1287. binary.Write((short)this.flags_.Count);
  1288. foreach (KeyValuePair<string, int> keyValuePair4 in this.flags_)
  1289. {
  1290. binary.Write(keyValuePair4.Key);
  1291. binary.Write(keyValuePair4.Value);
  1292. }
  1293. binary.Write((short)this.eventEndFlags_.Count);
  1294. foreach (KeyValuePair<int, bool> keyValuePair5 in this.eventEndFlags_)
  1295. {
  1296. binary.Write(keyValuePair5.Key);
  1297. binary.Write(keyValuePair5.Value);
  1298. }
  1299. binary.Write((short)this.partsDic.Count);
  1300. foreach (KeyValuePair<string, string> keyValuePair6 in this.partsDic)
  1301. {
  1302. binary.Write(keyValuePair6.Key);
  1303. binary.Write(keyValuePair6.Value);
  1304. }
  1305. binary.Write(this.OldStatus != null);
  1306. if (this.OldStatus != null)
  1307. {
  1308. this.OldStatus.Serialize(binary);
  1309. }
  1310. binary.Write(this.selectedJobClass != null);
  1311. if (this.selectedJobClass != null)
  1312. {
  1313. binary.Write(this.selectedJobClass.data.id);
  1314. }
  1315. binary.Write(this.selectedYotogiClass != null);
  1316. if (this.selectedYotogiClass != null)
  1317. {
  1318. binary.Write(this.selectedYotogiClass.data.id);
  1319. }
  1320. binary.Write((short)this.additionalRelation_);
  1321. binary.Write(this.nickName_);
  1322. binary.Write(this.age);
  1323. binary.Write(2177629204u);
  1324. }
  1325. public void Deserialize(BinaryReader binary)
  1326. {
  1327. string a = binary.ReadString();
  1328. NDebug.Assert(a == "CM3D2_MAID_STATUS", "メイドパラメータのヘッダーが不正です。");
  1329. this.OldStatus = null;
  1330. int num = binary.ReadInt32();
  1331. this.guid = binary.ReadString();
  1332. this.creationTime = binary.ReadString();
  1333. string text = this.creationTime.Replace(":", string.Empty);
  1334. text = text.Replace(" ", string.Empty);
  1335. this.creationTimeNum = ulong.Parse(text);
  1336. this.heroineType = (HeroineType)binary.ReadInt16();
  1337. if (this.heroineType == HeroineType.Sub)
  1338. {
  1339. int id = binary.ReadInt32();
  1340. this.subCharaData = SubMaid.GetData(id);
  1341. }
  1342. if (205 < num)
  1343. {
  1344. this.mainChara = binary.ReadBoolean();
  1345. }
  1346. this.employmentDay_ = binary.ReadInt32();
  1347. this.lastName = binary.ReadString();
  1348. this.firstName = binary.ReadString();
  1349. this.profileComment = binary.ReadString();
  1350. this.freeComment = binary.ReadString();
  1351. this.initSeikeiken = (Seikeiken)binary.ReadInt16();
  1352. this.seikeiken = (Seikeiken)binary.ReadInt16();
  1353. int num2 = binary.ReadInt32();
  1354. if (Personal.IsEnabled(num2))
  1355. {
  1356. this.SetPersonal(num2);
  1357. }
  1358. else
  1359. {
  1360. Debug.LogWarning(this.fullNameJpStyle + " : ロードされたデータの性格[" + Personal.GetData(num2).drawName + "]は有効ではないので初期性格に強制変更しました");
  1361. this.SetPersonal(Personal.GetData("Muku"));
  1362. }
  1363. if (207 < num)
  1364. {
  1365. this.contract = (Contract)binary.ReadInt16();
  1366. }
  1367. this.body.Deserialize(binary, num);
  1368. this.relation_ = (Relation)binary.ReadInt16();
  1369. if (num < 215)
  1370. {
  1371. binary.ReadInt16();
  1372. }
  1373. this.playCountYotogi_ = binary.ReadUInt16();
  1374. this.playCountNightWork_ = binary.ReadUInt16();
  1375. this.likability_ = binary.ReadUInt16();
  1376. this.studyRate_ = binary.ReadUInt16();
  1377. this.maxHp_ = binary.ReadUInt16();
  1378. this.currentHp_ = binary.ReadUInt16();
  1379. this.maxMind_ = binary.ReadUInt16();
  1380. this.currentMind_ = binary.ReadUInt16();
  1381. if (211 < num)
  1382. {
  1383. this.maxReason_ = binary.ReadUInt16();
  1384. this.currentReason_ = binary.ReadUInt16();
  1385. }
  1386. this.reception_ = binary.ReadUInt16();
  1387. this.care_ = binary.ReadUInt16();
  1388. this.lovely_ = binary.ReadUInt16();
  1389. this.elegance_ = binary.ReadUInt16();
  1390. this.charm_ = binary.ReadUInt16();
  1391. this.cooking_ = binary.ReadUInt16();
  1392. this.vocal_ = binary.ReadUInt16();
  1393. this.dance_ = binary.ReadUInt16();
  1394. this.appealPoint_ = binary.ReadUInt16();
  1395. this.inyoku_ = binary.ReadUInt16();
  1396. this.m_value_ = binary.ReadUInt16();
  1397. this.hentai_ = binary.ReadUInt16();
  1398. this.housi_ = binary.ReadUInt16();
  1399. this.teachRate_ = binary.ReadUInt16();
  1400. this.sexPlayNumberOfPeople_ = binary.ReadUInt16();
  1401. this.popularRank_ = binary.ReadUInt16();
  1402. this.sales_ = binary.ReadInt64();
  1403. this.totalSales_ = binary.ReadInt64();
  1404. if (207 < num)
  1405. {
  1406. this.evaluation_ = binary.ReadUInt16();
  1407. this.totalEvaluation_ = binary.ReadInt64();
  1408. }
  1409. this.leader = binary.ReadBoolean();
  1410. this.isFirstNameCall = binary.ReadBoolean();
  1411. if (202 < num)
  1412. {
  1413. this.enabledYotogiStatusLock = binary.ReadBoolean();
  1414. }
  1415. this.eyePartsTab = (EyePartsTab)binary.ReadInt16();
  1416. this.noonWorkId = binary.ReadInt32();
  1417. this.nightWorkId = binary.ReadInt32();
  1418. this.noonCommu = binary.ReadBoolean();
  1419. this.nightCommu = binary.ReadBoolean();
  1420. int num3 = (int)binary.ReadInt16();
  1421. this.features_.Clear();
  1422. for (int i = 0; i < num3; i++)
  1423. {
  1424. int num4 = binary.ReadInt32();
  1425. if (Feature.IsEnabled(num4))
  1426. {
  1427. this.features_.Add(num4, Feature.GetData(num4));
  1428. }
  1429. }
  1430. num3 = (int)binary.ReadInt16();
  1431. this.propensitys_.Clear();
  1432. for (int j = 0; j < num3; j++)
  1433. {
  1434. int num5 = binary.ReadInt32();
  1435. if (Propensity.IsEnabled(num5))
  1436. {
  1437. this.propensitys_.Add(num5, Propensity.GetData(num5));
  1438. }
  1439. }
  1440. this.jobClass.Deserialize(binary, num);
  1441. this.yotogiClass.Deserialize(binary, num);
  1442. this.UpdateClassBonusStatus();
  1443. if (211 >= num)
  1444. {
  1445. num3 = (int)binary.ReadInt16();
  1446. for (int k = 0; k < num3; k++)
  1447. {
  1448. binary.ReadInt32();
  1449. binary.ReadUInt32();
  1450. binary.ReadUInt16();
  1451. binary.ReadInt32();
  1452. binary.ReadInt32();
  1453. binary.ReadInt32();
  1454. binary.ReadInt32();
  1455. }
  1456. }
  1457. else
  1458. {
  1459. this.yotogiSkill.Deserialize(binary, num);
  1460. }
  1461. num3 = (int)binary.ReadInt16();
  1462. this.workDatas_.Clear();
  1463. for (int l = 0; l < num3; l++)
  1464. {
  1465. int key = binary.ReadInt32();
  1466. WorkData workData = new WorkData();
  1467. workData.Deserialize(binary, num);
  1468. this.workDatas_.Add(key, workData);
  1469. }
  1470. num3 = (int)binary.ReadInt16();
  1471. this.flags_.Clear();
  1472. for (int m = 0; m < num3; m++)
  1473. {
  1474. string key2 = binary.ReadString();
  1475. int value = binary.ReadInt32();
  1476. this.flags_.Add(key2, value);
  1477. }
  1478. if (205 < num)
  1479. {
  1480. num3 = (int)binary.ReadInt16();
  1481. this.eventEndFlags_.Clear();
  1482. for (int n = 0; n < num3; n++)
  1483. {
  1484. int key3 = binary.ReadInt32();
  1485. bool value2 = binary.ReadBoolean();
  1486. this.eventEndFlags_.Add(key3, value2);
  1487. }
  1488. }
  1489. num3 = (int)binary.ReadInt16();
  1490. this.partsDic.Clear();
  1491. for (int num6 = 0; num6 < num3; num6++)
  1492. {
  1493. string key4 = binary.ReadString();
  1494. string value3 = binary.ReadString();
  1495. this.partsDic.Add(key4, value3);
  1496. }
  1497. if (207 < num)
  1498. {
  1499. bool flag = binary.ReadBoolean();
  1500. if (flag)
  1501. {
  1502. this.OldStatus = new Status(this);
  1503. this.OldStatus.Deserialize(binary, num);
  1504. }
  1505. }
  1506. this.selectedJobClass = null;
  1507. if (binary.ReadBoolean())
  1508. {
  1509. int id2 = binary.ReadInt32();
  1510. if (this.jobClass.Contains(id2))
  1511. {
  1512. this.selectedJobClass = this.jobClass.Get(id2);
  1513. }
  1514. }
  1515. if (this.selectedJobClass == null)
  1516. {
  1517. ClassData<JobClass.Data>[] valueArray = this.jobClass.datas.GetValueArray();
  1518. int num7 = 0;
  1519. if (num7 < valueArray.Length)
  1520. {
  1521. ClassData<JobClass.Data> selectedJobClass = valueArray[num7];
  1522. this.selectedJobClass = selectedJobClass;
  1523. }
  1524. }
  1525. this.selectedYotogiClass = null;
  1526. if (binary.ReadBoolean())
  1527. {
  1528. int id3 = binary.ReadInt32();
  1529. if (this.yotogiClass.Contains(id3))
  1530. {
  1531. this.selectedYotogiClass = this.yotogiClass.Get(id3);
  1532. }
  1533. }
  1534. if (this.selectedYotogiClass == null)
  1535. {
  1536. ClassData<YotogiClass.Data>[] valueArray2 = this.yotogiClass.datas.GetValueArray();
  1537. int num8 = 0;
  1538. if (num8 < valueArray2.Length)
  1539. {
  1540. ClassData<YotogiClass.Data> selectedYotogiClass = valueArray2[num8];
  1541. this.selectedYotogiClass = selectedYotogiClass;
  1542. }
  1543. }
  1544. this.additionalRelation_ = AdditionalRelation.Null;
  1545. if (1270 <= num)
  1546. {
  1547. this.additionalRelation_ = (AdditionalRelation)binary.ReadInt16();
  1548. if (this.additionalRelation_ != AdditionalRelation.Null && this.heroineType == HeroineType.Sub)
  1549. {
  1550. this.additionalRelation_ = AdditionalRelation.Null;
  1551. }
  1552. this.nickName_ = binary.ReadString();
  1553. this.age = binary.ReadInt32();
  1554. if (this.additionalRelation_ == AdditionalRelation.Vigilance)
  1555. {
  1556. if (this.relation == Relation.Trust || this.relation == Relation.Lover)
  1557. {
  1558. this.additionalRelation_ = AdditionalRelation.Null;
  1559. }
  1560. if (this.relation == Relation.Lover)
  1561. {
  1562. if ((this.personal.uniqueName == "Muku" && this.GetEventEndFlag(5040)) || (this.personal.uniqueName == "Majime" && this.GetEventEndFlag(5140)) || (this.personal.uniqueName == "Rindere" && this.GetEventEndFlag(5240)))
  1563. {
  1564. this.additionalRelation_ = AdditionalRelation.LoverPlus;
  1565. }
  1566. }
  1567. 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))))
  1568. {
  1569. this.additionalRelation_ = AdditionalRelation.Null;
  1570. }
  1571. }
  1572. }
  1573. if (!PluginData.IsEnabled("GP002") || this.GetFlag("__1330_specialrelation__") == 0)
  1574. {
  1575. this.specialRelation = SpecialRelation.Null;
  1576. }
  1577. else
  1578. {
  1579. this.specialRelation = (SpecialRelation)this.GetFlag("__1330_specialrelation__");
  1580. }
  1581. this.RemoveFlag("__1330_specialrelation__");
  1582. uint num9 = binary.ReadUInt32();
  1583. NDebug.Assert(2177629204u == num9, "メイドパラメータのロードに失敗しました");
  1584. if (num <= 1050)
  1585. {
  1586. YotogiClass.Data data = YotogiClass.GetData("Kokuhakuplay");
  1587. if (this.yotogiClass.Get(data) != null && this.contract != Contract.Free)
  1588. {
  1589. this.yotogiClass.Remove(data, true);
  1590. }
  1591. List<int> list = new List<int>();
  1592. foreach (YotogiSkillData yotogiSkillData in this.yotogiSkill.datas.GetValueArray())
  1593. {
  1594. YotogiClass.Data yotogi_class = yotogiSkillData.data.getcondition_data.yotogi_class;
  1595. if (yotogi_class != null && !this.yotogiClass.Contains(yotogi_class) && yotogi_class.learnConditions.requestContracts.Count != 0 && !yotogi_class.learnConditions.requestContracts.Contains(this.contract))
  1596. {
  1597. list.Add(yotogiSkillData.id);
  1598. }
  1599. }
  1600. foreach (int skillId in list)
  1601. {
  1602. this.yotogiSkill.Remove(skillId);
  1603. }
  1604. }
  1605. if (num == 1380 && this.specialRelation == SpecialRelation.Null)
  1606. {
  1607. List<int> list2 = new List<int>();
  1608. foreach (YotogiSkillData yotogiSkillData2 in this.yotogiSkill.datas.GetValueArray())
  1609. {
  1610. if (yotogiSkillData2.data.getcondition_data.requestMarried)
  1611. {
  1612. list2.Add(yotogiSkillData2.id);
  1613. }
  1614. }
  1615. foreach (int skillId2 in list2)
  1616. {
  1617. this.yotogiSkill.Remove(skillId2);
  1618. }
  1619. }
  1620. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1621. foreach (Skill.Data data2 in learnPossibleSkills)
  1622. {
  1623. if (data2.specialConditionType == Skill.Data.SpecialConditionType.GP01Recollect || data2.specialConditionType == Skill.Data.SpecialConditionType.GP02Recollect)
  1624. {
  1625. this.yotogiSkill.Add(data2);
  1626. }
  1627. }
  1628. }
  1629. public void Deserialize(StatusReader oldStatusReader, bool convertYotogiSkill)
  1630. {
  1631. Func<int, int> func = (int value) => (int)System.Math.Floor((double)((float)value * 0.3f));
  1632. this.OldStatus = new Status(this);
  1633. this.creationTimeNum = oldStatusReader.creationTimeNum;
  1634. this.guid = oldStatusReader.guid;
  1635. this.heroineType = HeroineType.Transfer;
  1636. this.mainChara = false;
  1637. this.employmentDay = GameMain.Instance.CharacterMgr.status.days;
  1638. this.lastName = oldStatusReader.lastName;
  1639. this.firstName = oldStatusReader.firstName;
  1640. this.freeComment = oldStatusReader.freeComment;
  1641. this.initSeikeiken = oldStatusReader.initSeikeiken;
  1642. this.seikeiken = oldStatusReader.seikeiken;
  1643. string uniqueName = oldStatusReader.personal.ToString();
  1644. this.SetPersonal(Personal.GetData(uniqueName));
  1645. this.contract = oldStatusReader.contract;
  1646. this.additionalRelation = AdditionalRelation.Null;
  1647. this.body.height = oldStatusReader.body.height;
  1648. this.body.weight = oldStatusReader.body.weight;
  1649. this.body.bust = oldStatusReader.body.bust;
  1650. this.body.waist = oldStatusReader.body.waist;
  1651. this.body.hip = oldStatusReader.body.hip;
  1652. this.body.cup = oldStatusReader.body.cup;
  1653. if (oldStatusReader.relation == Relation.Tonus || oldStatusReader.relation == Relation.Contact)
  1654. {
  1655. this.relation_ = Relation.Contact;
  1656. }
  1657. else if (oldStatusReader.relation == Relation.Trust)
  1658. {
  1659. this.relation_ = Relation.Trust;
  1660. }
  1661. else
  1662. {
  1663. this.relation_ = Relation.Lover;
  1664. }
  1665. this.playCountYotogi = oldStatusReader.playCountYotogi;
  1666. this.playCountNightWork = oldStatusReader.playCountNightWork;
  1667. this.likability = oldStatusReader.likability;
  1668. this.studyRate = oldStatusReader.studyRate;
  1669. int num = 100;
  1670. this.baseMaxHp = num;
  1671. this.currentHp = num;
  1672. num = 100;
  1673. this.baseMaxMind = num;
  1674. this.currentMind = num;
  1675. this.baseReception = func(oldStatusReader.reception);
  1676. this.baseCare = func(oldStatusReader.care);
  1677. this.baseLovely = func(oldStatusReader.lovely);
  1678. this.baseElegance = func(oldStatusReader.elegance);
  1679. this.baseCharm = func(oldStatusReader.charm);
  1680. num = 0;
  1681. this.baseAppealPoint = num;
  1682. num = num;
  1683. this.baseDance = num;
  1684. num = num;
  1685. this.baseVocal = num;
  1686. this.baseCooking = num;
  1687. this.baseInyoku = func(oldStatusReader.inyoku);
  1688. this.baseMvalue = func(oldStatusReader.mvalue);
  1689. this.baseHentai = func(oldStatusReader.hentai);
  1690. this.baseHousi = func(oldStatusReader.housi);
  1691. this.baseTeachRate = func(oldStatusReader.teachRate);
  1692. this.sexPlayNumberOfPeople = oldStatusReader.sexPlayNumberOfPeople;
  1693. this.popularRank = 0;
  1694. num = 0;
  1695. this.evaluation = num;
  1696. this.sales = (long)num;
  1697. this.totalSales = oldStatusReader.totalSales;
  1698. this.totalEvaluations = oldStatusReader.totalEvaluations;
  1699. this.leader = false;
  1700. this.isFirstNameCall = oldStatusReader.isFirstNameCall;
  1701. this.eyePartsTab = EyePartsTab.LR;
  1702. this.noonWorkId = (this.nightWorkId = 0);
  1703. this.noonCommu = (this.nightCommu = false);
  1704. this.features_.Clear();
  1705. this.propensitys_.Clear();
  1706. this.jobClass.Clear();
  1707. this.yotogiClass.Clear();
  1708. this.yotogiSkill.Clear();
  1709. this.workDatas_.Clear();
  1710. this.flags_.Clear();
  1711. this.eventEndFlags_.Clear();
  1712. this.selectedJobClass = null;
  1713. AbstractClassData.ClassType classTypeFlags = AbstractClassData.ClassType.Share | AbstractClassData.ClassType.New | AbstractClassData.ClassType.Old;
  1714. List<JobClass.Data> learnPossibleClassDatas = this.jobClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1715. foreach (JobClass.Data data in learnPossibleClassDatas)
  1716. {
  1717. if (GameMain.Instance.CharacterMgr.status.IsJobClassOpenFlag(data.id))
  1718. {
  1719. this.jobClass.Add(data, false, false);
  1720. }
  1721. }
  1722. List<YotogiClass.Data> learnPossibleClassDatas2 = this.yotogiClass.GetLearnPossibleClassDatas(true, classTypeFlags);
  1723. foreach (YotogiClass.Data data2 in learnPossibleClassDatas2)
  1724. {
  1725. if (GameMain.Instance.CharacterMgr.status.IsYotogiClassOpenFlag(data2.id))
  1726. {
  1727. this.yotogiClass.Add(data2, false, false);
  1728. }
  1729. }
  1730. foreach (StatusReader.ClassData classData in oldStatusReader.maidClassDatas)
  1731. {
  1732. if (classData.isHave && JobClass.IsEnabled(classData.classId) && !this.jobClass.Contains(classData.classId))
  1733. {
  1734. ClassData<JobClass.Data> classData2 = this.jobClass.Add(classData.classId, false, false);
  1735. if (classData2 != null)
  1736. {
  1737. classData2.expSystem.SetLevel(classData.level);
  1738. }
  1739. }
  1740. }
  1741. foreach (StatusReader.ClassData classData3 in oldStatusReader.yotogiClassDatas)
  1742. {
  1743. if (classData3.isHave && YotogiClass.IsEnabled(classData3.classId) && !this.yotogiClass.Contains(classData3.classId))
  1744. {
  1745. ClassData<YotogiClass.Data> classData4 = this.yotogiClass.Add(classData3.classId, false, false);
  1746. if (classData4 != null)
  1747. {
  1748. classData4.expSystem.SetLevel(classData3.level);
  1749. }
  1750. }
  1751. }
  1752. if (oldStatusReader.selectedMaidClass != null && this.jobClass.Contains(oldStatusReader.selectedMaidClass.classId))
  1753. {
  1754. this.selectedJobClass = this.jobClass.Get(oldStatusReader.selectedMaidClass.classId);
  1755. }
  1756. if (this.selectedJobClass == null)
  1757. {
  1758. ClassData<JobClass.Data>[] valueArray = this.jobClass.oldDatas.GetValueArray();
  1759. int num2 = 0;
  1760. if (num2 < valueArray.Length)
  1761. {
  1762. ClassData<JobClass.Data> selectedJobClass = valueArray[num2];
  1763. this.selectedJobClass = selectedJobClass;
  1764. }
  1765. }
  1766. if (convertYotogiSkill)
  1767. {
  1768. List<Skill.Data> learnPossibleSkills = Skill.GetLearnPossibleSkills(this);
  1769. foreach (Skill.Data data3 in learnPossibleSkills)
  1770. {
  1771. this.yotogiSkill.Add(data3.id);
  1772. }
  1773. foreach (KeyValuePair<int, StatusReader.SkillData> keyValuePair in oldStatusReader.yotogiSkillDatas)
  1774. {
  1775. int id = keyValuePair.Value.id;
  1776. int level = keyValuePair.Value.level;
  1777. uint playCount = keyValuePair.Value.playCount;
  1778. if (!this.yotogiSkill.Contains(id) && Skill.Old.Contains(id))
  1779. {
  1780. this.yotogiSkill.Add(id);
  1781. }
  1782. YotogiSkillData yotogiSkillData = this.yotogiSkill.Get(id);
  1783. if (yotogiSkillData != null && yotogiSkillData.oldData != null)
  1784. {
  1785. yotogiSkillData.expSystem.SetLevel(level);
  1786. yotogiSkillData.playCount = playCount;
  1787. }
  1788. }
  1789. }
  1790. foreach (KeyValuePair<int, StatusReader.WorkData> keyValuePair2 in oldStatusReader.workDatas)
  1791. {
  1792. this.workDatas_.Add(keyValuePair2.Key, keyValuePair2.Value.toNewWorkData());
  1793. }
  1794. foreach (int num3 in oldStatusReader.features)
  1795. {
  1796. StatusReader.Feature feature = (StatusReader.Feature)num3;
  1797. string uniqueName2 = feature.ToString();
  1798. this.AddFeature(Feature.GetData(uniqueName2));
  1799. }
  1800. this.OldStatus.employmentElapsedDay = oldStatusReader.employmentElapsedDay;
  1801. this.OldStatus.relation = oldStatusReader.relation;
  1802. Dictionary<StatusReader.Propensity, string> dictionary = new Dictionary<StatusReader.Propensity, string>();
  1803. dictionary.Add(StatusReader.Propensity.淫乱, "敏感体質");
  1804. dictionary.Add(StatusReader.Propensity.変態, "変態の素質");
  1805. dictionary.Add(StatusReader.Propensity.飲精好き, "ごっくん大好き");
  1806. dictionary.Add(StatusReader.Propensity.奉仕好き, "桃色泡姫");
  1807. dictionary.Add(StatusReader.Propensity.M女, "ドMの素質");
  1808. dictionary.Add(StatusReader.Propensity.中出し好き, "中出し大好き");
  1809. foreach (int num4 in oldStatusReader.propensitys)
  1810. {
  1811. StatusReader.Propensity key = (StatusReader.Propensity)num4;
  1812. if (dictionary.ContainsKey(key))
  1813. {
  1814. this.AddPropensity(Propensity.GetData(dictionary[key]));
  1815. }
  1816. }
  1817. if (1000 <= oldStatusReader.sexual.curi)
  1818. {
  1819. this.AddPropensity(Propensity.GetData("敏感なクリトリス"));
  1820. }
  1821. this.partsDic = new Dictionary<string, string>(oldStatusReader.partsDic);
  1822. this.OldStatus.isMarriage = (oldStatusReader.flags.ContainsKey("_maid_param_marriage_flag") && oldStatusReader.flags["_maid_param_marriage_flag"] != 0);
  1823. this.OldStatus.isNewWife = (oldStatusReader.flags.ContainsKey("_maid_param_newwife_flag") && oldStatusReader.flags["_maid_param_newwife_flag"] != 0);
  1824. foreach (KeyValuePair<string, int> keyValuePair3 in oldStatusReader.flags)
  1825. {
  1826. this.OldStatus.AddFlag(keyValuePair3.Key, keyValuePair3.Value);
  1827. }
  1828. if (!GameMain.Instance.CharacterMgr.status.isOldPlayer)
  1829. {
  1830. this.likability = 0;
  1831. this.relation_ = Relation.Contact;
  1832. this.OldStatus.isMarriage = false;
  1833. this.OldStatus.isNewWife = false;
  1834. }
  1835. this.profileComment = MaidProfile.Create(this.maid, true);
  1836. }
  1837. public const int MaidPointUpStatus = 20;
  1838. public const int NullID = -2147483648;
  1839. private const uint SaveDataCheckCode = 2177629204u;
  1840. public HeroineType heroineType;
  1841. public bool mainChara;
  1842. public SubMaid.Data subCharaData;
  1843. public string profileComment;
  1844. public int age;
  1845. public Seikeiken initSeikeiken;
  1846. public Seikeiken seikeiken;
  1847. public Contract contract;
  1848. public BodyData body;
  1849. public SpecialRelation specialRelation;
  1850. public int noonWorkId;
  1851. public int nightWorkId;
  1852. public bool noonCommu;
  1853. public bool nightCommu;
  1854. public bool leader;
  1855. public bool isFirstNameCall;
  1856. public bool enabledYotogiStatusLock;
  1857. public EyePartsTab eyePartsTab;
  1858. private Dictionary<int, Feature.Data> features_;
  1859. private Dictionary<int, Propensity.Data> propensitys_;
  1860. private BonusStatus bonusStatus;
  1861. private string freeComment_;
  1862. private Personal.Data personal_;
  1863. private int employmentDay_;
  1864. private string lastName_ = string.Empty;
  1865. private string firstName_ = string.Empty;
  1866. private string nickName_ = string.Empty;
  1867. private Relation relation_;
  1868. private AdditionalRelation additionalRelation_;
  1869. private ushort playCountYotogi_;
  1870. private ushort playCountNightWork_;
  1871. private ushort likability_;
  1872. private ushort studyRate_;
  1873. private int currentExcite_;
  1874. private int currentSensual_;
  1875. private ushort maxHp_;
  1876. private ushort currentHp_;
  1877. private ushort maxMind_;
  1878. private ushort currentMind_;
  1879. private ushort maxReason_;
  1880. private ushort currentReason_;
  1881. private ushort reception_;
  1882. private ushort care_;
  1883. private ushort lovely_;
  1884. private ushort elegance_;
  1885. private ushort charm_;
  1886. private ushort cooking_;
  1887. private ushort vocal_;
  1888. private ushort dance_;
  1889. private ushort appealPoint_;
  1890. private ushort inyoku_;
  1891. private ushort m_value_;
  1892. private ushort hentai_;
  1893. private ushort housi_;
  1894. private ushort teachRate_;
  1895. private ushort sexPlayNumberOfPeople_;
  1896. private ushort popularRank_;
  1897. private long sales_;
  1898. private long totalSales_;
  1899. private ushort evaluation_;
  1900. private long totalEvaluation_;
  1901. private Dictionary<int, WorkData> workDatas_;
  1902. private Dictionary<string, int> flags_;
  1903. private Dictionary<int, bool> eventEndFlags_;
  1904. private VoiceGroup voiceGroup_;
  1905. }
  1906. }