Module:AocUtils: Difference between revisions

no edit summary
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 22: Line 22:
   "^Pack/FinalTrial.pack$",
   "^Pack/FinalTrial.pack$",
}
}
function has_aoc_dungeon_num(s)
  local dungeon_num_str = string.match(s, "Dungeon(%d%d%d)")
  if dungeon_num_str == nil then
  return false
  end
  local dungeon_num = tonumber(dungeon_num_str)
  return dungeon_num > 119
end


function should_use_aoc_path(path)
function should_use_aoc_path(path)
Line 28: Line 37:
       return true
       return true
     end
     end
  end
  if string.find(path, "^Pack/") and string.find(path, "\.pack$") and has_aoc_dungeon_num(path) then
return true
  end
  if string.find(path, "^Map/CDungeon/") and has_aoc_dungeon_num(path) then
return true
  end
  if string.find(path, "^Physics/StaticCompound/") and has_aoc_dungeon_num(path) then
return true
  end
  if string.find(path, "^NavMesh/CDungeon/") and has_aoc_dungeon_num(path) then
return true
   end
   end
   return false
   return false
Anonymous user