|
|
@ -113,22 +113,29 @@ function outgame:procGenerateName()
|
|
|
|
-- fy ma try zo -->
|
|
|
|
-- fy ma try zo -->
|
|
|
|
local firstName = "test2"
|
|
|
|
local firstName = "test2"
|
|
|
|
local lastName = "test"
|
|
|
|
local lastName = "test"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Fyros and Matis are using "first name, last name" order
|
|
|
|
|
|
|
|
-- Trykers and Zoraïs are using "last name, first name" order
|
|
|
|
if tonumber(dbNameRace) == 1 then
|
|
|
|
if tonumber(dbNameRace) == 1 then
|
|
|
|
-- Fyros
|
|
|
|
-- Fyros
|
|
|
|
firstName = self:getFyrosFirstName()
|
|
|
|
firstName = self:getFyrosFirstName()
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
lastName = self:getFyrosLastName()
|
|
|
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
elseif tonumber(dbNameRace) == 2 then
|
|
|
|
elseif tonumber(dbNameRace) == 2 then
|
|
|
|
-- Matis
|
|
|
|
-- Matis
|
|
|
|
firstName = self:getMatisFirstName()
|
|
|
|
firstName = self:getMatisFirstName()
|
|
|
|
lastName = self:getMatisLastName()
|
|
|
|
lastName = self:getMatisLastName()
|
|
|
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
elseif tonumber(dbNameRace) == 3 then
|
|
|
|
elseif tonumber(dbNameRace) == 3 then
|
|
|
|
-- Tryker
|
|
|
|
-- Tryker
|
|
|
|
firstName = self:getTrykerFirstName()
|
|
|
|
firstName = self:getTrykerFirstName()
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
lastName = self:getTrykerLastName()
|
|
|
|
|
|
|
|
fullnameResult = lastName .. " " .. firstName
|
|
|
|
elseif tonumber(dbNameRace) == 4 then
|
|
|
|
elseif tonumber(dbNameRace) == 4 then
|
|
|
|
-- Zorai
|
|
|
|
-- Zorai
|
|
|
|
firstName = self:getZoraiFirstName()
|
|
|
|
firstName = self:getZoraiFirstName()
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
|
|
|
|
fullnameResult = lastName .. " " .. firstName
|
|
|
|
elseif tonumber(dbNameRace) == 5 then
|
|
|
|
elseif tonumber(dbNameRace) == 5 then
|
|
|
|
-- Maraudeurs
|
|
|
|
-- Maraudeurs
|
|
|
|
|
|
|
|
|
|
|
@ -164,9 +171,11 @@ function outgame:procGenerateName()
|
|
|
|
-- Zorai
|
|
|
|
-- Zorai
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
lastName = self:getZoraiLastName()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
fullnameResult = firstName .. " " .. lastName
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- always use first name for character name
|
|
|
|
nameResult = firstName
|
|
|
|
nameResult = firstName
|
|
|
|
|
|
|
|
|
|
|
|
uiNameFull.hardtext = fullnameResult
|
|
|
|
uiNameFull.hardtext = fullnameResult
|
|
|
|