Commit Graph

8 Commits

Author SHA1 Message Date
4a8babf39e
enforce exclusivity of only one active Game at a time
a prior commit made this determination for now, for simplicity's sake
(and also what are the odds of running two games at once on the same
codebase), but it was'n really enforced until now

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-06-01 23:26:49 -05:00
2ad79285b3
unique constraint for only one hostmask enabled at a time
this replaces the need for a game+hostmask unique constraint, with this
change, a player can only have one active character they're playing
with anyway, regardless of how many games there are

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-14 11:13:13 -05:00
d0531bff53
have character status display strings lowercase for use mid-sentence
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-14 10:55:51 -05:00
f941762f26
get rid of the online character status, it's not necessary
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-12 23:36:25 -05:00
54e944b74b
actually, just make Character.name completely unique
login, logout, etc. are too annoying otherwise

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-10 16:08:16 -05:00
7d0c8f3431
separate the logged in state from the online state for a character
I think we will need to distinguish in the database characters whose
players are online but not yet logged in, so start building for that now

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-10 16:08:13 -05:00
34aa91ad9e
add unique constraint on name + hostmask
I'm thinking that the command to log out will be LOGOUT <name>, which
means the user hostmask must have an unambiguous link to name

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-10 13:37:17 -05:00
d862aa16d8
implement the bones of character management
this provides character-level operations such as character creation,
logging in/out, leveling them, and penalizing them. this isn't a game,
yet, but it does implement and test a lot of the core functionality,
just without triggers or bulk operations

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
2024-05-06 00:16:16 -05:00