[MDB IGNORE] kicks all _maps/ back to maps/ (#5228)

since lohikar / moony talked sense into me we're not doing the
everything must be .json thing anymore

this means there's no more point to separating the folders

i'll be unifying the maploader after this pr and adding
traits/attributes as-is

---------

Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2023-03-26 15:07:09 -07:00
committed by GitHub
co-authored by silicons
parent ed07829d10
commit 11f2ff42d5
526 changed files with 204 additions and 248 deletions
@@ -258,7 +258,7 @@ function tag_pr($payload, $opened) {
else if ($mergeable === FALSE)
$tags[] = 'Merge Conflict';
$treetags = array('_maps' => 'Map Edit', 'tools' => 'Tools', 'SQL' => 'SQL', '.github' => 'GitHub');
$treetags = array('maps' => 'Map Edit', 'tools' => 'Tools', 'SQL' => 'SQL', '.github' => 'GitHub');
$addonlytags = array('icons' => 'Sprites', 'sound' => 'Sound', 'config' => 'Config Update', 'code/controllers/configuration/entries' => 'Config Update', 'tgui' => 'UI');
foreach($treetags as $tree => $tag)
if(has_tree_been_edited($payload, $tree))
@@ -624,8 +624,8 @@ function auto_update($payload){
function has_tree_been_edited($payload, $tree){
global $github_diff;
get_diff($payload);
//find things in the _maps/map_files tree
//e.g. diff --git a/_maps/map_files/Cerestation/cerestation.dmm b/_maps/map_files/Cerestation/cerestation.dmm
//find things in the maps/map_files tree
//e.g. diff --git a/maps/map_files/Cerestation/cerestation.dmm b/maps/map_files/Cerestation/cerestation.dmm
return ($github_diff !== FALSE) && (preg_match('/^diff --git a\/' . preg_quote($tree, '/') . '/m', $github_diff) !== 0);
}