Skip to content

Commit

Permalink
Update HandleCharModel.lua
Browse files Browse the repository at this point in the history
Fixed a typo
  • Loading branch information
Hampo committed Feb 17, 2019
1 parent 1712991 commit 3eeeefb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Randomiser/Resources/HandleCharModel.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local Path = GetPath()

if SettingRandomCharacter and OrigChar and (Path:match("art/chars/" .. OrigChar .. "_m%.p3d") or Path:match("art/chars/" .. OrigChar:sub(1,1) .. "_.-_m%.p3d")) then
local Original = ReadFile("GameData/" .. Path)
local Original = ReadFile("/GameData/" .. Path)
local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d"
local Replace = ReadFile(ReplacePath)

Expand All @@ -19,7 +19,7 @@ else
model = model:sub(1, 6)
end
if Path:match("art/chars/" .. model .. "_m%.p3d") then
local Original = ReadFile("GameData/" .. Path)
local Original = ReadFile("/GameData/" .. Path)
local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d"
local Replace = ReadFile(ReplacePath)

Expand All @@ -39,7 +39,7 @@ else
model = model:sub(1, 6)
end
if Path:match("art/chars/" .. model .. "_m%.p3d") then
local Original = ReadFile("GameData/" .. Path)
local Original = ReadFile("/GameData/" .. Path)
local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d"
local Replace = ReadFile(ReplacePath)

Expand All @@ -60,7 +60,7 @@ else
model = model:sub(1, 6)
end
if Path:match("art/chars/" .. model .. "_m%.p3d") then
local Original = ReadFile("GameData/" .. Path)
local Original = ReadFile("/GameData/" .. Path)
local ReplacePath = "/GameData/art/chars/" .. GetRandomFromTbl(RandomCharP3DPool, false) .. ".p3d"
local Replace = ReadFile(ReplacePath)

Expand Down

0 comments on commit 3eeeefb

Please sign in to comment.