You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This implementation plan was created by @ellipsis-dev
Tag me (@ellipsis-dev) in a comment with guidance if you want me to replan or to implement this plan.
Implementation Plan
Step 1: Implement race ban check
Path: skymp5-client/src/sync/appearance.ts
In applyAppearanceCommon, check isRaceBanned(raceId) before setting NPC race. Implement isRaceBanned(raceId: number): boolean to read from config/bannedRaces.json.
Step 2: Create banned races JSON
Path: config/bannedRaces.json
Create config/bannedRaces.json with an array of banned race IDs, e.g., [1, 2, 3].
Step 3: Read banned races from JSON
Path: skymp5-client/src/sync/appearance.ts
In isRaceBanned, use fs.promises.readFile to read config/bannedRaces.json. Parse with JSON.parse. Handle file I/O and JSON errors. Return true if raceId is in the parsed array, else false.
Questions? Check out our documentation. Leave 👍/👎 on this plan to give us feedback.
follow up #1805
The text was updated successfully, but these errors were encountered: