Skip to content

Commit

Permalink
add chapter 12 challenge achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
joshraphael committed Feb 11, 2025
1 parent 7eaca57 commit 570cea7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions 18190.rascript
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ CHAPTER8 = 0x00000016
CHAPTER9 = 0x00000006
CHAPTER10 = 0x00000013
CHAPTER11 = 0x0000000b
CHAPTER12 = 0x00000007

// Brown: We are a family of monsters.
// Rainbow Spirit: I can reach the stars and find a way home.
Expand Down Expand Up @@ -230,6 +231,16 @@ chapterConfigs = [
"blackPowerUp": false,
"progressionGroup": 2,
"hasLeaderboard": true
},
{
"id": 0x00000007,
"description": "Little Fern Track",
"hearts": 12,
"brownPowerUp": true,
"orangePowerUp": false,
"blackPowerUp": false,
"progressionGroup": 2,
"hasLeaderboard": true
}
]

Expand Down Expand Up @@ -586,6 +597,30 @@ achievement(
type = "missable"
)

achievement(
title = "Glowing Fern",
description = "Without dying collect 12 hearts in no more than 3 double jumps then complete chapter 12",
points = 5,
trigger = (
InGame() &&
Chapter() == CHAPTER12 &&
HeartsCollected() >= 12 &&
UpgradeChapter( true, true, false, false )
) &&
disable_when(
tally(
4,
AntlerDoubleJumps()
),
until = GameReset()
) &&
disable_when(
DarkHeartsCollected() - prev( DarkHeartsCollected() ) == 1,
until = GameReset()
),
type = "missable"
)

for index in range( 1, length( chapterConfigs ) ) {
chapter = chapterConfigs[index - 1]

Expand Down

0 comments on commit 570cea7

Please sign in to comment.