Skip to content

Feat: Offline hours and time to join customisations - #405

Open
Harsharoni wants to merge 6 commits into
masterfrom
feat/change-bg-offline-timings
Open

Feat: Offline hours and time to join customisations#405
Harsharoni wants to merge 6 commits into
masterfrom
feat/change-bg-offline-timings

Conversation

@Harsharoni

Copy link
Copy Markdown
Collaborator
  • Adds in customisations for changing offline time, time to join with separate times for normal and ultra contracts.
  • Join reminders go out at 1/3 and 2/3 of the set times so that it always scales proportionally.
  • New fields in Guild: OfflineDemeritHours, JoinTimeHours, JoinTimeUltraHours
  • new fields in UserCoopXref: Removed, RemovedOn

Note: JoinWarning12h and JoinWarning24h no longer reflect the actual duration but I'm leaving them as is since it doesnt buy us any function changing them.

@DavidArthurCole DavidArthurCole left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this PS is reliant, the underlying logic has some issues;
Comment at ProcessCoop.cs:538-540 says removal frees the spot for /findcoopforuser, but rn it doesn't

ContractCommandsSlash.cs:126-127, existingCoop has no !Removed condition, so kicked users read as AlreadyAssigned to the coop they got kicked from, which would break /findcoopforuser and Find Coop Spot.

CoopAssignmentLookup.cs:53-59 + fallback at ContractCommandsSlash.cs:701-710 have the same gap. Find My Coop button still points kicked users at the coop they got removed from. Should probably sweep the rest of the UserCoopXrefs reads for this too, UserStatusCommands.cs:179 seems to be one as well.

Comment on lines +41 to +47
migrationBuilder.AddColumn<int>(
name: "OfflineDemeritHours",
table: "Guilds",
type: "integer",
nullable: false,
defaultValue: 30);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

30h default applies to every guild with BG on - might need to confirm with shareholders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants