Add in missing Beep sound effect for explosive traps.
This commit is contained in:
parent
5a7c60ac7c
commit
ce043c19cb
@ -4237,8 +4237,8 @@ void AiL::UpdateMonsters(){
|
|||||||
MONSTER_LIST.push_back(std::make_unique<Monster>(m));
|
MONSTER_LIST.push_back(std::make_unique<Monster>(m));
|
||||||
if(MONSTER_LIST.capacity()>prevCapacity)LOG(std::format("WARNING! The monster list has automatically reserved more space and resized to {}! This caused one potential frame where bullet/effect hitlists that stored information on what monsters were hit to potentially be hit a second time or cause monsters that should've been hit to never be hit. Consider starting with a larger default reserved size for MONSTER_LIST if your intention was to have this many monsters!",MONSTER_LIST.capacity()));
|
if(MONSTER_LIST.capacity()>prevCapacity)LOG(std::format("WARNING! The monster list has automatically reserved more space and resized to {}! This caused one potential frame where bullet/effect hitlists that stored information on what monsters were hit to potentially be hit a second time or cause monsters that should've been hit to never be hit. Consider starting with a larger default reserved size for MONSTER_LIST if your intention was to have this many monsters!",MONSTER_LIST.capacity()));
|
||||||
}
|
}
|
||||||
if(aMonsterIsMarkedForDeletion)std::erase_if(MONSTER_LIST,[](const std::unique_ptr<Monster>&m){
|
if(aMonsterIsMarkedForDeletion)std::erase_if(MONSTER_LIST,[&](const std::unique_ptr<Monster>&m){
|
||||||
if(m->markedForDeletion)std::erase_if(lockOnTargets.begin(),lockOnTargets.end(),[&](const std::tuple<Monster*,StackCount,MarkTime>&markData){return &*std::get<0>(markData)==m;}) //Marked targets may have dangling pointers, remove them before removing the monsters for good.
|
if(m->markedForDeletion)std::erase_if(lockOnTargets,[&](std::tuple<Monster*,StackCount,MarkTime>markData){return std::get<0>(markData)==&*m;}); //Marked targets may have dangling pointers, remove them before removing the monsters for good.
|
||||||
return m->markedForDeletion;
|
return m->markedForDeletion;
|
||||||
});
|
});
|
||||||
aMonsterIsMarkedForDeletion=false;
|
aMonsterIsMarkedForDeletion=false;
|
||||||
|
@ -19,6 +19,12 @@ Events
|
|||||||
# Specify file names, followed by volume %. Optional min and max pitch adjustment (Defaults are 90%,110%)
|
# Specify file names, followed by volume %. Optional min and max pitch adjustment (Defaults are 90%,110%)
|
||||||
File[0] = bear_slam.ogg, 70%
|
File[0] = bear_slam.ogg, 70%
|
||||||
}
|
}
|
||||||
|
Beep
|
||||||
|
{
|
||||||
|
CombatSound = True
|
||||||
|
# Specify file names, followed by volume %. Optional min and max pitch adjustment (Defaults are 90%,110%)
|
||||||
|
File[0] = beep.ogg, 100%
|
||||||
|
}
|
||||||
Bomb Explode
|
Bomb Explode
|
||||||
{
|
{
|
||||||
CombatSound = True
|
CombatSound = True
|
||||||
|
BIN
Adventures in Lestoria/assets/sounds/beep.ogg
Normal file
BIN
Adventures in Lestoria/assets/sounds/beep.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user