Skip to content

Commit

Permalink
Merge branch 'main' into feature/diva
Browse files Browse the repository at this point in the history
  • Loading branch information
stratic-dev committed Feb 10, 2024
2 parents e1f12ea + 771f240 commit 3310248
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/mhfcourse/mhfcourse.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func GetCourseStruct(rights uint32) ([]Course, uint32) {
sort.Slice(s, func(i, j int) bool {
return s[i].ID > s[j].ID
})
var normalCafeCourseSet, netcafeCourseSet bool
var normalCafeCourseSet, netcafeCourseSet, hidenCourseSet bool
for _, course := range s {
if rights-course.Value() < 0x80000000 {
switch course.ID {
Expand All @@ -92,6 +92,12 @@ func GetCourseStruct(rights uint32) ([]Course, uint32) {
}
netcafeCourseSet = true
resp = append(resp, Course{ID: 30})
case 10:
if hidenCourseSet {
break
}
hidenCourseSet = true
resp = append(resp, Course{ID: 31})
}
course.Expiry = time.Date(2030, 1, 1, 0, 0, 0, 0, time.FixedZone("UTC+9", 9*60*60))
resp = append(resp, course)
Expand Down

0 comments on commit 3310248

Please sign in to comment.