chore: use formatter on Go files

This commit is contained in:
Zhongheng Liu 2024-10-23 09:31:42 +03:00
commit 076c696472
Signed by: steven
GPG key ID: DC8F48E7B4C40905
2 changed files with 22 additions and 22 deletions

View file

@ -53,7 +53,7 @@ func NewGame(scr *Window) {
my_npcs := MakeNpcs() my_npcs := MakeNpcs()
game.DataStored.Npcs = my_npcs game.DataStored.Npcs = my_npcs
scr.MovePrintf(1, 2, "Created new game \"%v\"!", game.SaveGame) scr.MovePrintf(1, 2, "Created new game \"%v\"!", game.SaveGame)
for i:=0; i<len(game.DataStored.Npcs); i++ { for i := 0; i < len(game.DataStored.Npcs); i++ {
scr.MovePrintf(2+i, 2, "Initialising \"%v\"...", game.DataStored.Npcs[i].Name) scr.MovePrintf(2+i, 2, "Initialising \"%v\"...", game.DataStored.Npcs[i].Name)
scr.MovePrintf(3+i, 2, "Found NPC query string!") scr.MovePrintf(3+i, 2, "Found NPC query string!")
scr.Refresh() scr.Refresh()

View file

@ -5,7 +5,7 @@ import (
) )
func MakeNpcs() []Npc { func MakeNpcs() []Npc {
npcs := []Npc {} npcs := []Npc{}
helper01 := Npc{ helper01 := Npc{
Name: "Helper01_NPC", Name: "Helper01_NPC",
Ai: NpcAi{ Ai: NpcAi{
@ -15,9 +15,9 @@ func MakeNpcs() []Npc {
} }
npcs = append(npcs, helper01) npcs = append(npcs, helper01)
rulmarc := Npc { rulmarc := Npc{
Name: "Rulmarc", Name: "Rulmarc",
Ai: NpcAi { Ai: NpcAi{
PromptCharacterString: "You are a medieval villager called Rulmarc.", PromptCharacterString: "You are a medieval villager called Rulmarc.",
QueryFromTableName: "helper", QueryFromTableName: "helper",
}, },