sonic-radiance/sonic-radiance.love/game/loot/effects/setstatus.lua

30 lines
707 B
Lua
Raw Normal View History

2020-09-19 11:10:20 +02:00
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