Skip to content

Commit

Permalink
Add SOD p1 void touched items
Browse files Browse the repository at this point in the history
  • Loading branch information
RagedUnicorn committed Mar 19, 2024
1 parent 56cce76 commit 85da2e4
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 0 deletions.
Binary file added assets/sounds/en/items/planar_shift.mp3
Binary file not shown.
Binary file added assets/sounds/en/items/planar_shift_down.mp3
Binary file not shown.
Binary file added assets/sounds/en/items/void_madness.mp3
Binary file not shown.
Binary file added assets/sounds/en/items/void_madness_down.mp3
Binary file not shown.
28 changes: 28 additions & 0 deletions code/PVPW_SpellMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,34 @@ else
"SPELL_AURA_REMOVED"
}
},
["void_madness"] = {
["name"] = "Void-Touched Leather Gauntlets/Gloves",
["type"] = RGPVPW_CONSTANTS.SPELL_TYPE_SOD,
["soundFileName"] = "void_madness",
["itemId"] = 211502, -- or 211423 can't differentiate between the two
["spellId"] = 429868, -- or 429867 can't differentiate between the two
["spellIcon"] = "inv_gauntlets_24",
["hasFade"] = true,
["active"] = true,
["trackedEvents"] = {
"SPELL_AURA_APPLIED",
"SPELL_AURA_REMOVED"
}
},
["planar_shift"] = {
["name"] = "Extraplanar Spidersilk Boots",
["type"] = RGPVPW_CONSTANTS.SPELL_TYPE_SOD,
["soundFileName"] = "planar_shift",
["itemId"] = 210795,
["spellId"] = 428489,
["spellIcon"] = "inv_boots_05",
["hasFade"] = true,
["active"] = true,
["trackedEvents"] = {
"SPELL_AURA_APPLIED",
"SPELL_AURA_REMOVED"
}
}
},
["misc"] = {
["restore_energy"] = {
Expand Down
37 changes: 37 additions & 0 deletions test/items/PVPW_TestCombatEventsItemsEn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ function me.CollectTestCases()
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventPVPTrinketSuccess)
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventAuraOfProtectionApplied)
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventAuraOfProtectionRemoved)
-- sod items
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventVoidMadnessApplied)
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventVoidMadnessRemoved)
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventPlanarShiftApplied)
mod.testReporter.AddToTestQueueWithDelay(me.TestCombatEventPlanarShiftRemoved)
end

function me.TestCombatEventEphemeralPowerApplied()
Expand Down Expand Up @@ -330,3 +335,35 @@ function me.TestCombatEventAuraOfProtectionRemoved()
"Aura of Protection"
)
end

function me.TestCombatEventVoidMadnessApplied()
mod.testHelper.TestCombatEventApplied(
"TestCombatEventVoidMadnessApplied",
testCategory,
"Void Madness"
)
end

function me.TestCombatEventVoidMadnessRemoved()
mod.testHelper.TestCombatEventRemoved(
"TestCombatEventVoidMadnessRemoved",
testCategory,
"Void Madness"
)
end

function me.TestCombatEventPlanarShiftApplied()
mod.testHelper.TestCombatEventApplied(
"TestCombatEventPlanarShiftApplied",
testCategory,
"Planar Shift"
)
end

function me.TestCombatEventPlanarShiftRemoved()
mod.testHelper.TestCombatEventRemoved(
"TestCombatEventPlanarShiftRemoved",
testCategory,
"Planar Shift"
)
end
37 changes: 37 additions & 0 deletions test/items/PVPW_TestSoundItemsEn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ function me.CollectTestCases()
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundPvPTrinket)
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundAuraOfProtection)
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundDownAuraOfProtection)
-- sod items
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundVoidMadness)
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundDownVoidMadness)
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundPlanarShift)
mod.testReporter.AddToTestQueueWithDelay(me.TestSoundDownPlanarShift)
end

function me.TestSoundEphemeralPower()
Expand Down Expand Up @@ -329,3 +334,35 @@ function me.TestSoundDownAuraOfProtection()
"Aura of Protection"
)
end

function me.TestSoundVoidMadness()
mod.testHelper.TestSoundApplied(
"TestSoundVoidMadness",
testCategory,
"Void Madness"
)
end

function me.TestSoundDownVoidMadness()
mod.testHelper.TestSoundRemoved(
"TestSoundDownVoidMadness",
testCategory,
"Void Madness"
)
end

function me.TestSoundPlanarShift()
mod.testHelper.TestSoundApplied(
"TestSoundPlanarShift",
testCategory,
"Planar Shift"
)
end

function me.TestSoundDownPlanarShift()
mod.testHelper.TestSoundRemoved(
"TestSoundDownPlanarShift",
testCategory,
"Planar Shift"
)
end

0 comments on commit 85da2e4

Please sign in to comment.