Make the Cocoa Temple challenge a ghost replay challenge available from the start

This commit is contained in:
Alayan 2018-09-24 21:39:57 +02:00
parent aa3afa7048
commit 4a39813f07
2 changed files with 16 additions and 9 deletions

View File

@ -2,23 +2,30 @@
<challenge version="3">
<unlock_list list="false"/>
<track id="cocoa_temple" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="5"/>
<mode major="single" minor="timetrial"/>
<requirements trophies="0"/>
<best>
<karts number="8"/>
<requirements position="1" time="125"/>
<karts number="1"
replay_file="challenge_cocoa_temple_supertux.replay"/>
<requirements position="1"/>
</best>
<hard>
<karts number="7"/>
<requirements position="1" time="160"/>
<karts number="1"
replay_file="challenge_cocoa_temple_expert.replay"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="6"/>
<karts number="1"
replay_file="challenge_cocoa_temple_intermediate.replay"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="5"/>
<karts number="1"
replay_file="challenge_cocoa_temple_novice.replay"/>
<karts number="1"/>
<requirements position="1"/>
</easy>
<unlock kart="suzanne"/>
</challenge>

View File

@ -435,7 +435,7 @@ void ChallengeData::setRace(RaceManager::Difficulty d) const
if (m_is_ghost_replay)
{
const bool result = ReplayPlay::get()->addReplayFile(file_manager
->getAsset(FileManager::CHALLENGE, m_replay_files[d]),
->getAsset(FileManager::REPLAY, m_replay_files[d]),
true/*custom_replay*/);
if (!result)
Log::fatal("ChallengeData", "Can't open replay for challenge!");