File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,15 @@ local scopes = { }
1313local function getScope (scopeName )
1414 if not scopes [scopeName ] then
1515 local scope = nil
16- local file = io.open (" Data/StatDescriptions/Specific_Skill_Stat_Descriptions/" .. scopeName .. " .lua" , ' rb' )
16+ -- Allow lowercase "specific_skill_stat_descriptions/<name>" by stripping the prefix (Linux is case-sensitive).
17+ local normalizedScopeName = scopeName :gsub (" ^specific_skill_stat_descriptions/" , " " )
18+
19+ local file = io.open (" Data/StatDescriptions/Specific_Skill_Stat_Descriptions/" .. normalizedScopeName .. " .lua" , ' rb' )
1720 if file then
1821 file :close ()
19- scope = LoadModule (" Data/StatDescriptions/Specific_Skill_Stat_Descriptions/" .. scopeName )
22+ scope = LoadModule (" Data/StatDescriptions/Specific_Skill_Stat_Descriptions/" .. normalizedScopeName )
2023 else
21- scope = LoadModule (" Data/StatDescriptions/" .. scopeName )
24+ scope = LoadModule (" Data/StatDescriptions/" .. normalizedScopeName )
2225 end
2326 scope .name = scopeName
2427 if scope .parent then
You can’t perform that action at this time.
0 commit comments