Module:GetNames

From SWGoH Wiki
Jump to navigationJump to search

--[[
This Module is used to keep naming conventions consistent throughout the wiki by converting baseid, short name or abbreviations into the full name of:
 - Units: Characters, Ships and NPCs
 - Gear
--]]

local p = {}

--Global variables go here--



--Functions--
--[[-------
  UNITS
--]]-------
function p.units(name)
 id = name.args[1] 

unitArray = {
Aayla='Aayla Secura',
AAYLASECURA='Aayla Secura',
Ackbar='Admiral Ackbar',
ADMIRALACKBAR='Admiral Ackbar',
Ahsoka='Ahsoka Tano',
AHSOKATANO='Ahsoka Tano',
Fulcrum='Ahsoka Tano (Fulcrum)',
FULCRUMAHSOKA='Ahsoka Tano (Fulcrum)',
Holdo='Amilyn Holdo',
AMILYNHOLDO='Amilyn Holdo',
ARCT='ARC Trooper',
ARCTROOPER501ST='ARC Trooper',
Asajj='Asajj Ventress',
ASAJVENTRESS='Asajj Ventress',
Aurra='Aurra Sing',
AURRA_SING='Aurra Sing',
B1='B1 Battle Droid',
B1BATTLEDROIDV2='B1 Battle Droid',
B2='B2 Super Battle Droid',
B2SUPERBATTLEDROID='B2 Super Battle Droid',
Barriss='Barriss Offee',
BARRISSOFFEE='Barriss Offee',
Bastila='Bastila Shan',
BASTILASHAN='Bastila Shan',
FBS='Bastila Shan (Fallen)',
BASTILASHANDARK='Bastila Shan (Fallen)',
Baze='Baze Malbus',
BAZEMALBUS='Baze Malbus',
BB8='BB-8',
BB8='BB-8',
Biggs='Biggs Darklighter',
BIGGSDARKLIGHTER='Biggs Darklighter',
Bistan='Bistan',
BISTAN='Bistan',
Boba='Boba Fett',
BOBAFETT='Boba Fett',
Bodhi='Bodhi Rook',
BODHIROOK='Bodhi Rook',
Bossk='Bossk',
BOSSK='Bossk',
C3PO='C-3PO',
C3POLEGENDARY='C-3PO',
Cad='Cad Bane',
CADBANE='Cad Bane',
Ordo='Canderous Ordo',
CANDEROUSORDO='Canderous Ordo',
CHS='Captain Han Solo',
HOTHHAN='Captain Han Solo',
Phasma='Captain Phasma',
PHASMA='Captain Phasma',
Carth='Carth Onasi',
CARTHONASI='Carth Onasi',
Cassian='Cassian Andor',
CASSIANANDOR='Cassian Andor',
Cody='CC-2224 "Cody"',
CC2224='CC-2224 "Cody"',
Chewbacca='Chewbacca',
CHEWBACCALEGENDARY='Chewbacca',
Chirpa='Chief Chirpa',
CHIEFCHIRPA='Chief Chirpa',
Nebit='Chief Nebit',
CHIEFNEBIT='Chief Nebit',
Chirrut='Chirrut Imwe',
CHIRRUTIMWE='Chirrut Imwe',
Chopper='Chopper',
CHOPPERS3='Chopper',
CS='Clone Sergeant - Phase I',
CLONESERGEANTPHASEI='Clone Sergeant - Phase I',
CWChewy='Clone Wars Chewbacca',
CLONEWARSCHEWBACCA='Clone Wars Chewbacca',
Starck='Colonel Starck',
COLONELSTARCK='Colonel Starck',
CLS='Commander Luke Skywalker',
COMMANDERLUKESKYWALKER='Commander Luke Skywalker',
CUP='Coruscant Underworld Police',
CORUSCANTUNDERWORLDPOLICE='Coruscant Underworld Police',
Dooku='Count Dooku',
COUNTDOOKU='Count Dooku',
Echo='Echo',
CT210408='CT-21-0408 "Echo"',
CT210408Echo='CT-21-0408 "Echo"',
Fives='CT-5555 "Fives"',
CT5555='CT-5555 "Fives"',
Rex='CT-7567 "Rex"',
CT7567='CT-7567 "Rex"',
Malak='Darth Malak',
DARTHMALAK='Darth Malak',
Maul='Maul',
MAULS7='Maul',
MAUL='Darth Maul',
Nihilus='Darth Nihilus',
DARTHNIHILUS='Darth Nihilus',
DRevan='Darth Revan',
DARTHREVAN='Darth Revan',
Sidious='Darth Sidious',
DARTHSIDIOUS='Darth Sidious',
Sion='Darth Sion',
DARTHSION='Darth Sion',
Traya='Darth Traya',
DARTHTRAYA='Darth Traya',
Vader='Darth Vader',
VADER='Darth Vader',
Dathcha='Dathcha',
DATHCHA='Dathcha',
DT='Death Trooper',
DEATHTROOPER='Death Trooper',
Dengar='Dengar',
DENGAR='Dengar',
DK='Director Krennic',
DIRECTORKRENNIC='Director Krennic',
Droideka='Droideka',
DROIDEKA='Droideka',
Koth='Eeth Koth',
EETHKOTH='Eeth Koth',
Embo='Embo',
EMBO='Embo',
Palpatine='Emperor Palpatine',
EMPERORPALPATINE='Emperor Palpatine',
Nest='Enfys Nest',
ENFYSNEST='Enfys Nest',
Elder='Ewok Elder',
EWOKELDER='Ewok Elder',
EScout='Ewok Scout',
EWOKSCOUT='Ewok Scout',
Ezra='Ezra Bridger',
EZRABRIDGERS3='Ezra Bridger',
Finn='Finn',
FINN='Finn',
FOX='First Order Executioner',
FIRSTORDEREXECUTIONER='First Order Executioner',
FOO='First Order Officer',
FIRSTORDEROFFICERMALE='First Order Officer',
FOSFTP='First Order SF TIE Pilot',
FIRSTORDERSPECIALFORCESPILOT='First Order SF TIE Pilot',
FOST='First Order Stormtrooper',
FIRSTORDERTROOPER='First Order Stormtrooper',
FOTP='First Order TIE Pilot',
FIRSTORDERTIEPILOT='First Order TIE Pilot',
FOSiT='Sith Trooper',
FOSITHTROOPER='Sith Trooper',
GGuard='Gamorrean Guard',
GAMORREANGUARD='Gamorrean Guard',
Saxon='Gar Saxon',
GARSAXON='Gar Saxon',
Zeb='Garazeb "Zeb" Orrelios',
ZEBS3='Garazeb "Zeb" Orrelios',
GenHux='General Hux',
GENERALHUX='General Hux',
Grievous='General Grievous',
GRIEVOUS='General Grievous',
GK='General Kenobi',
GENERALKENOBI='General Kenobi',
GAS='General Skywalker',
GENERALSKYWALKER='General Skywalker',
Veers='General Veers',
VEERS='General Veers',
GeoBrood='Geonosian Brood Alpha',
GEONOSIANBROODALPHA='Geonosian Brood Alpha',
GeoSold='Geonosian Soldier',
GEONOSIANSOLDIER='Geonosian Soldier',
GeoSpy='Geonosian Spy',
GEONOSIANSPY='Geonosian Spy',
Thrawn='Grand Admiral Thrawn',
GRANDADMIRALTHRAWN='Grand Admiral Thrawn',
GMY='Grand Master Yoda',
GRANDMASTERYODA='Grand Master Yoda',
Tarkin='Grand Moff Tarkin',
GRANDMOFFTARKIN='Grand Moff Tarkin',
Greedo='Greedo',
GREEDO='Greedo',
Han='Han Solo',
HANSOLO='Han Solo',
Hera='Hera Syndulla',
HERASYNDULLAS3='Hera Syndulla',
HYoda='Hermit Yoda',
HERMITYODA='Hermit Yoda',
HK47='HK-47',
HK47='HK-47',
HRScout='Hoth Rebel Scout',
HOTHREBELSCOUT='Hoth Rebel Scout',
HRSoldier='Hoth Rebel Soldier',
HOTHREBELSOLDIER='Hoth Rebel Soldier',
IG100='IG-100 MagnaGuard',
MAGNAGUARD='IG-100 MagnaGuard',
IG86='IG-86 Sentinel Droid',
IG86SENTINELDROID='IG-86 Sentinel Droid',
IG88='IG-88',
IG88='IG-88',
GunDi='Ima-Gun Di',
IMAGUNDI='Ima-Gun Di',
ImpDroid='Imperial Probe Droid',
IMPERIALPROBEDROID='Imperial Probe Droid',
ISC='Imperial Super Commando',
IMPERIALSUPERCOMMANDO='Imperial Super Commando',
Jango='Jango Fett',
JANGOFETT='Jango Fett',
Jawa='Jawa',
JAWA='Jawa',
JEngineer='Jawa Engineer',
JAWAENGINEER='Jawa Engineer',
JScavenger='Jawa Scavenger',
JAWASCAVENGER='Jawa Scavenger',
Consular='Jedi Consular',
JEDIKNIGHTCONSULAR='Jedi Consular',
JKAnakin='Jedi Knight Anakin',
ANAKINKNIGHT='Jedi Knight Anakin',
JKGuard='Jedi Knight Guardian',
JEDIKNIGHTGUARDIAN='Jedi Knight Guardian',
JKRevan='Jedi Knight Revan',
JEDIKNIGHTREVAN='Jedi Knight Revan',
Jolee='Jolee Bindo',
JOLEEBINDO='Jolee Bindo',
Juhani='Juhani',
JUHANI='Juhani',
Jyn='Jyn Erso',
JYNERSO='Jyn Erso',
K2SO='K-2SO',
K2SO='K-2SO',
Kanan='Kanan Jarrus',
KANANJARRUSS3='Kanan Jarrus',
Kiadi='Ki-Adi-Mundi',
KIADIMUNDI='Ki-Adi-Mundi',
Kit='Kit Fisto',
KITFISTO='Kit Fisto',
Kylo='Kylo Ren',
KYLOREN='Kylo Ren',
KRU='Kylo Ren (Unmasked)',
KYLORENUNMASKED='Kylo Ren (Unmasked)',
L337='L3-37',
L3_37='L3-37',
Lando='Lando Calrissian',
ADMINISTRATORLANDO='Lando Calrissian',
Lobot='Lobot',
LOBOT='Lobot',
Logray='Logray',
LOGRAY='Logray',
Farmboy='Luke Skywalker (Farmboy)',
LUKESKYWALKER='Luke Skywalker (Farmboy)',
Luminara='Luminara Unduli',
LUMINARAUNDULI='Luminara Unduli',
Mace='Mace Windu',
MACEWINDU='Mace Windu',
Magmatrooper='Magmatrooper',
MAGMATROOPER='Magmatrooper',
Mission='Mission Vao',
MISSIONVAO='Mission Vao',
Enforcer='Mob Enforcer',
HUMANTHUG='Mob Enforcer',
Talzin='Mother Talzin',
MOTHERTALZIN='Mother Talzin',
NSAcolyte='Nightsister Acolyte',
NIGHTSISTERACOLYTE='Nightsister Acolyte',
NSInitiate='Nightsister Initiate',
NIGHTSISTERINITIATE='Nightsister Initiate',
NSSpirit='Nightsister Spirit',
NIGHTSISTERSPIRIT='Nightsister Spirit',
NSZombie='Nightsister Zombie',
NIGHTSISTERZOMBIE='Nightsister Zombie',
Nute='Nute Gunray',
NUTEGUNRAY='Nute Gunray',
OldBen='Obi-Wan Kenobi (Old Ben)',
OLDBENKENOBI='Obi-Wan Kenobi (Old Ben)',
Daka='Old Daka',
DAKA='Old Daka',
Padme='Padme Amidala',
PADMEAMIDALA='Padme Amidala',
Pao='Pao',
PAO='Pao',
Paploo='Paploo',
PAPLOO='Paploo',
Plo='Plo Koon',
PLOKOON='Plo Koon',
Poe='Poe Dameron',
POE='Poe Dameron',
Poggle='Poggle the Lesser',
POGGLETHELESSER='Poggle the Lesser',
Leia='Princess Leia',
PRINCESSLEIA='Princess Leia',
Qira="Qi'ra",
QIRA="Qi'ra",
QGJ='Qui-Gon Jinn',
QUIGONJINN='Qui-Gon Jinn',
R2D2='R2-D2',
R2D2_LEGENDARY='R2-D2',
RangeTroop='Range Trooper',
RANGETROOPER='Range Trooper',
ROLO='Rebel Officer Leia Organa',
HOTHLEIA='Rebel Officer Leia Organa',
ResPilot='Resistance Pilot',
RESISTANCEPILOT='Resistance Pilot',
ResTroop='Resistance Trooper',
RESISTANCETROOPER='Resistance Trooper',
JTR='Rey (Jedi Training)',
REYJEDITRAINING='Rey (Jedi Training)',
REY='Rey (Scavenger)',
GLREY='Rey',
Rose='Rose Tico',
ROSETICO='Rose Tico',
RG='Royal Guard',
ROYALGUARD='Royal Guard',
Sabine='Sabine Wren',
SABINEWRENS3='Sabine Wren',
Savage='Savage Opress',
SAVAGEOPRESS='Savage Opress',
SRP='Scarif Rebel Pathfinder',
SCARIFREBEL='Scarif Rebel Pathfinder',
Shaakti='Shaak Ti',
SHAAKTI='Shaak Ti',
Shoretrooper='Shoretrooper',
SHORETROOPER='Shoretrooper',
SithAss='Sith Assassin',
SITHASSASSIN='Sith Assassin',
SithMaur='Sith Marauder',
SITHMARAUDER='Sith Marauder',
SithTroop='Sith Empire Trooper',
SITHTROOPER='Sith Empire Trooper',
Snowtrooper='Snowtrooper',
SNOWTROOPER='Snowtrooper',
Stormtrooper='Stormtrooper',
STORMTROOPER='Stormtrooper',
STH='Stormtrooper Han',
STORMTROOPERHAN='Stormtrooper Han',
SunFac='Sun Fac',
SUNFAC='Sun Fac',
T3M4='T3-M4',
T3_M4='T3-M4',
Talia='Talia',
TALIA='Talia',
Teebo='Teebo',
TEEBO='Teebo',
TFP='TIE Fighter Pilot',
TIEFIGHTERPILOT='TIE Fighter Pilot',
TuskRaider='Tusken Raider',
TUSKENRAIDER='Tusken Raider',
TuskShaman='Tusken Shaman',
TUSKENSHAMAN='Tusken Shaman',
Ugnaught='Ugnaught',
UGNAUGHT='Ugnaught',
Uror="URoRRuR'R'R",
URORRURRR="URoRRuR'R'R",
VanChewy='Vandor Chewbacca',
YOUNGCHEWBACCA='Vandor Chewbacca',
VetChewy='Veteran Smuggler Chewbacca',
SMUGGLERCHEWBACCA='Veteran Smuggler Chewbacca',
VetHan='Veteran Smuggler Han Solo',
SMUGGLERHAN='Veteran Smuggler Han Solo',
Visas='Visas Marr',
VISASMARR='Visas Marr',
Wampa='Wampa',
WAMPA='Wampa',
Wat='Wat Tambor',
WATTAMBOR='Wat Tambor',
Wedge='Wedge Antilles',
WEDGEANTILLES='Wedge Antilles',
Wicket='Wicket',
WICKET='Wicket',
YoHan='Young Han Solo',
YOUNGHAN='Young Han Solo',
YoLando='Young Lando Calrissian',
YOUNGLANDO='Young Lando Calrissian',
Zaalbar='Zaalbar',
ZAALBAR='Zaalbar',
Zam='Zam Wesell',
ZAMWESELL='Zam Wesell',
AhsokaShip="Ahsoka Tano's Jedi Starfighter",
JEDISTARFIGHTERAHSOKATANO="Ahsoka Tano's Jedi Starfighter",
AnakinShip="Anakin's Eta-2 Starfighter",
JEDISTARFIGHTERANAKIN="Anakin's Eta-2 Starfighter",
B28='B-28 Extinction-class Bomber',
SITHBOMBER='B-28 Extinction-class Bomber',
BiggsShip="Biggs Darklighter's X-wing",
XWINGRED3="Biggs Darklighter's X-wing",
BistanShip="Bistan's U-wing",
UWINGSCARIF="Bistan's U-wing",
BTLB='BTL-B Y-wing Starfighter',
YWINGCLONEWARS='BTL-B Y-wing Starfighter',
CassianShip="Cassian's U-wing",
UWINGROGUEONE="Cassian's U-wing",
Chimaera='Chimaera',
CAPITALCHIMAERA='Chimaera',
CSShip="Clone Sergeant's ARC-170",
ARC170CLONESERGEANT="Clone Sergeant's ARC-170",
EbonHawk='Ebon Hawk',
EBONHAWK='Ebon Hawk',
EmperorShuttle="Emperor's Shuttle",
EMPERORSSHUTTLE="Emperor's Shuttle",
Endurance='Endurance',
CAPITALJEDICRUISER='Endurance',
Executrix='Executrix',
CAPITALSTARDESTROYER='Executrix',
FOSFTIE='First Order SF TIE Fighter',
TIEFIGHTERFOSF='First Order SF TIE Fighter',
FOTIE='First Order TIE Fighter',
TIEFIGHTERFIRSTORDER='First Order TIE Fighter',
Gauntlet='Gauntlet Starfighter',
GAUNTLETSTARFIGHTER='Gauntlet Starfighter',
GSShip="Geonosian Soldier's Starfighter",
GEONOSIANSTARFIGHTER2="Geonosian Soldier's Starfighter",
GeoSpyShip="Geonosian Spy's Starfighter",
GEONOSIANSTARFIGHTER3="Geonosian Spy's Starfighter",
Ghost='Ghost',
GHOST='Ghost',
HanFalcon="Han's Millennium Falcon",
MILLENNIUMFALCON="Han's Millennium Falcon",
HomeOne='Home One',
CAPITALMONCALAMARICRUISER='Home One',
Hound="Hound's Tooth",
HOUNDSTOOTH="Hound's Tooth",
Hyena='Hyena Bomber',
HYENABOMBER='Hyena Bomber',
IG2000='IG-2000',
IG2000='IG-2000',
ImpTIE='Imperial TIE Fighter',
TIEFIGHTERIMPERIAL='Imperial TIE Fighter',
ConsularShip="Jedi Consular's Starfighter",
JEDISTARFIGHTERCONSULAR="Jedi Consular's Starfighter",
KyloShuttle="Kylo Ren's Command Shuttle",
COMMANDSHUTTLE="Kylo Ren's Command Shuttle",
LandoFalcon="Lando's Millennium Falcon",
MILLENNIUMFALCONPRISTINE="Lando's Millennium Falcon",
Malevolence="Malevolence",
CAPITALMALEVOLENCE="Malevolence",
Negotiator='Negotiator',
CAPITALNEGOTIATOR='Negotiator',
Phantom='Phantom II',
PHANTOM2='Phantom II',
PloShip="Plo Koon's Jedi Starfighter",
BLADEOFDORIN="Plo Koon's Jedi Starfighter",
PoeShip="Poe Dameron's X-wing",
XWINGBLACKONE="Poe Dameron's X-wing",
ResistanceShip='Resistance X-wing',
XWINGRESISTANCE='Resistance X-wing',
RexShip="Rex's ARC-170",
ARC170REX="Rex's ARC-170",
ReyFalcon="Rey's Millennium Falcon",
MILLENNIUMFALCONEP7="Rey's Millennium Falcon",
Scimitar='Scimitar',
SITHINFILTRATOR='Scimitar',
SithFighter='Sith Fighter',
SITHFIGHTER='Sith Fighter',
Slave='Slave I',
SLAVE1='Slave I',
SunFacShip="Sun Fac's Geonosian Starfighter",
GEONOSIANSTARFIGHTER1="Sun Fac's Geonosian Starfighter",
VaderTIE='TIE Advanced x1',
TIEADVANCED='TIE Advanced x1',
TIEReaper='TIE Reaper',
TIEREAPER='TIE Reaper',
TIESilencer='TIE Silencer',
TIESILENCER='TIE Silencer',
Umbaran='Umbaran Starfighter',
UMBARANSTARFIGHTER='Umbaran Starfighter',
Vulture='Vulture Droid',
VULTUREDROID='Vulture Droid',
WedgeShip="Wedge Antilles's X-wing",
XWINGRED2="Wedge Antilles's X-wing",
Xanadu='Xanadu Blood',
XANADUBLOOD='Xanadu Blood',
ARC501='501st ARC Trooper',
Ajunta='Ajunta Pall',
AssDroid1='Assault Droid Mk I',
AssDroid4='Assault Droid Mk IV',
B2Rocket='B2 Rocket Trooper',
Bendak='Bendak Starkiller',
BWGuard='Bespin Wing Guard',
Calo='Calo Nord',
CaBruiser='Cartel Bruiser',
CaSaboteur='Cartel Saboteur',
CaSpy='Cartel Spy',
CloneCapt='Clone Captain Phase I',
CloneLt='Clone Lieutenant Phase I',
ClonePrivate='Clone Private Phase I',
EwokWar='Ewok Warrior',
HRCommander='Hoth Rebel Commander',
ImpOf='Imperial Officer',
JSent='Jedi Sentinel-01',
JSent2='Jedi Sentinel-02',
B1Battle='OOM Battle Droid',
B1Commander='OOM Command Battle Droid',
B1Pilot='OOM Pilot Battle Droid',
ComDroid='Commando Droid',
PirateBr='Pirate Bruiser',
PirateEn='Pirate Enforcer',
PirateLead='Pirate Leader',
PirateSab='Pirate Saboteur',
Rancor='Rancor',
RebOf='Rebel Officer',
RebPilot='Rebel Pilot',
RebSold='Rebel Soldier',
RebSpy='Rebel Spy',
ReconST='Recon Stormtrooper',
SandCommander='Sandtrooper Commander',
SandTr='Sandtrooper',
ScoutTr='Scout Trooper',
SGMk1='Shield Generator Droid Mk 1',
SGMk2='Shield Generator Droid Mk 2',
SGMk3='Shield Generator Droid Mk 3',
SGMk4='Shield Generator Droid Mk 4',
SGMk5='Shield Generator Droid Mk 5',
SithCom='Sith Commando',
SithSold='Sith Soldier',
SnowScout='Snowtrooper Scout',
Soulless='NPC-Soulless',
STCommander='Stormtrooper Commander',
TGuard ='Temple Guard',
Teren='Terentatek',
TuskBrute='Tusken Brute',
TuskElder='Tusken Elder',
FlameTurret='Flame Turret',
CryoTurret='Cryo Turret',
SithTurret='Sith Turret'
} 
--END unitArray
 if (unitArray[id] == nil) then
   return id
 else
   return unitArray[id]
 end
end --END Function units

--[[-------
  Gear
--]]-------
function p.gear(param)
 level = param.args.L
 name = param.args.N
 type = param.args.T

 if (level=="") then
   level=nil
 end
 if (type=="") then
   type=nil
 end

gearArray = {
gun='A-KT Stun Gun',
arakyd='Arakyd Droid Caller',
medpac='Athakam Medpac',
baw='BAW Armor Mod',
biotech='BioTech Implant',
blastech='BlasTech Weapon Mod',
carbanti='Carbanti Sensor Array',
cec='CEC Fusion Furnace',
chedak='Chedak Comlink',
hypo='Chiewab Hypo Syringe',
cuff='Czerka Stun Cuffs',
fabritech='Fabritech Data Pad',
loronar='Loronar Power Cell',
shield='Merr-Sonn Shield Generator',
detonator='Merr-Sonn Thermal Detonator',
neuro='Neuro-Saav Electrobinoculars',
design='Nubian Design Tech',
scanner='Nubian Security Scanner',
projector='Sienar Holo Projector',
keypad='SoroSuub Keypad',
hololens='TaggeCo Holo Lens',
zaltin='Zaltin Bacta Gel',
armaarmor='ArmaTek Armor Plating',
armabayonet='ArmaTek Bayonet',
armacyber='ArmaTek Cybernetics',
armadata='ArmaTek Data Pad',
armafusion='ArmaTek Fusion Furnace',
armalens='ArmaTek Holo Lens',
armakeypad='ArmaTek Key Pad',
armamedpac='ArmaTek Medpac',
armatool='ArmaTek Multi-tool',
armagun='ArmaTek Stun Gun',
armatactical='ArmaTek Tactical Data',
armadetonator='ArmaTek Thermal Detonator',
armavisor='ArmaTek Visor',
armawrist='ArmaTek Wrist Band',
kyroprod='Kyrotech Shock Prod',
kyrocpu='Kyrotech Battle Computer',
zerkhypo='Czerka Hypo Syringe',
zerkimplant='Czerka Implant',
zerkscanner='Czerka Security Scanner',
zerksensor='Czerka Sensor Array',
zerkshield='Czerka Shield Generator',
zerkcuff='Czerka Stun Cuffs',
pcfusion='Power Cell Injector (Fusion)',
pcionic='Power Cell Injector (Ionic)',
pcplasma='Power Cell Injector (Plasma)',
incell='Injector Cell',
inhandle='Injector Handle',
inhead='Injector Head',
I='Mk 1',
II='Mk 2',
III='Mk 3',
IV='Mk 4',
V='Mk 5',
VI='Mk 6',
VII='Mk 7',
VIII='Mk 8',
IX='Mk 9',
X='Mk 10',
XI='Mk 11',
XII='Mk 12',
XIII='Mk 13',
s='Salvage',
c='Component',
p='Prototype',
ps='Prototype Salvage'
}
--END gearArray
 
 if (level==nil) then
   if (type==nil) then
     if (gearArray[name]==nil) then
       return name
     else
       return gearArray[name]
     end
   else
     return gearArray[name].." "..gearArray[type]
   end
 elseif (type==nil)then
   return gearArray[level].." "..gearArray[name]
 else
   return gearArray[level].." "..gearArray[name].." "..gearArray[type]
 end
end --END Function gear


--[[-------
  Mod
--]]-------
function p.mod(param)
 type = param.args.Type
 slot = param.args.Slot
 stat = param.args.Stat
 tier = param.args.Tier

 if (slot=="") then
   slot=nil
 end
 if (type=="") then
   type=nil
 end
 if (tier=="") then
   tier=nil
 end
 if (stat=="") then
   stat=nil
 end


modArray = {
square='Transmitter',
arrow='Receiver',
diamond='Processor',
triangle='Holo-Array',
circle='Data-Bus',
plus='Multiplexer',
cc='Critical Chance',
cd='Critical Damage',
def='Defense',
hp='Health',
off='Offense',
pot='Potency',
spd='Speed',
ten='Tenacity',
prot='Protection',
ca='Crit Avoid',
acc='Accuracy'
}

 if (type==nil) then
   return modArray[stat].."-"..modArray[slot].."-"..tier
 elseif (type=="mys")then
   if (stat==nil) then
     return "Mystery-Random-"..tier
   else
     return "Mystery-"..modArray[stat].."-"..tier
   end
 elseif (type=="set")then
   return "Set-"..modArray[stat]
 elseif (type=="pri") then
   return "Primary-"..modArray[slot].."-"..modArray[stat]
 else
   return ERROR
 end


end--END Function mod

return p