SkillAcquisitionCondition.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. list.Add(new KeyValuePair<string, bool>(this.yotogi_class.drawName, value));
  29. }
  30. if (0 < this.inyoku)
  31. {
  32. bool value2 = status != null && this.inyoku <= status.inyoku;
  33. list.Add(new KeyValuePair<string, bool>("淫欲 " + this.inyoku.ToString(), value2));
  34. }
  35. if (0 < this.m_value)
  36. {
  37. bool value3 = status != null && this.m_value <= status.mvalue;
  38. list.Add(new KeyValuePair<string, bool>("M性 " + this.m_value.ToString(), value3));
  39. }
  40. if (0 < this.hentai)
  41. {
  42. bool value4 = status != null && this.hentai <= status.hentai;
  43. list.Add(new KeyValuePair<string, bool>("変態 " + this.hentai.ToString(), value4));
  44. }
  45. if (0 < this.housi)
  46. {
  47. bool value5 = status != null && this.housi <= status.housi;
  48. list.Add(new KeyValuePair<string, bool>("奉仕 " + this.housi.ToString(), value5));
  49. }
  50. if (0 < this.lovely)
  51. {
  52. bool value6 = status != null && this.lovely <= status.lovely;
  53. list.Add(new KeyValuePair<string, bool>("可憐 " + this.lovely.ToString(), value6));
  54. }
  55. if (0 < this.elegance)
  56. {
  57. bool value7 = status != null && this.elegance <= status.elegance;
  58. list.Add(new KeyValuePair<string, bool>("気品 " + this.elegance.ToString(), value7));
  59. }
  60. if (0 < this.charm)
  61. {
  62. bool value8 = status != null && this.charm <= status.charm;
  63. list.Add(new KeyValuePair<string, bool>("魅惑 " + this.charm.ToString(), value8));
  64. }
  65. return list;
  66. }
  67. public int inyoku;
  68. public int m_value;
  69. public int hentai;
  70. public int housi;
  71. public int lovely;
  72. public int elegance;
  73. public int charm;
  74. public bool[] seikeiken;
  75. public YotogiClass.Data yotogi_class;
  76. public int yotogi_class_level;
  77. }
  78. }