All sound effects now accept positions as well for surround sound effects during combat.
This commit is contained in:
@@ -149,7 +149,7 @@ void Menu::InitializeCharacterMenuWindow(){
|
||||
if(comp!=nullptr){
|
||||
if(OppositeRingSlotDoesNotMatchCurrentEquip(comp)){ //If we find that the opposite ring slot is equipped to us, this would be an item swap or the exact same ring, therefore no stat calculations apply.
|
||||
Inventory::EquipItem(comp->GetItem(),EquipSlot(comp->I(Attribute::EQUIP_TYPE)));
|
||||
SoundEffect::PlaySFX(comp->GetItem().lock()->UseSound());
|
||||
SoundEffect::PlaySFX(comp->GetItem().lock()->UseSound(),SoundEffect::CENTERED);
|
||||
for(MenuComponent*button:((ScrollableWindowComponent*)data.parentComponent)->GetComponents()){
|
||||
RowItemDisplay*comp=DYNAMIC_CAST<RowItemDisplay*>(button);
|
||||
if(comp!=nullptr){
|
||||
|
||||
Reference in New Issue
Block a user