Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monarchist SH #1989

Open
wants to merge 9 commits into
base: next
Choose a base branch
from
Open

Monarchist SH #1989

wants to merge 9 commits into from

Conversation

Shrauger
Copy link

Changes

Please describe the changes made in the pull request here.

Adds a button in lobby creation for the Monarchist gamemode. Doesn’t permit ranked games if turned on.
Replaces a fascist with a monarchist (who has colors, art, fasc alignment on invest, etc,.)
Allows for the monarchist to shoot Hitler despite being fascist aligned
Changes it so Hitler’s name turns to red whenever investigated by anything other than a regular fascist
Sends chat messages based on Monarchist being in the game.
Changes profile data to be recorded as a loss for the monarchist depending on game ending type as opposed to just fasc or lib win.

Screenshots

image
Base 5p game.
image
Working with AvaSH
image
Invest working on Hitler for the Monarchist
Card art
image

image
image
image
In-game text.
Not shown here, but Monarchist can in fact shoot Hitler by default.
These are effectively required for non-trivial changes, but appreciated for all.


Below you'll find a checklist. For each item on the list, check one option (if completed) and delete the other as appropriate. (Delete this line too)

Tested Locally

  • This PR has been tested locally, and ensured to not cause any breaking changes
  • This PR makes a trivial change

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Changelog Section below has been updated with Changelog entry
  • This PR does not make a user-facing change

Changelog Entry (delete this section if this PR does not need a changelog entry)

Check one, delete the other:

  • New Feature

Check one, delete the other:

  • Minor Change

Changelog Headline: Added new custom fascist role game mode.

Changelog Details: Added monarchist as a playable game mode. This is a negative utility fascist who only wins on six reds and executing Hitler. They see regular fascists but not Hitler and appear as a fascist on investigation.

@iounpaladin
Copy link
Contributor

Who made the art for the card? (Just want to confirm it doesn't violate licensing).

I'm not a maintainer anymore so I can't approve the checks or review it :)

@Shrauger
Copy link
Author

I made the art.

Copy link
Owner

@cozuya cozuya left a comment

Choose a reason for hiding this comment

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

Honestly other than the minor spacing issues this looks fine from a surface look no real notes. @Vigasaurus any thoughts here at your convenience would help thanks

const isLiberal = loyalty === 'liberal';
const isFascist = !isLiberal;
const isMonarchist = role === 'monarchist';
const isCardWin = isWinner && isGameEndingPolicyEnacted;
const monarchistWinCondition = isMonarchist && !isHitlerElected && (!isHitlerKilled || isCardWin); // I don't quite understand why isHitlerKilled needs to be negated to function, but hey it works
Copy link
Owner

Choose a reason for hiding this comment

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

Usually this should be named with a is to show its a boolean.

Copy link
Author

Choose a reason for hiding this comment

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

thanks for letting me know!

Copy link
Owner

Choose a reason for hiding this comment

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

if its easy could you revert all these spacing changes? thanks

Copy link
Author

Choose a reason for hiding this comment

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

will do so!

Removed unnecessary spacing.
forgot one space
@Shrauger
Copy link
Author

Shrauger commented Mar 17, 2024

Honestly other than the minor spacing issues this looks fine from a surface look no real notes. @Vigasaurus any thoughts here at your convenience would help thanks

Looks like there's an issue with profile replays still. Thought I set it up properly but as Paladin pointed it out on Discord its not the appropriate setup. Spent the last 2-3 hours testing gameplay and realized that monarchistSH + avalonSH have an issue if there is only 5-6 players (which was preventing percival from having 2 merlin candidates.)

Edit: fixed the 5-6 ava-mona issue!

Copy link
Author

@Shrauger Shrauger Mar 17, 2024

Choose a reason for hiding this comment

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

thinking that what I'm trying to do here can be done on buildTurns by switching the loyalty of the monarchist to liberal based on game state but I'm still getting familiar with all the code.

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.

3 participants