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

Feature save game #123

Closed
wants to merge 9 commits into from
Closed

Feature save game #123

wants to merge 9 commits into from

Conversation

neihousaigaai
Copy link
Collaborator

ref to issue #116

@neihousaigaai neihousaigaai linked an issue Feb 18, 2024 that may be closed by this pull request
Copy link
Collaborator

@nitro2 nitro2 left a comment

Choose a reason for hiding this comment

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

Could you describe how we use this feature?
How did you test it?

Comment on lines +12 to +21
@classmethod
def new(cls, interface, player_id, status, **kwargs):
obj = cls(interface, player_id, interface.get_user_display_name(player_id), status)
if "mana" in kwargs:
obj.mana = int(kwargs["mana"])
if "yesterday_target" in kwargs:
obj.set_guard_target(None if kwargs["yesterday_target"] == "None" else int(kwargs["yesterday_target"]))

return obj

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you move this to character.py? Also for other roles

@@ -232,6 +235,11 @@ async def parse_command(client, game, message):
res = game.set_mode(mode, on)
await message.reply(res)

elif cmd == "restart":
Copy link
Collaborator

Choose a reason for hiding this comment

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

This command should be reboot -> reboot the bot.
I want to use cmd restart as start a new game with previous people. So we don't need to ask people to join

@nitro2 nitro2 mentioned this pull request Apr 7, 2024
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.

Save game state
2 participants