diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-07-16 16:49:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-07-16 16:49:56 -0300 |
commit | 9658dd3c0600d056d57b1fc4dd26d8f119437892 (patch) | |
tree | 60e89b57bde27f064c39a7ce41a258e47732323a | |
parent | b641e8bca4de28d26bd74ae55fa90cc8d0f8d1d6 (diff) | |
download | tools-9658dd3c0600d056d57b1fc4dd26d8f119437892.tar.gz tools-9658dd3c0600d056d57b1fc4dd26d8f119437892.tar.bz2 tools-9658dd3c0600d056d57b1fc4dd26d8f119437892.tar.xz tools-9658dd3c0600d056d57b1fc4dd26d8f119437892.zip |
Drop AllowCard restrictions on ML equipment
-rwxr-xr-x | merge-server.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/merge-server.py b/merge-server.py index 3b4eecb..169a289 100755 --- a/merge-server.py +++ b/merge-server.py @@ -59,10 +59,19 @@ def parse(l, offset, prefix): ################################################################################# ## Moubootaur Legends is a raw copy (prefix = 0) with open("%s/db/re/item_db.conf" % MOUBOO, "r") as f: + skip = False for l in f: #l=l.replace(" ", "\t") - ## Disabled commands + ## Disabled commands (statusup2, AllowCards) l=l.replace('statusup2', '//statusup2') + if skip and not "}" in l: + continue + elif skip and "}" in l: + skip=False + continue + elif not skip and "AllowCards" in l: + skip=True + continue ## Add headers if "== License ==" in l: item_db.append("//=========================================================================\n") |