-
Notifications
You must be signed in to change notification settings - Fork 202
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
base: next
Are you sure you want to change the base?
Monarchist SH #1989
Conversation
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 :) |
I made the art. |
There was a problem hiding this 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
models/profile/utils.js
Outdated
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
src/scss/game.scss
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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! |
Removed unnecessary spacing.
models/profile/utils.js
Outdated
There was a problem hiding this comment.
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.
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
Base 5p game.
Working with AvaSH
Invest working on Hitler for the Monarchist
Card art
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
Tests
Changelog
Changelog Entry (delete this section if this PR does not need a changelog entry)
Check one, delete the other:
Check one, delete the other:
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.