Skip to content

Commit aacc4ef

Browse files
add card and completion
1 parent 053a8ae commit aacc4ef

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/main/java/org/qo/ApiApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ public void handleExpLevelUpdate(String token, int lvl, String username) {
323323
if (nodes.getServerFromToken(token) != 1) {
324324
return;
325325
}
326+
326327
userORM.updateLevelByUsername(username, lvl);
327328
}
328329
}

src/main/java/org/qo/datas/Enumerations.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Enumerations {
1515
KOISHI_NORZ(9),
1616
PATCHOULI_LIB(10),
1717
PROMETHUS(11),
18+
FUISLAND(12)
1819
}
1920
enum class Medal_Enum(val id: Int) {
2021
HOTZONE_CHAMPION(1),
@@ -31,7 +32,8 @@ class Enumerations {
3132
enum class AdvancementsEnum(val id: Long) {
3233
ADVANCEMENT_KOISHI(3),
3334
ADVANCEMENT_PATCHOULI(2),
34-
ADVANCEMENT_PROMETHUS(4);
35+
ADVANCEMENT_PROMETHUS(4),
36+
ADVANCEMENT_ORIN(5);
3537

3638
companion object {
3739
private val map = AdvancementsEnum.entries.associateBy(AdvancementsEnum::id)

src/main/java/org/qo/services/advancementServices/AdvancementServiceImpl.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class AdvancementServiceImpl(private val cardProfileOrm: CardProfileOrm) {
3434
},
3535
Enumerations.AdvancementsEnum.ADVANCEMENT_KOISHI to { uuid: String ->
3636
cardProfileOrm.addCardToOwned(uuid, Enumerations.Card_PixelFantasia_Enum.KOISHI_NORZ.id.toLong())
37+
},
38+
Enumerations.AdvancementsEnum.ADVANCEMENT_ORIN to { uuid: String ->
39+
cardProfileOrm.addCardToOwned(uuid, Enumerations.Card_PixelFantasia_Enum.FUISLAND.id.toLong())
3740
}
3841
)
3942

0 commit comments

Comments
 (0)