cf396e9464
Fix #58
28 lines
No EOL
621 B
Lua
28 lines
No EOL
621 B
Lua
local ParentEffect = require "game.loot.effects.parent"
|
|
local HealEffect = ParentEffect:extend()
|
|
|
|
function HealEffect:new(effect, character)
|
|
self.effect = effect
|
|
self.character = character
|
|
end
|
|
|
|
function HealEffect:applyEffect()
|
|
|
|
end
|
|
|
|
function HealEffect:getText()
|
|
local num = self.effect.value
|
|
if (self.effect.computationMode == "percent") then
|
|
num = num .. "%"
|
|
end
|
|
local type = ""
|
|
if (self.effect.healType == "hp") then
|
|
type = "HP"
|
|
end
|
|
if (self.effect.healType == "mp") then
|
|
type = "MP"
|
|
end
|
|
return "Heal " .. num .. " " .. type;
|
|
end
|
|
|
|
return HealEffect |