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

Jester Role #49

Merged
merged 8 commits into from
Dec 22, 2024
Merged

Jester Role #49

merged 8 commits into from
Dec 22, 2024

Conversation

Aidenkrz
Copy link
Collaborator

@Aidenkrz Aidenkrz commented Dec 22, 2024

About the PR

Adds the jester role, whose job is to try and get killed.

Why / Balance

Fun

Technical details

so like, everything really should be in prototypes and shit but id have to refactor a lot of SSS existing code, and I don't feel like that right now. i just shit coded on top of simyon's shitcode.

Changelog
🆑

  • add: Jester role! New role whose goal is to get killed by innocents and detectives.

Copy link
Member

@Simyon264 Simyon264 left a comment

Choose a reason for hiding this comment

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

i have fucking 10 minute fortnite queue times wtf is this why is no one playing ranked

RaiseNetworkEvent(new SuspicionRuleUpdateRole(SuspicionRole.Detective), ownedEntity.Value);
participatingPlayers.Remove(role);
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we should probably pull out some of the systems here (such as the briefing and shit) so we don't duplicated code like crazy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We really should, but like I said, I'm not trying to refactor everything with this PR.

Copy link
Member

Choose a reason for hiding this comment

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

yeah thats fine

Comment on lines +125 to +133
victory = "Jesters";
break;

case var _ when innocentsOnlyAlive.Count + detectivesOnlyAlive.Count == 0:
victory = "Traitors";
break;

default:
victory = "Innocents";
Copy link
Member

Choose a reason for hiding this comment

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

While my previous shitcode is not localized, new code probably should be.

Copy link
Collaborator Author

@Aidenkrz Aidenkrz Dec 22, 2024

Choose a reason for hiding this comment

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

This is still shitcode, just slightly better shitcode. I plan on having the summary text be generated by the win condition, not just hope that we get the right win condition. Future me/us problem.

Resources/Locale/en-US/_SSS/suspicion.ftl Show resolved Hide resolved
Comment on lines +23 to +33
/// Percentage of total players that will be a wildcard role. Handled similar to traitor percentage (rounded down etc).
/// </summary>
public static readonly CVarDef<float> SSSWildcardPercentage =
CVarDef.Create("sss.wildcard_percentage", 0.15f, CVar.SERVERONLY);

/// <summary>
/// Chance a round will include wildcard roles.
/// </summary>
public static readonly CVarDef<float> SSSWildcardChance =
CVarDef.Create("sss.wildcard_chance", 0.3f, CVar.SERVERONLY);
/// <summary>
Copy link
Member

Choose a reason for hiding this comment

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

There should probably be a minimum CVar for subroles to appear so that rounds with less than X players don't get too wild.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we should leave it as is for now, so we can get feedback on new roles, and if it becomes a problem in the future its easy enough to add in.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good

Resources/Locale/en-US/_SSS/suspicion.ftl Outdated Show resolved Hide resolved
Resources/Locale/en-US/_SSS/suspicion.ftl Outdated Show resolved Hide resolved
@Aidenkrz
Copy link
Collaborator Author

no like seriously tho most of SSS gamerule will have to be refactored in the near future anyway

@Simyon264
Copy link
Member

no like seriously tho most of SSS gamerule will have to be refactored in the near future anyway

we should like nuke it

@Aidenkrz
Copy link
Collaborator Author

no like seriously tho most of SSS gamerule will have to be refactored in the near future anyway

we should like nuke it

Yes!

@Simyon264
Copy link
Member

fuck it, we ball

@Simyon264 Simyon264 merged commit 7479f79 into Goob-Station:master Dec 22, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants