zombie.lua 658 B

123456789101112131415161718192021222324252627
  1. local Zombie = {}
  2. ----------------
  3. -- Meta
  4. ----------------
  5. Zombie.name = 'Zombie'
  6. Zombie.code = 'zombie'
  7. Zombie.text = 'Brains.'
  8. Zombie.hide = false
  9. ----------------
  10. -- Data
  11. ----------------
  12. function Zombie:activate()
  13. self.owner.haste = self.owner.haste - (self.owner.class.speed * .5)
  14. self.damageMultAmount = self.owner.damageOutMultiplier * .5
  15. self.owner.damageOutMultiplier = self.owner.damageOutMultiplier - self.damageMultAmount
  16. end
  17. function Zombie:deactivate()
  18. self.owner.haste = self.owner.haste + (self.owner.class.speed * .5)
  19. self.owner.damageOutMultiplier = self.owner.damageOutMultiplier + self.damageMultAmount
  20. end
  21. return Zombie