sonic-radiance/sonic-radiance.love/game/abstractmobs/character/datas.lua
2021-05-16 10:06:20 +02:00

18 lines
415 B
Lua

local CharacterData = Object:extend()
function CharacterData:getCommonData()
self.data = core.datas:get("characters", self.simplename)
self.name = self.data.name
self.fullname = self.data.fullname
self.turns = self.data.turns
end
function CharacterData:getWeaknesses()
return self.data.weakTo
end
function CharacterData:getResistences()
return self.data.resists
end
return CharacterData