-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpalladiumfcg.go
55 lines (48 loc) · 1.31 KB
/
palladiumfcg.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package main
import (
"fmt"
"strings"
"pfcg/builder"
"pfcg/occ"
"pfcg/prompts"
"pfcg/reviewer"
"pfcg/types"
)
func main() {
keepGoing := "Y"
choice := "Y"
var characterId int64
characterId = -1
var raceId int
raceId = -1
var character types.Character
fmt.Println("Welcome to Palladium Fantasy Character Builder!")
fmt.Println("Just a simple application to help you quickly setup a new character.")
fmt.Println()
for strings.ToLower(keepGoing) == "y" {
startChoice := prompts.Starter()
if startChoice == "2" || strings.ToLower(startChoice) == "y" {
raceId, characterId = builder.Builder()
charId := occ.Occser(raceId, characterId)
if charId != characterId {
fmt.Println("Oh schnikes, something's amiss")
}
} else {
character = reviewer.Reviewer(startChoice)
characterId = int64(character.Id)
raceId = character.RaceId
if character.OccId == 1 {
fmt.Printf("\nLooks like you have not yet chosen an OCC, would you like to do that now? (Y/n) ")
fmt.Scanln(&choice)
if strings.ToLower(choice) == "y" {
charId := occ.Occser(raceId, characterId)
if charId != characterId {
fmt.Println("Oh schnikes, something's amiss")
}
}
}
}
fmt.Printf("\nWould you like to continue reviewing or building characters? (Y/n) : ")
fmt.Scanln(&keepGoing)
}
}