Project-Sloth / ps-realtor

ps-realtor for ps-housing
https://discord.com/projectsloth
Other
42 stars 35 forks source link

Add support for multiple realtor jobs #42

Closed r3ps4J closed 2 months ago

r3ps4J commented 4 months ago

Overview

This pull request adds support for multiple realtor jobs. Just like https://github.com/Project-Sloth/ps-housing/pull/207. The exact same thing was done here, except the RealtorJobs logic is placed in the shared/config.lua file since there is no framework.lua and it's such a small piece of code.

More details in https://github.com/Project-Sloth/ps-housing/pull/207.

Details

See https://github.com/Project-Sloth/ps-housing/pull/207.

UI Changes / Functionality

Config.RealtorJobName was changed to Config.RealtorJobNames and is now an array of job names. It uses the same mechanism as Config.PoliceJobNames from ps-housing to check for the jobs. It's nothing visible in the UI, just that you're able to sell houses with different jobs.

Testing Steps

  1. Add jobs to Config.RealtorJobNames.
  2. See that /housing still fully works.