mirror of
https://gitlab.com/EternalWanderer/sheet-parser.git
synced 2024-11-29 05:23:49 +01:00
Looked up how to properly format strings at long last
This commit is contained in:
parent
7d503d5621
commit
da8f1fdd87
4
main.go
4
main.go
|
@ -281,7 +281,7 @@ func printStatList(verbose bool) {
|
||||||
proficiency = "Not proficient"
|
proficiency = "Not proficient"
|
||||||
}
|
}
|
||||||
score := char.Stats[i].Score
|
score := char.Stats[i].Score
|
||||||
fmt.Printf("Stat: %s\t%s\tStat score: %d\tStat modifier: %d\n", name, proficiency, score, getModifier(char.Stats[i]))
|
fmt.Printf("Stat: %13s\t%s\tStat score: %2d\tStat modifier: %2d\n", name, proficiency, score, getModifier(char.Stats[i]))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for i := 0; i < len(char.Stats); i++ {
|
for i := 0; i < len(char.Stats); i++ {
|
||||||
|
@ -310,7 +310,7 @@ func printSkillList(verbose bool) {
|
||||||
} else {
|
} else {
|
||||||
expertise = "Doesn't have expertise"
|
expertise = "Doesn't have expertise"
|
||||||
}
|
}
|
||||||
fmt.Printf("Skill: %s\tSkill modifier: %d\t%s\t%s\n", name, localModifier, proficiency, expertise)
|
fmt.Printf("Skill:%16s\tSkill modifier:%3d\t%s\t%s\n", name, localModifier, proficiency, expertise)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for i := 0; i < len(char.Skills); i++ {
|
for i := 0; i < len(char.Skills); i++ {
|
||||||
|
|
Loading…
Reference in a new issue