lockable courses via config

This commit is contained in:
wish
2022-10-30 16:43:58 +11:00
parent 8afec7a7df
commit 676bb736bf
4 changed files with 30 additions and 30 deletions

View File

@@ -213,7 +213,7 @@ func logoutPlayer(s *Session) {
timePlayed += sessionTime
var rpGained int
if s.CourseExists("Netcafe") {
if s.FindCourse("Netcafe").Value != 0 {
rpGained = timePlayed / 900
timePlayed = timePlayed % 900
} else {