// Palladium: Bleach - Custom Sound Mapping (Reference)
//
// Sounds for abilities are handled DIRECTLY in each power's ability JSON via
// `playsound` commands in the ability's `commands` array. This file is a
// REFERENCE document of the intended sound mappings.
//
// The Palladium KubeJS API does not expose an `onAbilityEnabled` event, so
// runtime sound injection via KubeJS is not possible. Instead, all sounds
// are baked into the power JSON command lists (e.g., bankai_release plays
// minecraft:block.beacon.activate, cero plays minecraft:entity.warden_sonic_boom, etc.).

console.log('[Palladium: Bleach] Sound reference script loaded (sounds are handled in power JSONs)')

// Sound mapping reference (ability key → [sound, volume, pitch])
// These are ALREADY implemented as playsound commands in the power JSON files.
const soundMap = {
  'palladiumbleach:ichigo.bankai_release': ['minecraft:block.beacon.activate', 1, 0.5],
  'palladiumbleach:ichigo.getsuga_tensho': ['minecraft:entity.player.attack.sweep', 1, 0.8],
  'palladiumbleach:ichigo.shunpo': ['minecraft:entity.enderman.teleport', 0.3, 2],
  'palladiumbleach:ichigo_bankai.mugetsu': ['minecraft:entity.wither.death', 1, 0.5],
  'palladiumbleach:arrancar.cero': ['minecraft:entity.warden_sonic_boom', 0.5, 1.5],
  'palladiumbleach:vizard.cero': ['minecraft:entity.warden_sonic_boom', 0.5, 1.5],
  'palladiumbleach:yhwach.the_almighty': ['minecraft:block.beacon.power_select', 1, 0.3],
  'palladiumbleach:yamamoto.zanka_no_tachi': ['minecraft:entity.wither.spawn', 1, 0.5],
  'palladiumbleach:ichibei.ichimonji': ['minecraft:entity.squid.squirt', 1, 0.3],
}

// Export the map for other scripts that might want to reference it
global.pbSoundMap = soundMap

console.log('[Palladium: Bleach] Sound reference: ' + Object.keys(soundMap).length + ' mappings documented')
