Skip to content

WDIP-56: option to set an end date when setting up a game#168

Open
utiq wants to merge 3 commits into
mainfrom
utiq/wdip-56-option-to-set-an-end-date-when-setting-up-a-game
Open

WDIP-56: option to set an end date when setting up a game#168
utiq wants to merge 3 commits into
mainfrom
utiq/wdip-56-option-to-set-an-end-date-when-setting-up-a-game

Conversation

@utiq

@utiq utiq commented Sep 15, 2022

Copy link
Copy Markdown
Collaborator

Check the description and comments on Linear

@utiq utiq added the WIP Work in Progress label Sep 15, 2022

@adamlerer adamlerer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This looks cool! I'm excited to try it out.

Comment thread gamemaster.php
$currentYear = intval($split[1] ?? 1901);
$endYear = $Game->endYear;

if ($currentYear == $endYear && $season == "Autumn" && ($Game->phase == "Builds" || $Game->phase == "Retreats")) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is season "Autumn" or "Winter" during builds?

Also, it's possible for both retreats and builds to be skipped (no retreats, no builds), which would miss the end date.

Add || $currentYear > $endYear?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh good point

Comment thread gamemaster/game.php
/*
* The password is not salted, because it's given out to several people anyway and it
* isn't worth changing the existing behaviour.
* isn't worth changing the existing behavior.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Haha don't change Kestas' British spelling.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

oh hahaha, that was the auto-corrector plugin that I have in VSCode lol

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

Labels

WIP Work in Progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants