MinotaurGuard.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. ///<reference path="../Rooms/Forest/Maze/People/MinotaurGuard.ts"/>
  2. (new CombatDescription("Minotaur Attacks"))
  3. .setDescriptionFunction((actor, target, weapons, markers) => {
  4. let say = new Say();
  5. if (markers.includes(CombatHit.MISS)) {
  6. say.add("The minotaur heaves his heavy punches at you, but you narrowly avoid it.");
  7. } else if (markers.includes(CombatHit.HIT)) {
  8. say.add("The minotaur punches you with ease.");
  9. } else if (markers.includes(CombatHit.CRITICAL)) {
  10. say.add("The minotaur punches you in the gut. Ouch, you felt that HARD.");
  11. }
  12. say.add(" ");
  13. if (markers.includes(CombatResult.KILLED)) {
  14. say.add("YOU ARE DEAD.");
  15. } else if (markers.includes(CombatResult.KNOCKED_OFF)) {
  16. say.add("You lose consciousness.");
  17. } else if (markers.includes(CombatResult.KNOCKED)) {
  18. say.add("You are knocked to the ground!");
  19. }
  20. return say;
  21. })
  22. .addUnit()
  23. .setActor(MinotaurGuard)
  24. .setTarget(WorldState.player)
  25. .setWeapon(Thing)
  26. .addMarker(AdaptiveDifferential.FULLYADAPTIVE(CombatHit.MISS, CombatHit.HIT, CombatHit.CRITICAL))
  27. .addMarker(AdaptiveDifferential.FULLYADAPTIVE(CombatResult.KNOCKED, CombatResult.KILLED, CombatResult.KNOCKED_OFF))
  28. ;