mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
WIP on user achievements
+ Add MCI codes for points/count + Add docs for MCI codes + Record in stats, stat log, etc. * Do not trigger more than once * Code cleanup & organization, add classes, etc. * Tweaks to DB table
This commit is contained in:
parent
6410637359
commit
c332b0f3ec
8 changed files with 242 additions and 89 deletions
|
@ -2,24 +2,25 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
ClientConnected : 'codes.l33t.enigma.system.connected', // { client, connectionCount }
|
||||
ClientDisconnected : 'codes.l33t.enigma.system.disconnected', // { client, connectionCount }
|
||||
TermDetected : 'codes.l33t.enigma.system.term_detected', // { client }
|
||||
ClientConnected : 'codes.l33t.enigma.system.connected', // { client, connectionCount }
|
||||
ClientDisconnected : 'codes.l33t.enigma.system.disconnected', // { client, connectionCount }
|
||||
TermDetected : 'codes.l33t.enigma.system.term_detected', // { client }
|
||||
|
||||
ThemeChanged : 'codes.l33t.enigma.system.theme_changed', // (theme.hjson): { themeId }
|
||||
ConfigChanged : 'codes.l33t.enigma.system.config_changed', // (config.hjson)
|
||||
MenusChanged : 'codes.l33t.enigma.system.menus_changed', // (menu.hjson)
|
||||
PromptsChanged : 'codes.l33t.enigma.system.prompts_changed', // (prompt.hjson)
|
||||
ThemeChanged : 'codes.l33t.enigma.system.theme_changed', // (theme.hjson): { themeId }
|
||||
ConfigChanged : 'codes.l33t.enigma.system.config_changed', // (config.hjson)
|
||||
MenusChanged : 'codes.l33t.enigma.system.menus_changed', // (menu.hjson)
|
||||
PromptsChanged : 'codes.l33t.enigma.system.prompts_changed', // (prompt.hjson)
|
||||
|
||||
// User - includes { user, ...}
|
||||
NewUser : 'codes.l33t.enigma.system.user_new',
|
||||
UserLogin : 'codes.l33t.enigma.system.user_login',
|
||||
UserLogoff : 'codes.l33t.enigma.system.user_logoff',
|
||||
UserUpload : 'codes.l33t.enigma.system.user_upload', // {..., files[ fileEntry, ...] }
|
||||
UserDownload : 'codes.l33t.enigma.system.user_download', // {..., files[ fileEntry, ...] }
|
||||
UserPostMessage : 'codes.l33t.enigma.system.user_post_msg', // { areaTag }
|
||||
UserSendMail : 'codes.l33t.enigma.system.user_send_mail',
|
||||
UserRunDoor : 'codes.l33t.enigma.system.user_run_door',
|
||||
UserSendNodeMsg : 'codes.l33t.enigma.system.user_send_node_msg',
|
||||
UserStatUpdate : 'codes.l33t.enigma.system.user_stat_set', // { ..., statName, statValue }
|
||||
NewUser : 'codes.l33t.enigma.system.user_new',
|
||||
UserLogin : 'codes.l33t.enigma.system.user_login',
|
||||
UserLogoff : 'codes.l33t.enigma.system.user_logoff',
|
||||
UserUpload : 'codes.l33t.enigma.system.user_upload', // {..., files[ fileEntry, ...] }
|
||||
UserDownload : 'codes.l33t.enigma.system.user_download', // {..., files[ fileEntry, ...] }
|
||||
UserPostMessage : 'codes.l33t.enigma.system.user_post_msg', // { areaTag }
|
||||
UserSendMail : 'codes.l33t.enigma.system.user_send_mail',
|
||||
UserRunDoor : 'codes.l33t.enigma.system.user_run_door',
|
||||
UserSendNodeMsg : 'codes.l33t.enigma.system.user_send_node_msg',
|
||||
UserStatUpdate : 'codes.l33t.enigma.system.user_stat_set', // { ..., statName, statValue }
|
||||
UserAchievementEarned : 'codes.l33t.enigma.system.user_achievement_earned', // {..., achievementTag, points }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue