Open SheepTester opened 4 years ago
Also to revive people somehow...?
To add players to games, either
Have people join normally. However, most games have joining turned on, so this would require some conversion process, which is complex on its own.
Have the game creator add them in manually. This requires more UI, and the settings page could get messy quickly. ADDENDUM: Also, this should require the player's consent.
After being added, their join date and username are added to a queue. When someone dies or a shuffle is performed, they can be pulled from the queue as needed.
Should the queue be shown to the game creator? If so, this requires more UI and API changes.
Should there be a way to remove people from the queue? Again, if so, this requires more UI.
Then to resurrect people, we need undo the kill by whoever just killed them. This is rather messy, but somewhat doable, especially since the individual stores whoever killed them, so we can decrement their kill count. I suppose we can just take their username and join time and add them to the queue.
However, this requires some more UI.
Also, might want to consider having the option to mark a kick as a kill, but this will result in code duplication.
Maybe we should focus on just resurrecting players.
There is no need for an eliminated person to be kicked, so I think the [Kick] button should be replaced with [Resurrect], which when clicked, it will without confirmation:
[ ] put the player username in an internal queue
[ ] send a notification to the player (note: since notifications can't be easily undone, that also means resurrecting can't be undone)
[ ] show player with new queue status
[ ] insert players from queue when assigning targets (either in death, or while shuffling; all players can be inserted at once in either scenario)
At least in the API end I suppose