imbue.lua 341 B

1234567891011121314
  1. local Imbue = extend(Shruju)
  2. Imbue.name = 'Imbue'
  3. Imbue.description = 'The shrine heals .4% of its maximum health every second.'
  4. function Imbue:apply()
  5. ctx.shrine.regen = ctx.shrine.regen + (ctx.shrine.maxHealth * .004)
  6. end
  7. function Imbue:remove()
  8. ctx.shrine.regen = ctx.shrine.regen - (ctx.shrine.maxHealth * .004)
  9. end
  10. return Imbue