Skip to content

Commit

Permalink
Merge pull request #23 from alyssaruth/achievement-count
Browse files Browse the repository at this point in the history
Achievement count
  • Loading branch information
alyssaruth authored Oct 30, 2024
2 parents 11453ba + d9dc281 commit 6bfb8dd
Show file tree
Hide file tree
Showing 109 changed files with 2,163 additions and 2,520 deletions.
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
object DependencyVersions {
const val KTFMT = "0.15.1"
const val KTOR = "2.3.12"
const val JACKSON = "2.16.1"
const val LOGBACK = "1.5.8"
Expand Down
2 changes: 1 addition & 1 deletion client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
id("Entropy.kotlin-common-conventions")
id("com.ncorti.ktfmt.gradle") version "0.15.1"
id("com.ncorti.ktfmt.gradle") version DependencyVersions.KTFMT
application
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/main/java/EntropyMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else if (!bindOnPort(BIND_PORT_NUMBER))

checkForUpdatesIfRequired();

MainScreen application = ScreenCache.getMainScreen();
MainScreen application = ScreenCache.get(MainScreen.class);
application.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
application.setSize(1050, 600);
application.setVisible(true);
Expand Down
238 changes: 0 additions & 238 deletions client/src/main/java/bean/ButtonColumn.java

This file was deleted.

72 changes: 0 additions & 72 deletions client/src/main/java/object/AchievementBadge.java

This file was deleted.

4 changes: 3 additions & 1 deletion client/src/main/java/object/EntropyAchievementsTracker.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package object;

import achievement.AchievementUtilKt;
import util.AchievementsUtil;
import util.CardsUtil;
import util.Registry;
import utils.Achievement;

public class EntropyAchievementsTracker implements Registry
{
Expand Down Expand Up @@ -159,7 +161,7 @@ public void unlockEndOfGameAchievements(int startingCards)
if (!deviatedFromFirstSuit
&& startingCards == 5)
{
AchievementsUtil.unlockAchievement(ACHIEVEMENTS_BOOLEAN_MONOTONE);
AchievementUtilKt.unlockAchievement(Achievement.Monotone);
}
}
}
Loading

0 comments on commit 6bfb8dd

Please sign in to comment.