12 lines
317 B
Lua
12 lines
317 B
Lua
|
local CharacterData = Object:extend()
|
||
|
local charutils = require "game.utils.characters"
|
||
|
|
||
|
function CharacterData:getCommonData()
|
||
|
self.data = charutils.getCharacterData(self.simplename)
|
||
|
self.name = self.data.name
|
||
|
self.fullname = self.data.fullname
|
||
|
self.turns = self.data.turns
|
||
|
end
|
||
|
|
||
|
return CharacterData
|