-
Notifications
You must be signed in to change notification settings - Fork 98
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
Timelock System to all Jobs, Revival PR. #692
Open
wgtjunior743
wants to merge
24
commits into
WorldOfDarknessXIII:master
Choose a base branch
from
Jogos-Brabos:YEAH_22_WORK
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Timelock System to all Jobs, Revival PR. #692
wgtjunior743
wants to merge
24
commits into
WorldOfDarknessXIII:master
from
Jogos-Brabos:YEAH_22_WORK
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-of-Darkness-13 into YEAH_22_WORK_FIX
…-of-Darkness-13 into YEAH_22_WORK_FIX_2
Miraviel
requested changes
Feb 13, 2025
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.
stylistic requests in the first go, thanks for taking up doing the timelock system
changes done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Administration
As generous gods, we have deigned to throw the jannies a bone
Code Improvement
Code is now easier to copy paste.
Feature
Exposes new bugs in interesting ways
Refactor
Makes the code harder to read
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About The Pull Request
Previously i made this PR back in december that took to long to get reviewed(over 2 weeks) and had to close because of multiple conflict merges. now it is back with the fixes and new code for the new jobs.
New timelock system based on your playtime of your jobs, this was mainly ported from the cm-ss13 codebase and then adapted to fit this code.
Preference Menu after 2 hours of playtime (Ignoring race and clans limitations)
![part_1](https://private-user-images.githubusercontent.com/47699733/410690204-416b5cd3-c6c5-481f-b0a1-75d851e636f4.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTM4ODIsIm5iZiI6MTczOTU5MzU4MiwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAyMDQtNDE2YjVjZDMtYzZjNS00ODFmLWIwYTEtNzVkODUxZTYzNmY0LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MjYyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1NjExYmQwMzlkNTQ1ZTEyMmMxYTExYjVhODY4M2QwNTkwNGU5M2I1OWQ5ZTIyYjhjZTVjZWY1NjNhODkzNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uMz5v-QkOp8LjaSTrHgTx1BvBMQ7p1BYAmJUDACd7YM)
![part_2](https://private-user-images.githubusercontent.com/47699733/410690224-177eae66-68e2-42af-8b88-02b2747f4414.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTM4ODIsIm5iZiI6MTczOTU5MzU4MiwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAyMjQtMTc3ZWFlNjYtNjhlMi00MmFmLThiODgtMDJiMjc0N2Y0NDE0LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MjYyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyNjFjN2Q0MDUzMGU3Zjc2MWIwYjdhOTgyODJlYjMxODU2ZGI4YmQzMDczMTdjZWIzY2M0NGEwMjBlNzYxMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.d-Xf3BpDrIG2q9tB1JeHD3eqfJKWescNkDs1muXgDM4)
Choose Profession for a new player(Old sc without the Clinic, but without 2 hours of any of these roles they can't play doctor):
![choose_profession_for_freshie](https://private-user-images.githubusercontent.com/47699733/398013458-5be58d91-e4c3-456e-b073-fedd269d07d5.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTM4ODIsIm5iZiI6MTczOTU5MzU4MiwicGF0aCI6Ii80NzY5OTczMy8zOTgwMTM0NTgtNWJlNThkOTEtZTRjMy00NTZlLWIwNzMtZmVkZDI2OWQwN2Q1LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MjYyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyZjUwY2NiYTk5NjcwNjQwMDExYjFhYmY1ZDJhZGFhYjBiYzg5MDFjYTE3NmQ0Mjg5NmJkZTI1MmNiYjQyZTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hcIbOb1__cB8kNbSgmQdXkN4wNSjxcCQCHuhvxlbtTI)
Once they play 2 hours of any role(Admin bypass is active so it is ignoring races limitations):
![after_2_hours](https://private-user-images.githubusercontent.com/47699733/410690071-dab46b9c-a0d3-4325-80ad-a912de686187.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTM4ODIsIm5iZiI6MTczOTU5MzU4MiwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAwNzEtZGFiNDZiOWMtYTBkMy00MzI1LTgwYWQtYTkxMmRlNjg2MTg3LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MjYyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNDAzOWEwNzZjNGFlMzMzYmI2M2I4ZWI2MmM1MDQ5NGE0NmJmNzAyYTgzYTVlMWI4NGU5Yjk2MmZhYzA3ZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._D1VfTOIfUToJywUbHpaH8P0qXrmTeeBkJH4vJfCpoI)
[To test this you need to set up the DB(dbconfig.txt for the info), enable tracking at config.txt and disable the admin bypass, there is one at preferences.dm and another at the new_player.dm]
Why It's Good For The Game
Easy system to implement for jobs, guide new players towards more friendly roles and make them play abit of some more simple roles to move into the complex ones.
Changelog
🆑
add: Increased the limit in the preference from 17 to 18 so it don't looks ugly
add: Add new timelock system for jobs
add; Add time locks for all jobs besides the new player ones
fix: Fixed an issue with generation reqs showing before even checking if your clan or race could play that role.
code: New define for the jobs titles, straight from __DEFINES/jobs
code: New folders for each group of jobs, based off the join menu, each group got their own dm besides the antags but police, giovanni and primogen still a single dm with all their jobs.
/:cl: