mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-25 09:03:10 +01:00
feat(guild): implement rookie and return guild assignment
New/returning players are now auto-assigned to temporary holding guilds on MSG_MHF_ENTRY_ROOKIE_GUILD (pkt.Unk=0 → rookie guild, ≥1 → comeback guild). Guilds are created on demand and capped at 60 members. Players leave via the OperateGuildGraduateRookie/Return actions. The guild info response now reports isReturnGuild from the DB instead of hardcoded false. Migration 0014_return_guilds adds return_type to the guilds table.
This commit is contained in:
@@ -126,6 +126,8 @@ type GuildRepo interface {
|
||||
ListInvites(guildID uint32) ([]*GuildInvite, error)
|
||||
RolloverDailyRP(guildID uint32, noon time.Time) error
|
||||
AddWeeklyBonusUsers(guildID uint32, numUsers uint8) error
|
||||
FindOrCreateReturnGuild(returnType uint8, nameTemplate string) (uint32, error)
|
||||
AddMember(guildID, charID uint32) error
|
||||
}
|
||||
|
||||
// UserRepo defines the contract for user account data access.
|
||||
|
||||
Reference in New Issue
Block a user