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

@@ -180,7 +180,11 @@ func main() {
skl = util.ChoiceStr(celSkills)
// 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
if rand.Intn(3) == 0 && len(ply.Songs) != 0 {
@@ -193,7 +197,11 @@ func main() {
} else {
skl := util.ChoiceStr(songList)
// 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