Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create-upgrade-object #50

Merged
merged 16 commits into from
Jun 6, 2021
Merged

Create-upgrade-object #50

merged 16 commits into from
Jun 6, 2021

Conversation

Mitchell-Borders
Copy link
Collaborator

Made a new enum, and assigned some values in the upgrade class.

game/common/walls.py Outdated Show resolved Hide resolved
game/common/upgrade.py Outdated Show resolved Hide resolved
@erickbickler
Copy link
Collaborator

For the future, make sure you are on the dev branch when you create your new branch. This will ensure that all the commits from the dev branch are seen as 'old code' when you create your merge request. Here, your create-wall commits are treated like 'changes' when they've already been merged into dev.

game/common/walls.py Outdated Show resolved Hide resolved
game/common/upgrade.py Outdated Show resolved Hide resolved
game/common/upgrade.py Outdated Show resolved Hide resolved
@erickbickler erickbickler linked an issue Jun 4, 2021 that may be closed by this pull request
…lemented json methods. Also, put upgrade stats in stats.py. Changed the Wall class so collidable can be modified in the parameter.
game/common/enums.py Outdated Show resolved Hide resolved

def to_json(self):
data = super().to_json()
data[upgrade_enum] = self.upgrade_enum
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keys in a dictionary should be strings. You can use a variable but I don't think this is will result in the desired output you want

@HagenSR HagenSR merged commit d540908 into dev Jun 6, 2021
@HagenSR HagenSR deleted the Create-Upgrade-Object branch June 6, 2021 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Upgrade object
4 participants