style: fix codegen formatting and run gofmt after generation

This commit is contained in:
Genqila
2025-12-28 02:07:24 +07:00
committed by guiyomu-dev
parent 44855a6340
commit b510968f7d
7 changed files with 810 additions and 811 deletions

View File

@@ -2,109 +2,109 @@
// source: cmd/txttocode/txt/itemtypes.txt
package item
const (
TypeNone = "none"
TypeShield = "shie"
TypeArmor = "tors"
TypeGold = "gold"
TypeBowQuiver = "bowq"
TypeCrossbowQuiver = "xboq"
TypePlayerBodyPart = "play"
TypeHerb = "herb"
TypePotion = "poti"
TypeRing = "ring"
TypeElixir = "elix"
TypeAmulet = "amul"
TypeCharm = "char"
TypeBoots = "boot"
TypeGloves = "glov"
TypeBook = "book"
TypeBelt = "belt"
TypeGem = "gem"
TypeTorch = "torc"
TypeScroll = "scro"
TypeScepter = "scep"
TypeWand = "wand"
TypeStaff = "staf"
TypeBow = "bow"
TypeAxe = "axe"
TypeClub = "club"
TypeSword = "swor"
TypeHammer = "hamm"
TypeKnife = "knif"
TypeSpear = "spea"
TypePolearm = "pole"
TypeCrossbow = "xbow"
TypeMace = "mace"
TypeHelm = "helm"
TypeMissilePotion = "tpot"
TypeQuest = "ques"
TypeBodyPart = "body"
TypeKey = "key"
TypeThrowingKnife = "tkni"
TypeThrowingAxe = "taxe"
TypeJavelin = "jave"
TypeWeapon = "weap"
TypeMeleeWeapon = "mele"
TypeMissileWeapon = "miss"
TypeThrownWeapon = "thro"
TypeComboWeapon = "comb"
TypeAnyArmor = "armo"
TypeAnyShield = "shld"
TypeMiscellaneous = "misc"
TypeSocketFiller = "sock"
TypeSecondHand = "seco"
TypeStavesAndRods = "rod"
TypeMissile = "misl"
TypeBlunt = "blun"
TypeJewel = "jewl"
TypeClassSpecific = "clas"
TypeAmazonItem = "amaz"
TypeBarbarianItem = "barb"
TypeNecromancerItem = "necr"
TypePaladinItem = "pala"
TypeSorceressItem = "sorc"
TypeAssassinItem = "assn"
TypeDruidItem = "drui"
TypeHandtoHand = "h2h"
TypeOrb = "orb"
TypeVoodooHeads = "head"
TypeAuricShields = "ashd"
TypePrimalHelm = "phlm"
TypePelt = "pelt"
TypeCloak = "cloa"
TypeRune = "rune"
TypeCirclet = "circ"
TypeHealingPotion = "hpot"
TypeManaPotion = "mpot"
TypeRejuvPotion = "rpot"
TypeStaminaPotion = "spot"
TypeAntidotePotion = "apot"
TypeThawingPotion = "wpot"
TypeSmallCharm = "scha"
TypeMediumCharm = "mcha"
TypeLargeCharm = "lcha"
TypeAmazonBow = "abow"
TypeAmazonSpear = "aspe"
TypeAmazonJavelin = "ajav"
TypeHandtoHand2 = "h2h2"
TypeMagicBowQuiv = "mboq"
TypeMagicXbowQuiv = "mxbq"
TypeChippedGem = "gem0"
TypeFlawedGem = "gem1"
TypeStandardGem = "gem2"
TypeFlawlessGem = "gem3"
TypePerfectGem = "gem4"
TypeAmethyst = "gema"
TypeDiamond = "gemd"
TypeEmerald = "geme"
TypeRuby = "gemr"
TypeSapphire = "gems"
TypeTopaz = "gemt"
TypeSkull = "gemz"
TypeSwordsandKnives = "blde"
TypeSpearsandPolearms = "sppl"
)
const (
TypeNone = "none"
TypeShield = "shie"
TypeArmor = "tors"
TypeGold = "gold"
TypeBowQuiver = "bowq"
TypeCrossbowQuiver = "xboq"
TypePlayerBodyPart = "play"
TypeHerb = "herb"
TypePotion = "poti"
TypeRing = "ring"
TypeElixir = "elix"
TypeAmulet = "amul"
TypeCharm = "char"
TypeBoots = "boot"
TypeGloves = "glov"
TypeBook = "book"
TypeBelt = "belt"
TypeGem = "gem"
TypeTorch = "torc"
TypeScroll = "scro"
TypeScepter = "scep"
TypeWand = "wand"
TypeStaff = "staf"
TypeBow = "bow"
TypeAxe = "axe"
TypeClub = "club"
TypeSword = "swor"
TypeHammer = "hamm"
TypeKnife = "knif"
TypeSpear = "spea"
TypePolearm = "pole"
TypeCrossbow = "xbow"
TypeMace = "mace"
TypeHelm = "helm"
TypeMissilePotion = "tpot"
TypeQuest = "ques"
TypeBodyPart = "body"
TypeKey = "key"
TypeThrowingKnife = "tkni"
TypeThrowingAxe = "taxe"
TypeJavelin = "jave"
TypeWeapon = "weap"
TypeMeleeWeapon = "mele"
TypeMissileWeapon = "miss"
TypeThrownWeapon = "thro"
TypeComboWeapon = "comb"
TypeAnyArmor = "armo"
TypeAnyShield = "shld"
TypeMiscellaneous = "misc"
TypeSocketFiller = "sock"
TypeSecondHand = "seco"
TypeStavesAndRods = "rod"
TypeMissile = "misl"
TypeBlunt = "blun"
TypeJewel = "jewl"
TypeClassSpecific = "clas"
TypeAmazonItem = "amaz"
TypeBarbarianItem = "barb"
TypeNecromancerItem = "necr"
TypePaladinItem = "pala"
TypeSorceressItem = "sorc"
TypeAssassinItem = "assn"
TypeDruidItem = "drui"
TypeHandtoHand = "h2h"
TypeOrb = "orb"
TypeVoodooHeads = "head"
TypeAuricShields = "ashd"
TypePrimalHelm = "phlm"
TypePelt = "pelt"
TypeCloak = "cloa"
TypeRune = "rune"
TypeCirclet = "circ"
TypeHealingPotion = "hpot"
TypeManaPotion = "mpot"
TypeRejuvPotion = "rpot"
TypeStaminaPotion = "spot"
TypeAntidotePotion = "apot"
TypeThawingPotion = "wpot"
TypeSmallCharm = "scha"
TypeMediumCharm = "mcha"
TypeLargeCharm = "lcha"
TypeAmazonBow = "abow"
TypeAmazonSpear = "aspe"
TypeAmazonJavelin = "ajav"
TypeHandtoHand2 = "h2h2"
TypeMagicBowQuiv = "mboq"
TypeMagicXbowQuiv = "mxbq"
TypeChippedGem = "gem0"
TypeFlawedGem = "gem1"
TypeStandardGem = "gem2"
TypeFlawlessGem = "gem3"
TypePerfectGem = "gem4"
TypeAmethyst = "gema"
TypeDiamond = "gemd"
TypeEmerald = "geme"
TypeRuby = "gemr"
TypeSapphire = "gems"
TypeTopaz = "gemt"
TypeSkull = "gemz"
TypeSwordsandKnives = "blde"
TypeSpearsandPolearms = "sppl"
)
var ItemTypes = map[string]Type{
TypeNone: {ID: 0, Name: "None", Code: "none", Throwable: false, Beltable: false, BodyLocs: []LocationType{}},