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 6.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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 CD { get; }
  11. public int MaxBulletNum { get; }
  12. public List<ActiveSkillType> ListOfIActiveSkill { get; }
  13. public List<PassiveSkillType> ListOfIPassiveSkill { get; }
  14. public double Concealment { get; }
  15. public int AlertnessRadius { get; }
  16. public int ViewRange { get; }
  17. public int TimeOfOpeningOrLocking { get; }
  18. public int SpeedOfClimbingThroughWindows { get; }
  19. public int TimeOfOpenChest { get; }
  20. }
  21. public interface IGhost : IOccupation
  22. {
  23. }
  24. public interface IStudent : IOccupation
  25. {
  26. public int FixSpeed { get; }
  27. public int TreatSpeed { get; }
  28. }
  29. public class Assassin : IGhost
  30. {
  31. private const int moveSpeed = GameData.basicMoveSpeed / 380 * 473;
  32. public int MoveSpeed => moveSpeed;
  33. private const int maxHp = GameData.basicHp;
  34. public int MaxHp => maxHp;
  35. public const int cd = 0;
  36. public int CD => cd;
  37. public const int maxBulletNum = 1;
  38. public int MaxBulletNum => maxBulletNum;
  39. public BulletType InitBullet => BulletType.CommonAttackOfGhost;
  40. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.BecomeInvisible, ActiveSkillType.UseKnife });
  41. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  42. public double concealment = GameData.basicConcealment * 1.5;
  43. public double Concealment => concealment;
  44. public int alertnessRadius = (int)(GameData.basicAlertnessRadius * 1.3);
  45. public int AlertnessRadius => alertnessRadius;
  46. public int viewRange = (int)(GameData.basicViewRange * 1.3);
  47. public int ViewRange => viewRange;
  48. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking;
  49. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  50. public int speedOfClimbingThroughWindows = GameData.basicGhostSpeedOfClimbingThroughWindows;
  51. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  52. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  53. public int TimeOfOpenChest => timeOfOpenChest;
  54. }
  55. public class Teacher : IStudent
  56. {
  57. private const int moveSpeed = GameData.basicMoveSpeed / 38 * 40;
  58. public int MoveSpeed => moveSpeed;
  59. private const int maxHp = GameData.basicHp / 30 * 32;
  60. public int MaxHp => maxHp;
  61. public const int cd = 0;
  62. public int CD => cd;
  63. public const int maxBulletNum = 0;
  64. public int MaxBulletNum => maxBulletNum;
  65. public BulletType InitBullet => BulletType.Null;
  66. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.CanBeginToCharge });
  67. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  68. public const int fixSpeed = GameData.basicFixSpeed / 10 * 6;
  69. public int FixSpeed => fixSpeed;
  70. public const int treatSpeed = GameData.basicTreatSpeed / 10 * 8;
  71. public int TreatSpeed => treatSpeed;
  72. public const double concealment = GameData.basicConcealment * 0.9;
  73. public double Concealment => concealment;
  74. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  75. public int AlertnessRadius => alertnessRadius;
  76. public int viewRange = (int)(GameData.basicViewRange * 1.1);
  77. public int ViewRange => viewRange;
  78. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking * 12 / 10;
  79. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  80. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows * 12 / 10;
  81. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  82. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  83. public int TimeOfOpenChest => timeOfOpenChest;
  84. }
  85. public class Athlete : IStudent
  86. {
  87. private const int moveSpeed = GameData.basicMoveSpeed / 38 * 40;
  88. public int MoveSpeed => moveSpeed;
  89. private const int maxHp = GameData.basicHp / 30 * 32;
  90. public int MaxHp => maxHp;
  91. public const int cd = 0;
  92. public int CD => cd;
  93. public const int maxBulletNum = 0;
  94. public int MaxBulletNum => maxBulletNum;
  95. public BulletType InitBullet => BulletType.Null;
  96. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.CanBeginToCharge });
  97. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  98. public const int fixSpeed = GameData.basicFixSpeed / 10 * 6;
  99. public int FixSpeed => fixSpeed;
  100. public const int treatSpeed = GameData.basicTreatSpeed / 10 * 8;
  101. public int TreatSpeed => treatSpeed;
  102. public const double concealment = GameData.basicConcealment * 0.9;
  103. public double Concealment => concealment;
  104. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  105. public int AlertnessRadius => alertnessRadius;
  106. public int viewRange = (int)(GameData.basicViewRange * 1.1);
  107. public int ViewRange => viewRange;
  108. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking * 12 / 10;
  109. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  110. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows * 12 / 10;
  111. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  112. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  113. public int TimeOfOpenChest => timeOfOpenChest;
  114. }
  115. }