mirror of
https://gitlab.com/EternalWanderer/sheet-parser.git
synced 2024-11-28 21:13:51 +01:00
Spell additions
- zsh completions - check spell amount
This commit is contained in:
parent
d4162eab2b
commit
3667b65b04
6
main.go
6
main.go
|
@ -394,7 +394,11 @@ func listFeats() {
|
|||
}
|
||||
|
||||
func listSpells(verbose bool) {
|
||||
color.Magenta("Listing spells...")
|
||||
if len(char.Spells) == 0 {
|
||||
color.Magenta("%s has no spells\n", char.Misc.Name)
|
||||
} else {
|
||||
color.Magenta("Listing spells...")
|
||||
}
|
||||
for i := 0; i < len(char.Spells); i++ {
|
||||
fmt.Printf("Name: %s\t%s\n", char.Spells[i].Name, spellLevel(char.Spells[i].Level))
|
||||
fmt.Printf("Casting Time: %s\tRange: %dft\n", char.Spells[i].CastingTime, char.Spells[i].Range)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#compdef sheet-parser
|
||||
|
||||
arguments=(
|
||||
'(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t)--spells[Print spell list'
|
||||
'(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t)--feats[Print charater feats]'
|
||||
'(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t --feats)--trivia[Print character trivia]'
|
||||
'(--advantage --disadvantage --skill --save --stat --skill-list --stat-list -v --verbose --trivia -t --feats)-t[Print character trivia]'
|
||||
|
|
Loading…
Reference in a new issue