-
Notifications
You must be signed in to change notification settings - Fork 27
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
Timer format #142
base: master
Are you sure you want to change the base?
Timer format #142
Conversation
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.
Looks good, only 1 change requested to the /format_timer command before merge
server/commands/roleplay.py
Outdated
current_time = int(timer.static.total_seconds()) * 1000 | ||
for area in areas: | ||
for c in area.clients: | ||
c.send_command("TF", args[0], args[1], current_time) |
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.
Maybe re-use send_timer_set_time instead?
Oh yeah-- can you also add a documentation/commands.md entry and any aliases to the config_sample? |
Okay I've added stuff to command aliases and to documentation |
not perfect, but it still tells people the proper notation
heckin github auto-formatted the Ctrl+V
timer = self.area.area_manager.timer | ||
else: | ||
timer = self.area.timers[timer_id-1] | ||
self.send_command("TF", timer_id, timer.format, new_time) |
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.
does DRO support timer formatting or is this just a KFO-Client feature we came up with? I'll double-check.
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.
Cool and Good, just testing left
No description provided.