18 lines
415 B
Lua
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
|