chore: use formatter on Go files
This commit is contained in:
parent
0040e130c1
commit
076c696472
2 changed files with 22 additions and 22 deletions
2
main.go
2
main.go
|
@ -53,7 +53,7 @@ func NewGame(scr *Window) {
|
|||
my_npcs := MakeNpcs()
|
||||
game.DataStored.Npcs = my_npcs
|
||||
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(3+i, 2, "Found NPC query string!")
|
||||
scr.Refresh()
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
)
|
||||
|
||||
func MakeNpcs() []Npc {
|
||||
npcs := []Npc {}
|
||||
npcs := []Npc{}
|
||||
helper01 := Npc{
|
||||
Name: "Helper01_NPC",
|
||||
Ai: NpcAi{
|
||||
|
@ -15,9 +15,9 @@ func MakeNpcs() []Npc {
|
|||
}
|
||||
npcs = append(npcs, helper01)
|
||||
|
||||
rulmarc := Npc {
|
||||
rulmarc := Npc{
|
||||
Name: "Rulmarc",
|
||||
Ai: NpcAi {
|
||||
Ai: NpcAi{
|
||||
PromptCharacterString: "You are a medieval villager called Rulmarc.",
|
||||
QueryFromTableName: "helper",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue