Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
1.1 kB
2
Indexable
Never
if ((app.morningRitual.hasAlarm == true && app.morningRitual.nextAlarmOrDefault.dayOfYear() == now.dayOfYear()) && (app.afternoonRitual.hasAlarm == true && app.afternoonRitual.nextAlarmOrDefault.dayOfYear() == now.dayOfYear()) && (app.eveningRitual.hasAlarm == true && app.eveningRitual.nextAlarmOrDefault.dayOfYear() == now.dayOfYear()) && app.morningRitual.habitCount > 0 && app.afternoonRitual.habitCount > 0 && app.eveningRitual.habitCount > 0) {
    if (app.goldenTriangleStreakRecord > 0 && (ritual.type == "MORNING" || ritual.type == "AFTERNOON" || ritual.type == "EVENING") && app.morningRitual.habitLeftCount == 0 && app.afternoonRitual.habitLeftCount == 0 && app.eveningRitual.habitLeftCount == 0) {
      var fullGTCopy = pick(data.FullGT_Config);
      screen.addScene(builder.buildDynamicScene().withIconPath("https://c.thefab.co/lottie/GT_complete.json").withTitle(fullGTCopy.title.replace("{name}", user.displayName)).withSubtitle(fullGTCopy.subtitle.replace("{name}", user.displayName)).withDuration(5500).withIdentifier("Golden Triangle Achieved").build());
      return 0
    }