模块:Jobs/alias
来自小鱼君和他的朋友们
< 模块:Jobs
此模块的文档可以在模块:Jobs/alias/doc创建
-- 职业名称标准化 local alias = {} function setAlias(array,code) for i,name in ipairs(array) do alias[array[i]] = code end end -- 近战 setAlias({'盗贼','盗','贼','thief','thf'},'thief') setAlias({'忍术师','忍者','忍','ninja','nja'},'ninja') setAlias({'枪术师','枪术士','枪兵','lancer','lac'},'lancer') setAlias({'龙骑兵','龙骑士','龙骑','dragon','dragoon','dra'},'dragoon') -- 远敏 setAlias({'弓箭手','archer','arc'},'archer') setAlias({'吟游诗人','诗人','诗','bard','brd'},'bard') setAlias({'机工师','机工士','机械师','机工','技工','机','machinist','mch'},'machinist') -- 法爷 setAlias({'学者','学','scholar','sch'},'scholar') setAlias({'召唤师','召唤','召','summoner','sum'},'summoner') setAlias({'咒术师','咒术','咒','spellmaster','spm'},'spellmaster') setAlias({'黑魔法师','黑魔','black mage','blackmage','bkm'},'blackmage') -- 奶妈 setAlias({'幻术师','幻术','幻','illusionist','ill'},'illusionist') setAlias({'白魔法师','白魔','白','white mage','whitemage','whm'},'whitemage') setAlias({'元灵导师','元灵','elementalist','elementals','elemental','element','elm'},'elementalist') setAlias({'占星术师','占星术士','占星师','占星','占','astrologer','ast'},'astrologer') setAlias({'药剂师','护士','pharmascist','pha'},'pharmacist') setAlias({'魔道学者','魔药师','暗黑学者','魔学','魔女','magic medicine','magicmedicine','mgm'},'magicmedicine') -- 坦克 setAlias({'剑术师','剑士','swordsman','swordman','sword','swd'},'swordsman') setAlias({'圣骑士','骑士','圣骑','骑','paladin','pld'},'paladin') setAlias({'陷阱大师','陷阱','fraudster','frd'},'fraudster') setAlias({'斧术师','斧','axeman','axe'},'axeman') setAlias({'狂战士','战士','战爹','战','berserker','bsk'},'berserker') setAlias({'暗黑骑士','暗骑','暗','dark knight','darkknight','darknight','dk','dkn'},'darkknight') -- 生产 -- 采集 return alias