Day 14: Final Pulse

Previously

After being trapped in separate cells by the malevolent force, you and Jolly managed to escape by working together. Using a malfunctioning digital lock, you deduced the missing piece of the code, freeing Jolly from its cell.

Now, with the prison behind you, you move deeper into the palace. The Crystal of Joy is within reach, but it remains guarded by the same force that deceived you earlier. With one final challenge ahead, you must confront the last obstacle to restore hope to the Christmas Realm.

Narrative

You and Jolly make your way through the palace’s final corridor, the light dimming with each step. Ahead, you see it — the Crystal of Joy, suspended in the center of an ornate chamber, but it’s not glowing. Instead, the crystal is surrounded by four shifting barriers, each one pulsing with dark energy: Fear, Doubt, Sorrow, and Despair. The malevolent force has woven these barriers from the very emotions that have drained the crystal’s power, standing as the final obstacle between you and your goal.

Jolly’s sensors flicker as it analyzes the barriers, its voice tinged with urgency. “These aren’t ordinary defenses. Each of these barriers represents something stronger than physical power. They’re drawn from the energy that’s drained the Crystal.”

You look at Jolly, waiting for a plan, but even Jolly seems uncertain for a moment. Then it speaks again. “We don’t have the magic to break these barriers. But... we have something else.”

Jolly opens a small compartment on its side, revealing a powerful Electromagnetic Pulse (EMP) generator. “I can disrupt the barriers with EMPs, but I’ll need to carefully control the power I use for each one. If I miscalculate, it’ll overload my systems or drain the battery before we can get through them all.”

You study the four barriers, each one pulsing with its own rhythm. The solution is within reach, but the path forward requires precise calculations. “I’ll need you to help me figure out how much power to use for each barrier,” Jolly continues. “The total energy can’t exceed my battery’s capacity, and each barrier will need a specific amount to weaken it.”

There’s no turning back now — the Crystal of Joy is within reach. “We need to get this right! It’s our only chance to restore the crystal.”

Objective

Help Jolly determine the correct power levels to disrupt the four barriers and shatter the defenses around the Crystal of Joy.

Challenge

Jolly has the capability to use electromagnetic pulses (EMPs) to shatter the four barriers surrounding the Crystal of Joy. However, each barrier requires a specific amount of power to be disrupted, and Jolly’s battery has a limited capacity.

The power needed for each barrier follows specific rules based on the strength of the emotional energy each barrier draws:

  • The sum of the power required for all four barriers equals 100 units (Jolly’s full battery capacity).
  • The barrier of Doubt requires more 5 units of power than Fear.
  • Despair demands twice the amount of power as Sorrow.
  • Fear and Sorrow together use exactly 45 units of power.

Your answer must be contain the amount of power dedicated to each barrier — Fear, Doubt, Sorrow, and Despair, respectively — separated by commas (,). An example of a possible answer (obviously wrong) could be 25,20,30,25.

Hint 1 Start by replacing the barriers' names by letters and formalizing the problem as a system of equations.
Hint 2 Try to replace the variables of the equation so that you end up with only one variable remaining.
Hint 3 You can also use trial and error. Or use an online equation solver.

Answer

Wrong answer!

Outcome

As you and Jolly execute the calculated power levels, the electromagnetic pulses surge toward the barriers. One by one, the barriers shimmer and collapse, their dark energy dissipating into the air. The Crystal of Joy flickers, its light slowly returning, but something is wrong. The crystal's glow is faint, and the malevolent presence still lingers.

Jolly scans the area, and a moment of silence follows before it speaks, its voice heavy with realization. “It’s not over. The Guardian is still corrupted by the force. To fully restore the crystal, I need to send one final pulse... a stronger one, but it will drain the last of my energy.”

You look at Jolly, understanding what this means. “If you do that, you... you won’t make it.”

Jolly’s mechanical eyes flicker, but there’s no hesitation in its response. “It’s the only way. The Guardian is bound to this corruption, and I’m the only one who can break it. I was built for this — my purpose was always to protect joy.”

A surge of energy builds within Jolly’s frame as it readies itself for the final pulse. “Goodbye, my friend,” it says, its voice soft but resolute. “You must continue on. The Crystal will restore the carnival, but there’s no time to rest. The last artifact it's in danger. You need to go... now.”

As Jolly releases the final pulse, a brilliant wave of energy bursts from its body, shattering the remaining darkness around the Crystal of Joy. The corrupted Guardian convulses, then finally, the malevolent force releases its grip. The Crystal glows brighter and brighter until it floods the palace with radiant light. The dark, twisted carnival decorations fade, replaced by the vibrant, joyful atmosphere of a restored Christmas Realm.

But the light is blinding — too intense. A low rumble shakes the ground beneath your feet. Before you can react, a powerful explosion erupts from the Crystal, sending a shockwave through the chamber. The force throws you backward, slamming into the cold, stone floor. Your vision blurs, the sound of the world fading into a high-pitched ring as darkness overtakes you.

When you awaken, everything has changed. The carnival is gone...