from templates.utils import settings, templater

template = """
country_event = {{
    id = dmm_mod_clear.{count}
    hide_window = yes
    is_triggered_only = yes

    trigger = {{
        has_global_flag = dmm_mod_{count}
    }}

    immediate = {{                
        remove_global_flag = dmm_mod_{count}         
        remove_global_flag = dmm_mod_{count}_disabled
    }}    
}}"""


def process(publish_dir):
    mod_lines = []
    for i in range(1, settings.total + 1):
        mod_lines.append(template.format(count=i))
    templater.process_file(
        publish_dir + "/events/dmm_mod_clear.txt", events=mod_lines)

4d7f9e387281b05167f0869486f56016516cfbc0
<mask token>

<mask token>


def process(publish_dir):
    mod_lines = []
    for i in range(1, settings.total + 1):
        mod_lines.append(template.format(count=i))
    templater.process_file(publish_dir + '/events/dmm_mod_clear.txt',
        events=mod_lines)

<mask token>
template = """
country_event = {{
    id = dmm_mod_clear.{count}
    hide_window = yes
    is_triggered_only = yes

    trigger = {{
        has_global_flag = dmm_mod_{count}
    }}

    immediate = {{                
        remove_global_flag = dmm_mod_{count}         
        remove_global_flag = dmm_mod_{count}_disabled
    }}    
}}"""


def process(publish_dir):
    mod_lines = []
    for i in range(1, settings.total + 1):
        mod_lines.append(template.format(count=i))
    templater.process_file(publish_dir + '/events/dmm_mod_clear.txt',
        events=mod_lines)

from templates.utils import settings, templater
template = """
country_event = {{
    id = dmm_mod_clear.{count}
    hide_window = yes
    is_triggered_only = yes

    trigger = {{
        has_global_flag = dmm_mod_{count}
    }}

    immediate = {{                
        remove_global_flag = dmm_mod_{count}         
        remove_global_flag = dmm_mod_{count}_disabled
    }}    
}}"""


def process(publish_dir):
    mod_lines = []
    for i in range(1, settings.total + 1):
        mod_lines.append(template.format(count=i))
    templater.process_file(publish_dir + '/events/dmm_mod_clear.txt',
        events=mod_lines)

from templates.utils import settings, templater

template = """
country_event = {{
    id = dmm_mod_clear.{count}
    hide_window = yes
    is_triggered_only = yes

    trigger = {{
        has_global_flag = dmm_mod_{count}
    }}

    immediate = {{                
        remove_global_flag = dmm_mod_{count}         
        remove_global_flag = dmm_mod_{count}_disabled
    }}    
}}"""


def process(publish_dir):
    mod_lines = []
    for i in range(1, settings.total + 1):
        mod_lines.append(template.format(count=i))
    templater.process_file(
        publish_dir + "/events/dmm_mod_clear.txt", events=mod_lines)
