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,7 +2,7 @@
// source: cmd/txttocode/txt/itemtypes.txt // source: cmd/txttocode/txt/itemtypes.txt
package item package item
const ( const (
TypeNone = "none" TypeNone = "none"
TypeShield = "shie" TypeShield = "shie"
TypeArmor = "tors" TypeArmor = "tors"
@@ -104,7 +104,7 @@ package item
TypeSkull = "gemz" TypeSkull = "gemz"
TypeSwordsandKnives = "blde" TypeSwordsandKnives = "blde"
TypeSpearsandPolearms = "sppl" TypeSpearsandPolearms = "sppl"
) )
var ItemTypes = map[string]Type{ var ItemTypes = map[string]Type{
TypeNone: {ID: 0, Name: "None", Code: "none", Throwable: false, Beltable: false, BodyLocs: []LocationType{}}, TypeNone: {ID: 0, Name: "None", Code: "none", Throwable: false, Beltable: false, BodyLocs: []LocationType{}},

View File

@@ -11,7 +11,6 @@ const (
ObjectModeSpecial3 ObjectMode = 5 ObjectModeSpecial3 ObjectMode = 5
ObjectModeSpecial4 ObjectMode = 6 ObjectModeSpecial4 ObjectMode = 6
ObjectModeSpecial5 ObjectMode = 7 ObjectModeSpecial5 ObjectMode = 7
) )
func (m ObjectMode) String() string { func (m ObjectMode) String() string {