cf396e9464
Fix #58
30 lines
No EOL
707 B
Lua
30 lines
No EOL
707 B
Lua
local ParentEffect = require "game.loot.effects.parent"
|
|
local StatusEffect = ParentEffect:extend()
|
|
|
|
function StatusEffect:new(effect, character)
|
|
self.effect = effect
|
|
self.character = character
|
|
end
|
|
|
|
function StatusEffect:applyEffect()
|
|
|
|
end
|
|
|
|
function StatusEffect:getText()
|
|
local returnString = ""
|
|
if (self.effect.set) then
|
|
returnString = returnString .. "Give "
|
|
else
|
|
returnString = returnString .. "Remove "
|
|
end
|
|
|
|
if (self.effect.status == "allNegative") then
|
|
returnString = returnString .. "all negative effects"
|
|
else
|
|
returnString = returnString .. self.effect.status .. " " .. "effect"
|
|
end
|
|
|
|
return returnString
|
|
end
|
|
|
|
return StatusEffect |