Browse Source

Skills and Songs shouldn't go above 6, part 2

master
Noëlle Anthony 5 years ago
parent
commit
2ce64cb1fa
1 changed files with 10 additions and 2 deletions
  1. 10
    2
      main.go

+ 10
- 2
main.go View File

skl = util.ChoiceStr(celSkills) skl = util.ChoiceStr(celSkills)
// fmt.Println("Selected Celestial skill: ", skl) // fmt.Println("Selected Celestial skill: ", skl)
} }
ply.Skills[skl] = ply.Skills[skl] + 1
if ply.Skills[skl] == 6 {
i++
} else {
ply.Skills[skl] = ply.Skills[skl] + 1
}
} }
} else { // Songs } else { // Songs
if rand.Intn(3) == 0 && len(ply.Songs) != 0 { if rand.Intn(3) == 0 && len(ply.Songs) != 0 {
} else { } else {
skl := util.ChoiceStr(songList) skl := util.ChoiceStr(songList)
// fmt.Println("Selected song: ", skl) // fmt.Println("Selected song: ", skl)
ply.Songs[skl] = ply.Songs[skl] + 1
if ply.Songs[skl] == 6 {
i++
} else {
ply.Songs[skl] = ply.Songs[skl] + 1
}
} }
} }
} }

Loading…
Cancel
Save