refactored guild and guild alliance into internal/service

This commit is contained in:
stratic-dev
2024-10-17 19:16:09 +01:00
parent fa35141f97
commit 5baff56517
11 changed files with 846 additions and 786 deletions

View File

@@ -2,6 +2,7 @@ package channelserver
import (
"erupe-ce/config"
"erupe-ce/internal/service"
ps "erupe-ce/utils/pascalstring"
"fmt"
"os"
@@ -116,8 +117,8 @@ type RengokuScore struct {
func handleMsgMhfEnumerateRengokuRanking(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket) {
pkt := p.(*mhfpacket.MsgMhfEnumerateRengokuRanking)
guild, _ := GetGuildInfoByCharacterId(s, s.CharID)
isApplicant, _ := guild.HasApplicationForCharID(s, s.CharID)
guild, _ := service.GetGuildInfoByCharacterId(s.CharID)
isApplicant, _ := guild.HasApplicationForCharID(s.CharID)
if isApplicant {
guild = nil
}