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

19 lines
592 B

  1. import { Creature } from '../entity'
  2. import { LogEntry, LogLine, FAElem } from '../interface'
  3. import { Effect } from '../combat'
  4. import { SoloLine, ToBe } from '../language'
  5. export class InstantKill implements Effect {
  6. line: SoloLine<Creature> = (victim) => new LogLine(
  7. `${victim.name.capital} ${victim.name.conjugate(new ToBe())} killed instantly!`,
  8. new FAElem('fas fa-skull')
  9. )
  10. name = "Instant Kill"
  11. desc = "Instantly kills its victim"
  12. apply (target: Creature): LogEntry {
  13. target.vigors.Health = Math.min(0, target.vigors.Health)
  14. return this.line(target)
  15. }
  16. }