mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-31 15:06:15 +02:00
WIP on user achievements
* Hook up events for testing * Start to plug in experimental interrupt
This commit is contained in:
parent
c5a72c7356
commit
a34dab6a73
5 changed files with 156 additions and 2 deletions
|
@ -1003,6 +1003,41 @@ function getDefaultConfig() {
|
|||
systemEvents : {
|
||||
loginHistoryMax: -1, // set to -1 for forever
|
||||
}
|
||||
},
|
||||
|
||||
userAchievements : {
|
||||
enabled : true,
|
||||
|
||||
artHeader : 'achievement_header',
|
||||
artFooter : 'achievement_footer',
|
||||
|
||||
achievements : {
|
||||
user_login_count : {
|
||||
type : 'userStat',
|
||||
statName : 'login_count',
|
||||
retroactive : true,
|
||||
match : {
|
||||
10 : {
|
||||
title : 'Return Caller',
|
||||
globalText : '{userName} has logged in {statValue} times!',
|
||||
text : 'You\'ve logged in {statValue} times!',
|
||||
points : 5,
|
||||
},
|
||||
25 : {
|
||||
title : 'Seems To Like It!',
|
||||
globalText : '{userName} has logged in {statValue} times!',
|
||||
text : 'You\'ve logged in {statValue} times!',
|
||||
points : 10,
|
||||
},
|
||||
100 : {
|
||||
title : '{boardName} Addict',
|
||||
globalText : '{userName} the BBS {boardName} addict has logged in {statValue} times!',
|
||||
text : 'You\'re a {boardName} addict! You\'ve logged in {statValue} times!',
|
||||
points : 10,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue