old_contents: #!/usr/bin/env python
  #   -*- encoding: UTF-8 -*-
  
  # This file is part of Addison Arches.
  #
  # Addison Arches is free software: you can redistribute it and/or modify it
  # under the terms of the GNU Affero General Public License as published
  # by the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # Addison Arches is distributed in the hope that it will be useful, but
  # WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Addison Arches.  If not, see <http://www.gnu.org/licenses/>.
  
  async def default(folder, ensemble, log=None, loop=None):
      if log is not None:
          log.debug("No activity during interlude")
      return folder
  
  async def stop(folder, ensemble, log=None, loop=None):
      if log is not None:
          log.debug("Interlude stops dialogue")
      return None
  
new_contents: #!/usr/bin/env python
  #   -*- encoding: UTF-8 -*-
  
  # This file is part of Addison Arches.
  #
  # Addison Arches is free software: you can redistribute it and/or modify it
  # under the terms of the GNU Affero General Public License as published
  # by the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # Addison Arches is distributed in the hope that it will be useful, but
  # WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Addison Arches.  If not, see <http://www.gnu.org/licenses/>.
  
  from turberfield.dialogue.types import Player
  
  async def default(folder, ensemble:list, log=None, loop=None):
      if log is not None:
          log.debug("No activity during interlude")
      return folder
  
  async def stop(folder, ensemble:list, log=None, loop=None):
      if log is not None:
          log.debug("Interlude stops dialogue")
      for entity in ensemble[:]:
          if not isinstance(entity, Player):
              ensemble.remove(entity)
      return None
  
subject: Stop interlude removes non-player characters.