Timelock System to all Jobs, Revival PR. #692
Open
+842
−171
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDM5NjksIm5iZiI6MTczODkwMzY2OSwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAyMDQtNDE2YjVjZDMtYzZjNS00ODFmLWIwYTEtNzVkODUxZTYzNmY0LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0NDc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZhMWMxODc0NDYwYTZhMWNhYWI4YjYyN2Y3NzJkZmU2ZDIxNGEwMmU3ZDg5NTNkZTAxYzJkYTIyMWU3YzYxN2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YPbUum058X3d7f-_AWOkjzyDkyWrHEESEnULDMGLf9g)
![part_2](https://private-user-images.githubusercontent.com/47699733/410690224-177eae66-68e2-42af-8b88-02b2747f4414.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDM5NjksIm5iZiI6MTczODkwMzY2OSwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAyMjQtMTc3ZWFlNjYtNjhlMi00MmFmLThiODgtMDJiMjc0N2Y0NDE0LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0NDc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkZWFmOTBmOTdmZTQyNzU0MjJkYzY4ODM3NDA0Mzc2N2I2OWJlMTE3NmNlYWVjMDQyNjA2NjIwNWU3YTFiMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jDbWzPVOdJW1h6Vu4J_r-c5o2zeSFXNKmVkbm_rI-e4)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDM5NjksIm5iZiI6MTczODkwMzY2OSwicGF0aCI6Ii80NzY5OTczMy8zOTgwMTM0NTgtNWJlNThkOTEtZTRjMy00NTZlLWIwNzMtZmVkZDI2OWQwN2Q1LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0NDc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhNDY0YWY1ODVkZTllNDlmNWJlMGQzNWRmY2YzMWIxZDM4MjkwZWM4NzFjMmI5MmU4MjYwYzhhNGY0M2NiYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hqbv3dfOtTjMRQPC5zbMpuOXXTj02yhSk5hQe13dhBE)
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDM5NjksIm5iZiI6MTczODkwMzY2OSwicGF0aCI6Ii80NzY5OTczMy80MTA2OTAwNzEtZGFiNDZiOWMtYTBkMy00MzI1LTgwYWQtYTkxMmRlNjg2MTg3LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA0NDc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmMTQ1MGRlMDI4NTM3MTYzZjQwMGU0ODYzMmE5NTBhMWU0M2IzMDEwZTExMDZkMGVmNzRiYWIxMWFkNTk2ZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.L_JLzTllK1rdYa-rUU9_LgkHNjngIVJyMP269i4b9YE)
[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: