Auto publish docs

This commit is contained in:
Jakob Gillich 2020-08-23 21:27:02 +02:00
parent 67f6287a2b
commit 0429003863
7 changed files with 65 additions and 36 deletions

View file

@ -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

View file

@ -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
}
}