Add data structures, it requires tons of refactor but it's more or less working
This commit is contained in:
677
pkg/data/item/name.go
Normal file
677
pkg/data/item/name.go
Normal file
@@ -0,0 +1,677 @@
|
||||
package item
|
||||
|
||||
const (
|
||||
ScrollOfTownPortal = "ScrollOfTownPortal"
|
||||
ScrollOfIdentify = "ScrollOfIdentify"
|
||||
TomeOfTownPortal = "TomeOfTownPortal"
|
||||
TomeOfIdentify = "TomeOfIdentify"
|
||||
Key = "Key"
|
||||
)
|
||||
|
||||
func GetNameByEnum(itemNumber uint) Name {
|
||||
return Name(available[itemNumber])
|
||||
}
|
||||
|
||||
type Name string
|
||||
|
||||
var available = []string{
|
||||
"HandAxe",
|
||||
"Axe",
|
||||
"DoubleAxe",
|
||||
"MilitaryPick",
|
||||
"WarAxe",
|
||||
"LargeAxe",
|
||||
"BroadAxe",
|
||||
"BattleAxe",
|
||||
"GreatAxe",
|
||||
"GiantAxe",
|
||||
"Wand",
|
||||
"YewWand",
|
||||
"BoneWand",
|
||||
"GrimWand",
|
||||
"Club",
|
||||
"Scepter",
|
||||
"GrandScepter",
|
||||
"WarScepter",
|
||||
"SpikedClub",
|
||||
"Mace",
|
||||
"MorningStar",
|
||||
"Flail",
|
||||
"WarHammer",
|
||||
"Maul",
|
||||
"GreatMaul",
|
||||
"ShortSword",
|
||||
"Scimitar",
|
||||
"Sabre",
|
||||
"Falchion",
|
||||
"CrystalSword",
|
||||
"BroadSword",
|
||||
"LongSword",
|
||||
"WarSword",
|
||||
"TwoHandedSword",
|
||||
"Claymore",
|
||||
"GiantSword",
|
||||
"BastardSword",
|
||||
"Flamberge",
|
||||
"GreatSword",
|
||||
"Dagger",
|
||||
"Dirk",
|
||||
"Kris",
|
||||
"Blade",
|
||||
"ThrowingKnife",
|
||||
"ThrowingAxe",
|
||||
"BalancedKnife",
|
||||
"BalancedAxe",
|
||||
"Javelin",
|
||||
"Pilum",
|
||||
"ShortSpear",
|
||||
"Glaive",
|
||||
"ThrowingSpear",
|
||||
"Spear",
|
||||
"Trident",
|
||||
"Brandistock",
|
||||
"Spetum",
|
||||
"Pike",
|
||||
"Bardiche",
|
||||
"Voulge",
|
||||
"Scythe",
|
||||
"Poleaxe",
|
||||
"Halberd",
|
||||
"WarScythe",
|
||||
"ShortStaff",
|
||||
"LongStaff",
|
||||
"GnarledStaff",
|
||||
"BattleStaff",
|
||||
"WarStaff",
|
||||
"ShortBow",
|
||||
"HuntersBow",
|
||||
"LongBow",
|
||||
"CompositeBow",
|
||||
"ShortBattleBow",
|
||||
"LongBattleBow",
|
||||
"ShortWarBow",
|
||||
"LongWarBow",
|
||||
"LightCrossbow",
|
||||
"Crossbow",
|
||||
"HeavyCrossbow",
|
||||
"RepeatingCrossbow",
|
||||
"RancidGasPotion",
|
||||
"OilPotion",
|
||||
"ChokingGasPotion",
|
||||
"ExplodingPotion",
|
||||
"StranglingGasPotion",
|
||||
"FulminatingPotion",
|
||||
"DecoyGidbinn",
|
||||
"TheGidbinn",
|
||||
"WirtsLeg",
|
||||
"HoradricMalus",
|
||||
"HellforgeHammer",
|
||||
"HoradricStaff",
|
||||
"StaffOfKings",
|
||||
"Hatchet",
|
||||
"Cleaver",
|
||||
"TwinAxe",
|
||||
"Crowbill",
|
||||
"Naga",
|
||||
"MilitaryAxe",
|
||||
"BeardedAxe",
|
||||
"Tabar",
|
||||
"GothicAxe",
|
||||
"AncientAxe",
|
||||
"BurntWand",
|
||||
"PetrifiedWand",
|
||||
"TombWand",
|
||||
"GraveWand",
|
||||
"Cudgel",
|
||||
"RuneScepter",
|
||||
"HolyWaterSprinkler",
|
||||
"DivineScepter",
|
||||
"BarbedClub",
|
||||
"FlangedMace",
|
||||
"JaggedStar",
|
||||
"Knout",
|
||||
"BattleHammer",
|
||||
"WarClub",
|
||||
"MartelDeFer",
|
||||
"Gladius",
|
||||
"Cutlass",
|
||||
"Shamshir",
|
||||
"Tulwar",
|
||||
"DimensionalBlade",
|
||||
"BattleSword",
|
||||
"RuneSword",
|
||||
"AncientSword",
|
||||
"Espandon",
|
||||
"DacianFalx",
|
||||
"TuskSword",
|
||||
"GothicSword",
|
||||
"Zweihander",
|
||||
"ExecutionerSword",
|
||||
"Poignard",
|
||||
"Rondel",
|
||||
"Cinquedeas",
|
||||
"Stiletto",
|
||||
"BattleDart",
|
||||
"Francisca",
|
||||
"WarDart",
|
||||
"Hurlbat",
|
||||
"WarJavelin",
|
||||
"GreatPilum",
|
||||
"Simbilan",
|
||||
"Spiculum",
|
||||
"Harpoon",
|
||||
"WarSpear",
|
||||
"Fuscina",
|
||||
"WarFork",
|
||||
"Yari",
|
||||
"Lance",
|
||||
"LochaberAxe",
|
||||
"Bill",
|
||||
"BattleScythe",
|
||||
"Partizan",
|
||||
"BecDeCorbin",
|
||||
"GrimScythe",
|
||||
"JoStaff",
|
||||
"QuarterStaff",
|
||||
"CedarStaff",
|
||||
"GothicStaff",
|
||||
"RuneStaff",
|
||||
"EdgeBow",
|
||||
"RazorBow",
|
||||
"CedarBow",
|
||||
"DoubleBow",
|
||||
"ShortSiegeBow",
|
||||
"LargeSiegeBow",
|
||||
"RuneBow",
|
||||
"GothicBow",
|
||||
"Arbalest",
|
||||
"SiegeCrossbow",
|
||||
"Ballista",
|
||||
"ChuKoNu",
|
||||
"KhalimsFlail",
|
||||
"KhalimsWill",
|
||||
"Katar",
|
||||
"WristBlade",
|
||||
"HatchetHands",
|
||||
"Cestus",
|
||||
"Claws",
|
||||
"BladeTalons",
|
||||
"ScissorsKatar",
|
||||
"Quhab",
|
||||
"WristSpike",
|
||||
"Fascia",
|
||||
"HandScythe",
|
||||
"GreaterClaws",
|
||||
"GreaterTalons",
|
||||
"ScissorsQuhab",
|
||||
"Suwayyah",
|
||||
"WristSword",
|
||||
"WarFist",
|
||||
"BattleCestus",
|
||||
"FeralClaws",
|
||||
"RunicTalons",
|
||||
"ScissorsSuwayyah",
|
||||
"Tomahawk",
|
||||
"SmallCrescent",
|
||||
"EttinAxe",
|
||||
"WarSpike",
|
||||
"BerserkerAxe",
|
||||
"FeralAxe",
|
||||
"SilverEdgedAxe",
|
||||
"Decapitator",
|
||||
"ChampionAxe",
|
||||
"GloriousAxe",
|
||||
"PolishedWand",
|
||||
"GhostWand",
|
||||
"LichWand",
|
||||
"UnearthedWand",
|
||||
"Truncheon",
|
||||
"MightyScepter",
|
||||
"SeraphRod",
|
||||
"Caduceus",
|
||||
"TyrantClub",
|
||||
"ReinforcedMace",
|
||||
"DevilStar",
|
||||
"Scourge",
|
||||
"LegendaryMallet",
|
||||
"OgreMaul",
|
||||
"ThunderMaul",
|
||||
"Falcata",
|
||||
"Ataghan",
|
||||
"ElegantBlade",
|
||||
"HydraEdge",
|
||||
"PhaseBlade",
|
||||
"ConquestSword",
|
||||
"CrypticSword",
|
||||
"MythicalSword",
|
||||
"LegendSword",
|
||||
"HighlandBlade",
|
||||
"BalrogBlade",
|
||||
"ChampionSword",
|
||||
"ColossusSword",
|
||||
"ColossusBlade",
|
||||
"BoneKnife",
|
||||
"MithrilPoint",
|
||||
"FangedKnife",
|
||||
"LegendSpike",
|
||||
"FlyingKnife",
|
||||
"FlyingAxe",
|
||||
"WingedKnife",
|
||||
"WingedAxe",
|
||||
"HyperionJavelin",
|
||||
"StygianPilum",
|
||||
"BalrogSpear",
|
||||
"GhostGlaive",
|
||||
"WingedHarpoon",
|
||||
"HyperionSpear",
|
||||
"StygianPike",
|
||||
"Mancatcher",
|
||||
"GhostSpear",
|
||||
"WarPike",
|
||||
"OgreAxe",
|
||||
"ColossusVoulge",
|
||||
"Thresher",
|
||||
"CrypticAxe",
|
||||
"GreatPoleaxe",
|
||||
"GiantThresher",
|
||||
"WalkingStick",
|
||||
"Stalagmite",
|
||||
"ElderStaff",
|
||||
"Shillelagh",
|
||||
"ArchonStaff",
|
||||
"SpiderBow",
|
||||
"BladeBow",
|
||||
"ShadowBow",
|
||||
"GreatBow",
|
||||
"DiamondBow",
|
||||
"CrusaderBow",
|
||||
"WardBow",
|
||||
"HydraBow",
|
||||
"PelletBow",
|
||||
"GorgonCrossbow",
|
||||
"ColossusCrossbow",
|
||||
"DemonCrossBow",
|
||||
"EagleOrb",
|
||||
"SacredGlobe",
|
||||
"SmokedSphere",
|
||||
"ClaspedOrb",
|
||||
"JaredsStone",
|
||||
"StagBow",
|
||||
"ReflexBow",
|
||||
"MaidenSpear",
|
||||
"MaidenPike",
|
||||
"MaidenJavelin",
|
||||
"GlowingOrb",
|
||||
"CrystallineGlobe",
|
||||
"CloudySphere",
|
||||
"SparklingBall",
|
||||
"SwirlingCrystal",
|
||||
"AshwoodBow",
|
||||
"CeremonialBow",
|
||||
"CeremonialSpear",
|
||||
"CeremonialPike",
|
||||
"CeremonialJavelin",
|
||||
"HeavenlyStone",
|
||||
"EldritchOrb",
|
||||
"DemonHeart",
|
||||
"VortexOrb",
|
||||
"DimensionalShard",
|
||||
"MatriarchalBow",
|
||||
"GrandMatronBow",
|
||||
"MatriarchalSpear",
|
||||
"MatriarchalPike",
|
||||
"MatriarchalJavelin",
|
||||
"Cap",
|
||||
"SkullCap",
|
||||
"Helm",
|
||||
"FullHelm",
|
||||
"GreatHelm",
|
||||
"Crown",
|
||||
"Mask",
|
||||
"QuiltedArmor",
|
||||
"LeatherArmor",
|
||||
"HardLeatherArmor",
|
||||
"StuddedLeather",
|
||||
"RingMail",
|
||||
"ScaleMail",
|
||||
"ChainMail",
|
||||
"BreastPlate",
|
||||
"SplintMail",
|
||||
"PlateMail",
|
||||
"FieldPlate",
|
||||
"GothicPlate",
|
||||
"FullPlateMail",
|
||||
"AncientArmor",
|
||||
"LightPlate",
|
||||
"Buckler",
|
||||
"SmallShield",
|
||||
"LargeShield",
|
||||
"KiteShield",
|
||||
"TowerShield",
|
||||
"GothicShield",
|
||||
"LeatherGloves",
|
||||
"HeavyGloves",
|
||||
"ChainGloves",
|
||||
"LightGauntlets",
|
||||
"Gauntlets",
|
||||
"Boots",
|
||||
"HeavyBoots",
|
||||
"ChainBoots",
|
||||
"LightPlatedBoots",
|
||||
"Greaves",
|
||||
"Sash",
|
||||
"LightBelt",
|
||||
"Belt",
|
||||
"HeavyBelt",
|
||||
"PlatedBelt",
|
||||
"BoneHelm",
|
||||
"BoneShield",
|
||||
"SpikedShield",
|
||||
"WarHat",
|
||||
"Sallet",
|
||||
"Casque",
|
||||
"Basinet",
|
||||
"WingedHelm",
|
||||
"GrandCrown",
|
||||
"DeathMask",
|
||||
"GhostArmor",
|
||||
"SerpentskinArmor",
|
||||
"DemonhideArmor",
|
||||
"TrellisedArmor",
|
||||
"LinkedMail",
|
||||
"TigulatedMail",
|
||||
"MeshArmor",
|
||||
"Cuirass",
|
||||
"RussetArmor",
|
||||
"TemplarCoat",
|
||||
"SharktoothArmor",
|
||||
"EmbossedPlate",
|
||||
"ChaosArmor",
|
||||
"OrnatePlate",
|
||||
"MagePlate",
|
||||
"Defender",
|
||||
"RoundShield",
|
||||
"Scutum",
|
||||
"DragonShield",
|
||||
"Pavise",
|
||||
"AncientShield",
|
||||
"DemonhideGloves",
|
||||
"SharkskinGloves",
|
||||
"HeavyBracers",
|
||||
"BattleGauntlets",
|
||||
"WarGauntlets",
|
||||
"DemonhideBoots",
|
||||
"SharkskinBoots",
|
||||
"MeshBoots",
|
||||
"BattleBoots",
|
||||
"WarBoots",
|
||||
"DemonhideSash",
|
||||
"SharkskinBelt",
|
||||
"MeshBelt",
|
||||
"BattleBelt",
|
||||
"WarBelt",
|
||||
"GrimHelm",
|
||||
"GrimShield",
|
||||
"BarbedShield",
|
||||
"WolfHead",
|
||||
"HawkHelm",
|
||||
"Antlers",
|
||||
"FalconMask",
|
||||
"SpiritMask",
|
||||
"JawboneCap",
|
||||
"FangedHelm",
|
||||
"HornedHelm",
|
||||
"AssaultHelmet",
|
||||
"AvengerGuard",
|
||||
"Targe",
|
||||
"Rondache",
|
||||
"HeraldicShield",
|
||||
"AerinShield",
|
||||
"CrownShield",
|
||||
"PreservedHead",
|
||||
"ZombieHead",
|
||||
"UnravellerHead",
|
||||
"GargoyleHead",
|
||||
"DemonHeadShield",
|
||||
"Circlet",
|
||||
"Coronet",
|
||||
"Tiara",
|
||||
"Diadem",
|
||||
"Shako",
|
||||
"Hydraskull",
|
||||
"Armet",
|
||||
"GiantConch",
|
||||
"SpiredHelm",
|
||||
"Corona",
|
||||
"DemonHead",
|
||||
"DuskShroud",
|
||||
"Wyrmhide",
|
||||
"ScarabHusk",
|
||||
"WireFleece",
|
||||
"DiamondMail",
|
||||
"LoricatedMail",
|
||||
"Boneweave",
|
||||
"GreatHauberk",
|
||||
"BalrogSkin",
|
||||
"HellforgePlate",
|
||||
"KrakenShell",
|
||||
"LacqueredPlate",
|
||||
"ShadowPlate",
|
||||
"SacredArmor",
|
||||
"ArchonPlate",
|
||||
"Heater",
|
||||
"Luna",
|
||||
"Hyperion",
|
||||
"Monarch",
|
||||
"Aegis",
|
||||
"Ward",
|
||||
"BrambleMitts",
|
||||
"VampireboneGloves",
|
||||
"Vambraces",
|
||||
"CrusaderGauntlets",
|
||||
"OgreGauntlets",
|
||||
"WyrmhideBoots",
|
||||
"ScarabshellBoots",
|
||||
"BoneweaveBoots",
|
||||
"MirroredBoots",
|
||||
"MyrmidonGreaves",
|
||||
"SpiderwebSash",
|
||||
"VampirefangBelt",
|
||||
"MithrilCoil",
|
||||
"TrollBelt",
|
||||
"ColossusGirdle",
|
||||
"BoneVisage",
|
||||
"TrollNest",
|
||||
"BladeBarrier",
|
||||
"AlphaHelm",
|
||||
"GriffonHeaddress",
|
||||
"HuntersGuise",
|
||||
"SacredFeathers",
|
||||
"TotemicMask",
|
||||
"JawboneVisor",
|
||||
"LionHelm",
|
||||
"RageMask",
|
||||
"SavageHelmet",
|
||||
"SlayerGuard",
|
||||
"AkaranTarge",
|
||||
"AkaranRondache",
|
||||
"ProtectorShield",
|
||||
"GildedShield",
|
||||
"RoyalShield",
|
||||
"MummifiedTrophy",
|
||||
"FetishTrophy",
|
||||
"SextonTrophy",
|
||||
"CantorTrophy",
|
||||
"HierophantTrophy",
|
||||
"BloodSpirit",
|
||||
"SunSpirit",
|
||||
"EarthSpirit",
|
||||
"SkySpirit",
|
||||
"DreamSpirit",
|
||||
"CarnageHelm",
|
||||
"FuryVisor",
|
||||
"DestroyerHelm",
|
||||
"ConquerorCrown",
|
||||
"GuardianCrown",
|
||||
"SacredTarge",
|
||||
"SacredRondache",
|
||||
"KurastShield",
|
||||
"ZakarumShield",
|
||||
"VortexShield",
|
||||
"MinionSkull",
|
||||
"HellspawnSkull",
|
||||
"OverseerSkull",
|
||||
"SuccubusSkull",
|
||||
"BloodlordSkull",
|
||||
"Elixir",
|
||||
"INVALID509",
|
||||
"INVALID510",
|
||||
"INVALID511",
|
||||
"INVALID512",
|
||||
"StaminaPotion",
|
||||
"AntidotePotion",
|
||||
"RejuvenationPotion",
|
||||
"FullRejuvenationPotion",
|
||||
"ThawingPotion",
|
||||
"TomeOfTownPortal",
|
||||
"TomeOfIdentify",
|
||||
"Amulet",
|
||||
"AmuletOfTheViper",
|
||||
"Ring",
|
||||
"Gold",
|
||||
"ScrollOfInifuss",
|
||||
"KeyToTheCairnStones",
|
||||
"Arrows",
|
||||
"Torch",
|
||||
"Bolts",
|
||||
"ScrollOfTownPortal",
|
||||
"ScrollOfIdentify",
|
||||
"Heart",
|
||||
"Brain",
|
||||
"Jawbone",
|
||||
"Eye",
|
||||
"Horn",
|
||||
"Tail",
|
||||
"Flag",
|
||||
"Fang",
|
||||
"Quill",
|
||||
"Soul",
|
||||
"Scalp",
|
||||
"Spleen",
|
||||
"Key",
|
||||
"TheBlackTowerKey",
|
||||
"PotionOfLife",
|
||||
"AJadeFigurine",
|
||||
"TheGoldenBird",
|
||||
"LamEsensTome",
|
||||
"HoradricCube",
|
||||
"HoradricScroll",
|
||||
"MephistosSoulstone",
|
||||
"BookOfSkill",
|
||||
"KhalimsEye",
|
||||
"KhalimsHeart",
|
||||
"KhalimsBrain",
|
||||
"Ear",
|
||||
"ChippedAmethyst",
|
||||
"FlawedAmethyst",
|
||||
"Amethyst",
|
||||
"FlawlessAmethyst",
|
||||
"PerfectAmethyst",
|
||||
"ChippedTopaz",
|
||||
"FlawedTopaz",
|
||||
"Topaz",
|
||||
"FlawlessTopaz",
|
||||
"PerfectTopaz",
|
||||
"ChippedSapphire",
|
||||
"FlawedSapphire",
|
||||
"Sapphire",
|
||||
"FlawlessSapphire",
|
||||
"PerfectSapphire",
|
||||
"ChippedEmerald",
|
||||
"FlawedEmerald",
|
||||
"Emerald",
|
||||
"FlawlessEmerald",
|
||||
"PerfectEmerald",
|
||||
"ChippedRuby",
|
||||
"FlawedRuby",
|
||||
"Ruby",
|
||||
"FlawlessRuby",
|
||||
"PerfectRuby",
|
||||
"ChippedDiamond",
|
||||
"FlawedDiamond",
|
||||
"Diamond",
|
||||
"FlawlessDiamond",
|
||||
"PerfectDiamond",
|
||||
"MinorHealingPotion",
|
||||
"LightHealingPotion",
|
||||
"HealingPotion",
|
||||
"GreaterHealingPotion",
|
||||
"SuperHealingPotion",
|
||||
"MinorManaPotion",
|
||||
"LightManaPotion",
|
||||
"ManaPotion",
|
||||
"GreaterManaPotion",
|
||||
"SuperManaPotion",
|
||||
"ChippedSkull",
|
||||
"FlawedSkull",
|
||||
"Skull",
|
||||
"FlawlessSkull",
|
||||
"PerfectSkull",
|
||||
"Herb",
|
||||
"SmallCharm",
|
||||
"LargeCharm",
|
||||
"GrandCharm",
|
||||
"INVALID606",
|
||||
"INVALID607",
|
||||
"INVALID608",
|
||||
"INVALID609",
|
||||
"ElRune",
|
||||
"EldRune",
|
||||
"TirRune",
|
||||
"NefRune",
|
||||
"EthRune",
|
||||
"IthRune",
|
||||
"TalRune",
|
||||
"RalRune",
|
||||
"OrtRune",
|
||||
"ThulRune",
|
||||
"AmnRune",
|
||||
"SolRune",
|
||||
"ShaelRune",
|
||||
"DolRune",
|
||||
"HelRune",
|
||||
"IoRune",
|
||||
"LumRune",
|
||||
"KoRune",
|
||||
"FalRune",
|
||||
"LemRune",
|
||||
"PulRune",
|
||||
"UmRune",
|
||||
"MalRune",
|
||||
"IstRune",
|
||||
"GulRune",
|
||||
"VexRune",
|
||||
"OhmRune",
|
||||
"LoRune",
|
||||
"SurRune",
|
||||
"BerRune",
|
||||
"JahRune",
|
||||
"ChamRune",
|
||||
"ZodRune",
|
||||
"Jewel",
|
||||
"MalahsPotion",
|
||||
"ScrollOfKnowledge",
|
||||
"ScrollOfResistance",
|
||||
"KeyOfTerror",
|
||||
"KeyOfHate",
|
||||
"KeyOfDestruction",
|
||||
"DiablosHorn",
|
||||
"BaalsEye",
|
||||
"MephistosBrain",
|
||||
"TokenofAbsolution",
|
||||
"TwistedEssenceOfSuffering",
|
||||
"ChargedEssenceOfHatred",
|
||||
"BurningEssenceOfTerror",
|
||||
"FesteringEssenceOfDestruction",
|
||||
"StandardOfHeroes",
|
||||
}
|
||||
Reference in New Issue
Block a user