new txt files and generated .go files
- Implemented a new script to extract item names from items.go and generate a corresponding name.go file with constants and utility functions for name retrieval.
This commit is contained in:
@@ -11,6 +11,9 @@ const (
|
||||
)
|
||||
|
||||
func GetNameByEnum(itemNumber uint) Name {
|
||||
if int(itemNumber) >= len(Names) {
|
||||
return Name("")
|
||||
}
|
||||
return Name(Names[itemNumber])
|
||||
}
|
||||
|
||||
@@ -54,13 +57,13 @@ var Names = []string{
|
||||
"GreatMaul",
|
||||
"ShortSword",
|
||||
"Scimitar",
|
||||
"Sabre",
|
||||
"Saber",
|
||||
"Falchion",
|
||||
"CrystalSword",
|
||||
"BroadSword",
|
||||
"LongSword",
|
||||
"WarSword",
|
||||
"TwoHandedSword",
|
||||
"Two-HandedSword",
|
||||
"Claymore",
|
||||
"GiantSword",
|
||||
"BastardSword",
|
||||
@@ -68,7 +71,7 @@ var Names = []string{
|
||||
"GreatSword",
|
||||
"Dagger",
|
||||
"Dirk",
|
||||
"Kris",
|
||||
"Kriss",
|
||||
"Blade",
|
||||
"ThrowingKnife",
|
||||
"ThrowingAxe",
|
||||
@@ -162,7 +165,7 @@ var Names = []string{
|
||||
"Poignard",
|
||||
"Rondel",
|
||||
"Cinquedeas",
|
||||
"Stiletto",
|
||||
"Stilleto",
|
||||
"BattleDart",
|
||||
"Francisca",
|
||||
"WarDart",
|
||||
@@ -181,10 +184,10 @@ var Names = []string{
|
||||
"Bill",
|
||||
"BattleScythe",
|
||||
"Partizan",
|
||||
"BecDeCorbin",
|
||||
"Bec-de-Corbin",
|
||||
"GrimScythe",
|
||||
"JoStaff",
|
||||
"QuarterStaff",
|
||||
"Quarterstaff",
|
||||
"CedarStaff",
|
||||
"GothicStaff",
|
||||
"RuneStaff",
|
||||
@@ -193,13 +196,13 @@ var Names = []string{
|
||||
"CedarBow",
|
||||
"DoubleBow",
|
||||
"ShortSiegeBow",
|
||||
"LargeSiegeBow",
|
||||
"LongSiegeBow",
|
||||
"RuneBow",
|
||||
"GothicBow",
|
||||
"Arbalest",
|
||||
"SiegeCrossbow",
|
||||
"Ballista",
|
||||
"ChuKoNu",
|
||||
"Chu-Ko-Nu",
|
||||
"KhalimsFlail",
|
||||
"KhalimsWill",
|
||||
"Katar",
|
||||
@@ -229,7 +232,7 @@ var Names = []string{
|
||||
"WarSpike",
|
||||
"BerserkerAxe",
|
||||
"FeralAxe",
|
||||
"SilverEdgedAxe",
|
||||
"Silver-edgedAxe",
|
||||
"Decapitator",
|
||||
"ChampionAxe",
|
||||
"GloriousAxe",
|
||||
@@ -263,7 +266,7 @@ var Names = []string{
|
||||
"ColossusSword",
|
||||
"ColossusBlade",
|
||||
"BoneKnife",
|
||||
"MithrilPoint",
|
||||
"MithralPoint",
|
||||
"FangedKnife",
|
||||
"LegendSpike",
|
||||
"FlyingKnife",
|
||||
@@ -302,7 +305,7 @@ var Names = []string{
|
||||
"PelletBow",
|
||||
"GorgonCrossbow",
|
||||
"ColossusCrossbow",
|
||||
"DemonCrossBow",
|
||||
"DemonCrossbow",
|
||||
"EagleOrb",
|
||||
"SacredGlobe",
|
||||
"SmokedSphere",
|
||||
@@ -406,7 +409,7 @@ var Names = []string{
|
||||
"Scutum",
|
||||
"DragonShield",
|
||||
"Pavise",
|
||||
"AncientShield",
|
||||
"KurastShield",
|
||||
"DemonhideGloves",
|
||||
"SharkskinGloves",
|
||||
"HeavyBracers",
|
||||
@@ -444,7 +447,7 @@ var Names = []string{
|
||||
"ZombieHead",
|
||||
"UnravellerHead",
|
||||
"GargoyleHead",
|
||||
"DemonHeadShield",
|
||||
"DemonHead",
|
||||
"Circlet",
|
||||
"Coronet",
|
||||
"Tiara",
|
||||
@@ -455,7 +458,7 @@ var Names = []string{
|
||||
"GiantConch",
|
||||
"SpiredHelm",
|
||||
"Corona",
|
||||
"DemonHead",
|
||||
"Demonhead",
|
||||
"DuskShroud",
|
||||
"Wyrmhide",
|
||||
"ScarabHusk",
|
||||
@@ -496,7 +499,7 @@ var Names = []string{
|
||||
"TrollNest",
|
||||
"BladeBarrier",
|
||||
"AlphaHelm",
|
||||
"GriffonHeaddress",
|
||||
"GriffonHeadress",
|
||||
"HuntersGuise",
|
||||
"SacredFeathers",
|
||||
"TotemicMask",
|
||||
@@ -535,11 +538,26 @@ var Names = []string{
|
||||
"OverseerSkull",
|
||||
"SuccubusSkull",
|
||||
"BloodlordSkull",
|
||||
"OldBook",
|
||||
"Tome",
|
||||
"Codex",
|
||||
"Compendium",
|
||||
"Grimoire",
|
||||
"BurntText",
|
||||
"DarkTome",
|
||||
"DarkCodex",
|
||||
"PossessedCompendium",
|
||||
"PossessedGrimoire",
|
||||
"ForgottenVolume",
|
||||
"OccultTome",
|
||||
"OccultCodex",
|
||||
"BlasphemousCompendium",
|
||||
"BlasphemousGrimoire",
|
||||
"Elixir",
|
||||
"INVALID509",
|
||||
"INVALID510",
|
||||
"INVALID511",
|
||||
"INVALID512",
|
||||
"HealingPotion",
|
||||
"ManaPotion",
|
||||
"FullHealingPotion",
|
||||
"FullManaPotion",
|
||||
"StaminaPotion",
|
||||
"AntidotePotion",
|
||||
"RejuvenationPotion",
|
||||
@@ -633,10 +651,10 @@ var Names = []string{
|
||||
"SmallCharm",
|
||||
"LargeCharm",
|
||||
"GrandCharm",
|
||||
"INVALID606",
|
||||
"INVALID607",
|
||||
"INVALID608",
|
||||
"INVALID609",
|
||||
"SmallRedPotion",
|
||||
"LargeRedPotion",
|
||||
"SmallBluePotion",
|
||||
"LargeBluePotion",
|
||||
"ElRune",
|
||||
"EldRune",
|
||||
"TirRune",
|
||||
@@ -680,10 +698,28 @@ var Names = []string{
|
||||
"DiablosHorn",
|
||||
"BaalsEye",
|
||||
"MephistosBrain",
|
||||
"TokenofAbsolution",
|
||||
"TokenOfAbsolution",
|
||||
"TwistedEssenceOfSuffering",
|
||||
"ChargedEssenceOfHatred",
|
||||
"BurningEssenceOfTerror",
|
||||
"FesteringEssenceOfDestruction",
|
||||
"StandardOfHeroes",
|
||||
"WesternWorldstoneShard",
|
||||
"EasternWorldstoneShard",
|
||||
"SouthernWorldstoneShard",
|
||||
"DeepWorldstoneShard",
|
||||
"NorthernWorldstoneShard",
|
||||
"UberAncientSummonMaterialAct1",
|
||||
"UberAncientSummonMaterialAct2",
|
||||
"UberAncientSummonMaterialAct3",
|
||||
"UberAncientSummonMaterialAct4",
|
||||
"UberAncientSummonMaterialAct5",
|
||||
"UberAncientUpgradeMaterialFire",
|
||||
"UberAncientUpgradeMaterialPoison",
|
||||
"UberAncientUpgradeMaterialCold",
|
||||
"UberAncientUpgradeMaterialPhysical",
|
||||
"UberAncientUpgradeMaterialLightning",
|
||||
"UberAncientUpgradeMaterialMagic",
|
||||
"ColossusJewel",
|
||||
"CraftedSunderCharm",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user