SkillAcquisitionCondition.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. using System;
  2. using System.Collections.Generic;
  3. using MaidStatus;
  4. namespace Yotogis
  5. {
  6. public class SkillAcquisitionCondition
  7. {
  8. public List<string[]> CreateConditionTexts()
  9. {
  10. List<KeyValuePair<string[], bool>> list = this.CreateConditionTextAndStaturResults(null);
  11. List<string[]> list2 = new List<string[]>();
  12. foreach (KeyValuePair<string[], bool> keyValuePair in list)
  13. {
  14. list2.Add(keyValuePair.Key);
  15. }
  16. return list2;
  17. }
  18. public virtual List<KeyValuePair<string[], bool>> CreateConditionTextAndStaturResults(Status status)
  19. {
  20. List<KeyValuePair<string[], bool>> list = new List<KeyValuePair<string[], bool>>();
  21. if (this.yotogi_class != null)
  22. {
  23. bool value = false;
  24. if (status != null && status.yotogiClass.Contains(this.yotogi_class.id) && this.yotogi_class_level <= status.yotogiClass.Get(this.yotogi_class.id).level)
  25. {
  26. value = true;
  27. }
  28. string text = Product.supportMultiLanguage ? this.yotogi_class.termName : this.yotogi_class.drawName;
  29. list.Add(new KeyValuePair<string[], bool>(new string[]
  30. {
  31. text
  32. }, value));
  33. }
  34. if (0 < this.inyoku)
  35. {
  36. bool value2 = status != null && this.inyoku <= status.inyoku;
  37. list.Add(new KeyValuePair<string[], bool>(new string[]
  38. {
  39. "MaidStatus/条件文/淫欲 {0}",
  40. this.inyoku.ToString()
  41. }, value2));
  42. }
  43. if (0 < this.m_value)
  44. {
  45. bool value3 = status != null && this.m_value <= status.mvalue;
  46. list.Add(new KeyValuePair<string[], bool>(new string[]
  47. {
  48. "MaidStatus/条件文/M性 {0}",
  49. this.m_value.ToString()
  50. }, value3));
  51. }
  52. if (0 < this.hentai)
  53. {
  54. bool value4 = status != null && this.hentai <= status.hentai;
  55. list.Add(new KeyValuePair<string[], bool>(new string[]
  56. {
  57. "MaidStatus/条件文/変態 {0}",
  58. this.hentai.ToString()
  59. }, value4));
  60. }
  61. if (0 < this.housi)
  62. {
  63. bool value5 = status != null && this.housi <= status.housi;
  64. list.Add(new KeyValuePair<string[], bool>(new string[]
  65. {
  66. "MaidStatus/条件文/奉仕 {0}",
  67. this.housi.ToString()
  68. }, value5));
  69. }
  70. if (0 < this.lovely)
  71. {
  72. bool value6 = status != null && this.lovely <= status.lovely;
  73. list.Add(new KeyValuePair<string[], bool>(new string[]
  74. {
  75. "MaidStatus/条件文/可憐 {0}",
  76. this.lovely.ToString()
  77. }, value6));
  78. }
  79. if (0 < this.elegance)
  80. {
  81. bool value7 = status != null && this.elegance <= status.elegance;
  82. list.Add(new KeyValuePair<string[], bool>(new string[]
  83. {
  84. "MaidStatus/条件文/気品 {0}",
  85. this.elegance.ToString()
  86. }, value7));
  87. }
  88. if (0 < this.charm)
  89. {
  90. bool value8 = status != null && this.charm <= status.charm;
  91. list.Add(new KeyValuePair<string[], bool>(new string[]
  92. {
  93. "MaidStatus/条件文/魅惑 {0}",
  94. this.charm.ToString()
  95. }, value8));
  96. }
  97. if (this.requestMarried)
  98. {
  99. bool value9 = status != null && status.specialRelation == SpecialRelation.Married;
  100. list.Add(new KeyValuePair<string[], bool>(new string[]
  101. {
  102. "MaidStatus/条件文/状態嫁"
  103. }, value9));
  104. }
  105. return list;
  106. }
  107. public int inyoku;
  108. public int m_value;
  109. public int hentai;
  110. public int housi;
  111. public int lovely;
  112. public int elegance;
  113. public int charm;
  114. public bool[] seikeiken;
  115. public YotogiClass.Data yotogi_class;
  116. public int yotogi_class_level;
  117. public bool requestMarried;
  118. }
  119. }