on_* should get relevant, but optional attributes (like on_pass does) #95
Labels
No labels
Doing
To Do
bug
clarification needed
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nik/veripeditus-server#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The new on_pass method for Locations gets the passing player as an argument. The other on_* methods do not get any extra information.
We should either always pass the relevant information, or never. Please decide and fix accordingly ☺.
Please make on_pass and the others take optional arguments if you decide to pass extra information. Personally, I would use **kwargs for that and pass the relevant objects as keyword arguments.