You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IOccupation.cs 7.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using Preparation.Utility;
  2. using System.Collections.Generic;
  3. namespace Preparation.Interface
  4. {
  5. public interface IOccupation
  6. {
  7. public int MoveSpeed { get; }
  8. public int MaxHp { get; }
  9. public BulletType InitBullet { get; }
  10. public int MaxBulletNum { get; }
  11. public List<ActiveSkillType> ListOfIActiveSkill { get; }
  12. public List<PassiveSkillType> ListOfIPassiveSkill { get; }
  13. public double Concealment { get; }
  14. public int AlertnessRadius { get; }
  15. public int ViewRange { get; }
  16. public int TimeOfOpeningOrLocking { get; }
  17. public int SpeedOfClimbingThroughWindows { get; }
  18. public int SpeedOfOpenChest { get; }
  19. }
  20. public interface IGhost : IOccupation
  21. {
  22. }
  23. public interface IStudent : IOccupation
  24. {
  25. public int FixSpeed { get; }
  26. public int TreatSpeed { get; }
  27. public int MaxGamingAddiction { get; }
  28. }
  29. public class Assassin : IGhost
  30. {
  31. private const int moveSpeed = (int)(GameData.basicMoveSpeed * 473.0 / 380);
  32. public int MoveSpeed => moveSpeed;
  33. private const int maxHp = GameData.basicHp;
  34. public int MaxHp => maxHp;
  35. public const int maxBulletNum = 1;
  36. public int MaxBulletNum => maxBulletNum;
  37. public BulletType InitBullet => BulletType.CommonAttackOfGhost;
  38. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.BecomeInvisible, ActiveSkillType.UseKnife });
  39. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  40. public double concealment = GameData.basicConcealment * 1.5;
  41. public double Concealment => concealment;
  42. public int alertnessRadius = (int)(GameData.basicAlertnessRadius * 1.3);
  43. public int AlertnessRadius => alertnessRadius;
  44. public int viewRange = (int)(GameData.basicViewRange * 1.3);
  45. public int ViewRange => viewRange;
  46. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking;
  47. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  48. public int speedOfClimbingThroughWindows = GameData.basicGhostSpeedOfClimbingThroughWindows;
  49. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  50. public int speedOfOpenChest = GameData.basicSpeedOfOpenChest;
  51. public int SpeedOfOpenChest => speedOfOpenChest;
  52. }
  53. public class Klee : IGhost
  54. {
  55. private const int moveSpeed = (int)(GameData.basicMoveSpeed * 155 / 127);
  56. public int MoveSpeed => moveSpeed;
  57. private const int maxHp = GameData.basicHp;
  58. public int MaxHp => maxHp;
  59. public const int maxBulletNum = 1;
  60. public int MaxBulletNum => maxBulletNum;
  61. public BulletType InitBullet => BulletType.CommonAttackOfGhost;
  62. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.JumpyBomb });
  63. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  64. public double concealment = GameData.basicConcealment;
  65. public double Concealment => concealment;
  66. public int alertnessRadius = (int)(GameData.basicAlertnessRadius * 1.069);
  67. public int AlertnessRadius => alertnessRadius;
  68. public int viewRange = (int)(GameData.basicViewRange * 1.1);
  69. public int ViewRange => viewRange;
  70. public int timeOfOpeningOrLocking = (int)(GameData.basicSpeedOfOpeningOrLocking / 1.1);
  71. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  72. public int speedOfClimbingThroughWindows = (int)(GameData.basicGhostSpeedOfClimbingThroughWindows / 1.1);
  73. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  74. public int speedOfOpenChest = (int)(GameData.basicSpeedOfOpenChest * 1.1);
  75. public int SpeedOfOpenChest => speedOfOpenChest;
  76. }
  77. public class Teacher : IStudent
  78. {
  79. private const int moveSpeed = GameData.basicMoveSpeed * 3 / 4;
  80. public int MoveSpeed => moveSpeed;
  81. private const int maxHp = GameData.basicHp * 10;
  82. public int MaxHp => maxHp;
  83. private const int maxGamingAddiction = GameData.basicMaxGamingAddiction * 10;
  84. public int MaxGamingAddiction => maxGamingAddiction;
  85. public const int maxBulletNum = 0;
  86. public int MaxBulletNum => maxBulletNum;
  87. public BulletType InitBullet => BulletType.Null;
  88. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.Punish });
  89. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  90. public const int fixSpeed = 0;
  91. public int FixSpeed => fixSpeed;
  92. public const int treatSpeed = GameData.basicTreatSpeed;
  93. public int TreatSpeed => treatSpeed;
  94. public const double concealment = GameData.basicConcealment * 0.5;
  95. public double Concealment => concealment;
  96. public const int alertnessRadius = GameData.basicAlertnessRadius / 2;
  97. public int AlertnessRadius => alertnessRadius;
  98. public int viewRange = GameData.basicViewRange * 9 / 10;
  99. public int ViewRange => viewRange;
  100. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking;
  101. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  102. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows / 2;
  103. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  104. public int speedOfOpenChest = GameData.basicSpeedOfOpenChest;
  105. public int SpeedOfOpenChest => speedOfOpenChest;
  106. }
  107. public class Athlete : IStudent
  108. {
  109. private const int moveSpeed = GameData.basicMoveSpeed * 40 / 38;
  110. public int MoveSpeed => moveSpeed;
  111. private const int maxHp = GameData.basicHp * 32 / 30;
  112. public int MaxHp => maxHp;
  113. private const int maxGamingAddiction = GameData.basicMaxGamingAddiction * 9 / 10;
  114. public int MaxGamingAddiction => maxGamingAddiction;
  115. public const int maxBulletNum = 0;
  116. public int MaxBulletNum => maxBulletNum;
  117. public BulletType InitBullet => BulletType.Null;
  118. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.CanBeginToCharge });
  119. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  120. public const int fixSpeed = GameData.basicFixSpeed * 6 / 10;
  121. public int FixSpeed => fixSpeed;
  122. public const int treatSpeed = GameData.basicTreatSpeed * 8 / 10;
  123. public int TreatSpeed => treatSpeed;
  124. public const double concealment = GameData.basicConcealment * 0.9;
  125. public double Concealment => concealment;
  126. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  127. public int AlertnessRadius => alertnessRadius;
  128. public int viewRange = (int)(GameData.basicViewRange * 1.1);
  129. public int ViewRange => viewRange;
  130. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking * 12 / 10;
  131. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  132. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows * 12 / 10;
  133. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  134. public int speedOfOpenChest = GameData.basicSpeedOfOpenChest;
  135. public int SpeedOfOpenChest => speedOfOpenChest;
  136. }
  137. }