Skip to content

Commit

Permalink
fix(client): Fix job outfit checks (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios authored Jul 14, 2022
1 parent 39b9de7 commit 22f4850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,9 @@ local function getPlayerJobOutfits(clothingRoom)
if PlayerData.charinfo.gender == 1 then
gender = "female"
end
local gradeLevel = clothingRoom.isGang and PlayerGang.grade.level or PlayerJob.grade.level
local jobName = clothingRoom.isGang and PlayerGang.name or PlayerJob.name

local gradeLevel = clothingRoom.job and PlayerJob.grade.level or PlayerGang.grade.level
local jobName = clothingRoom.job and PlayerJob.name or PlayerGang.name

for i = 1, #Config.Outfits[jobName][gender], 1 do
for _, v in pairs(Config.Outfits[jobName][gender][i].grades) do
Expand Down

0 comments on commit 22f4850

Please sign in to comment.