-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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. |
…lemented json methods. Also, put upgrade stats in stats.py. Changed the Wall class so collidable can be modified in the parameter.
game/common/items/upgrade.py
Outdated
|
||
def to_json(self): | ||
data = super().to_json() | ||
data[upgrade_enum] = self.upgrade_enum |
There was a problem hiding this comment.
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
Made a new enum, and assigned some values in the upgrade class.