Skip to content

add_sprites default argument is not being accepted #2

@aylusltd

Description

@aylusltd

Describe the bug
in app.py:200 the variable monsters should always have a length of 0. Sometimes it doesn't.

To Reproduce
Steps to reproduce the behavior:

  1. invoke screen.generate_screen
  2. print(monsters) in app.add_sprites
  3. Notice it is not empty.

Expected behavior
Argument is never passed anywhere in the code. Should default to the value in the function definition (e.g. empty List). Does not.

Desktop (please complete the following information):

  • OS: MacOS Mojave

Additional context
There's a half dozen other places in the code where app.screen.monsters is being set to an empty list, and they're all being ignored too, despite the fact that it seems to work in maps.load

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions