mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 17:38:44 +00:00
Fixed: Fyros and Matis are using first name first while Trykers and Zoraïs are using last name first
--HG-- branch : develop
This commit is contained in:
parent
c3d3024507
commit
61934be39a
1 changed files with 10 additions and 1 deletions
|
@ -113,22 +113,29 @@ function outgame:procGenerateName()
|
|||
-- fy ma try zo -->
|
||||
local firstName = "test2"
|
||||
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
|
||||
-- Fyros
|
||||
firstName = self:getFyrosFirstName()
|
||||
lastName = self:getFyrosLastName()
|
||||
fullnameResult = firstName .. " " .. lastName
|
||||
elseif tonumber(dbNameRace) == 2 then
|
||||
-- Matis
|
||||
firstName = self:getMatisFirstName()
|
||||
lastName = self:getMatisLastName()
|
||||
fullnameResult = firstName .. " " .. lastName
|
||||
elseif tonumber(dbNameRace) == 3 then
|
||||
-- Tryker
|
||||
firstName = self:getTrykerFirstName()
|
||||
lastName = self:getTrykerLastName()
|
||||
fullnameResult = lastName .. " " .. firstName
|
||||
elseif tonumber(dbNameRace) == 4 then
|
||||
-- Zorai
|
||||
firstName = self:getZoraiFirstName()
|
||||
lastName = self:getZoraiLastName()
|
||||
fullnameResult = lastName .. " " .. firstName
|
||||
elseif tonumber(dbNameRace) == 5 then
|
||||
-- Maraudeurs
|
||||
|
||||
|
@ -164,9 +171,11 @@ function outgame:procGenerateName()
|
|||
-- Zorai
|
||||
lastName = self:getZoraiLastName()
|
||||
end
|
||||
|
||||
fullnameResult = firstName .. " " .. lastName
|
||||
end
|
||||
|
||||
fullnameResult = firstName .. " " .. lastName
|
||||
-- always use first name for character name
|
||||
nameResult = firstName
|
||||
|
||||
uiNameFull.hardtext = fullnameResult
|
||||
|
|
Loading…
Reference in a new issue