Skip to content

Commit

Permalink
Added sound on levelup from the original game files
Browse files Browse the repository at this point in the history
  • Loading branch information
DMD authored and DMD committed Oct 20, 2016
1 parent 8d6f19e commit d46d1db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TemplePlus/sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int SoundHooks::FindSound(int soundId, char* filename){
}


// try tpSounds.mes first
// try tpmes\sounds.mes first

MesLine mesline;
mesline.key = soundId;
Expand Down
3 changes: 3 additions & 0 deletions TemplePlus/xp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "party.h"
#include "d20_level.h"
#include "gamesystems/objects/objsystem.h"
#include "sound.h"

temple::GlobalPrimitive<float, 0x102CF708> experienceMultiplier;
temple::GlobalPrimitive<int, 0x10BCA850> numCrittersSlainByCR;
Expand Down Expand Up @@ -178,6 +179,8 @@ void XPTableForHighLevels::GiveXPAwards(){

if (bShouldUpdatePartyUI){
templeFuncs.UpdatePartyUI();
sound.PlaySound(100001); // LEVEL_UP.WAV
sound.PlaySound(100001); // amp it up a bit
}

return;
Expand Down
3 changes: 2 additions & 1 deletion tpdata/tpmes/sounds.mes
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@
{3362}{} // equip fire item
{3363}{} // equip power item

{100000}{thunderclap.mp3}
{100000}{thunderclap.mp3}
{100001}{LEVEL_UP.WAV}

0 comments on commit d46d1db

Please sign in to comment.