Commit Graph

7 Commits

Author SHA1 Message Date
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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
Brian S. Stephan 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