mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-11 22:44:37 +00:00
Auto publish docs
This commit is contained in:
parent
67f6287a2b
commit
0429003863
7 changed files with 65 additions and 36 deletions
|
|
@ -39,6 +39,8 @@ admin {
|
|||
}
|
||||
|
||||
# Database configuration
|
||||
# Full reference: https://github.com/jasync-sql/jasync-sql/wiki/Configuring-and-Managing-Connections
|
||||
# https://github.com/getquill/quill/blob/master/quill-jasync/src/main/scala/io/getquill/context/jasync/JAsyncContextConfig.scala
|
||||
database {
|
||||
# The hostname of the PostgreSQL server.
|
||||
host = localhost
|
||||
|
|
|
|||
|
|
@ -49,11 +49,8 @@ case object Cosmetic extends IntEnum[Cosmetic] {
|
|||
*/
|
||||
def valuesToAttributeValue(values: Set[Cosmetic]): Long = {
|
||||
values.foldLeft(1) {
|
||||
case (sum, NoHelmet) => sum - 1
|
||||
case (sum, BrimmedCap) => sum + 2
|
||||
case (sum, Sunglasses) => sum + 4
|
||||
case (sum, Earpiece) => sum + 8
|
||||
case (sum, Beret) => sum + 16
|
||||
case (sum, NoHelmet) => sum - NoHelmet.value
|
||||
case (sum, entry) => sum + entry.value
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue