CombatMarker.ts 994 B

123456789101112131415161718192021
  1. /// <reference path="../ContentMarker.ts" />
  2. /**
  3. * These are the overall results of the roll. Every attack will have at least one of these.
  4. * If making a new description, you should clone it for each CombatResult variant.
  5. */
  6. class CombatHit extends ContentMarker {
  7. public static MISS = new CombatHit("Miss", true);
  8. public static HIT = new CombatHit("Hit", true);
  9. public static CRITICAL = new CombatHit("Strong Hit", true);
  10. }
  11. /**
  12. * These are markers that explain what happened because of the attack.
  13. * They are mandatory.
  14. * When making an attack, you should clone the description for each of those, adding this information to it.
  15. */
  16. class CombatResult extends ContentMarker {
  17. public static KNOCKED = new CombatResult("Target was knocked down by the attack", true);
  18. public static KNOCKED_OFF = new CombatResult("Target was knocked off by the attack, becoming unconscious", true);
  19. public static KILLED = new CombatResult("Target was killed by this attack", true);
  20. }