subterfuge.lua 584 B

12345678910111213141516171819202122232425262728293031
  1. local Subterfuge = {}
  2. ----------------
  3. -- Meta
  4. ----------------
  5. Subterfuge.name = 'Subterfuge'
  6. Subterfuge.code = 'subterfuge'
  7. Subterfuge.text = 'Eva is cloaked because she killed someone.'
  8. Subterfuge.hide = false
  9. ----------------
  10. -- Data
  11. ----------------
  12. Subterfuge.duration = 1.5
  13. function Subterfuge:activate()
  14. self.timer = Subterfuge.duration
  15. end
  16. function Subterfuge:update()
  17. self.owner.cloak = 1
  18. self.timer = timer.rot(self.timer, function()
  19. ctx.buffs:remove(self.owner, self.code)
  20. end)
  21. end
  22. function Subterfuge:stack()
  23. self.timer = self.duration
  24. end
  25. return Subterfuge