WoWInterface SVN BattleHerald

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/BattleHerald/SoundAlerts
    from Rev 6 to Rev 14
    Reverse comparison

Rev 6 → Rev 14

BattleHerald_SoundEngine.lua
29,31 → 29,31
 
-- Do thousands
result = floor(num / units);
BattleHerald_AddSoundToQueueByKey("EXTRA", "NUM_" .. (result*units));
BattleHerald_AddSoundToQueueByKey("GENERAL", "NUM_" .. (result*units));
num = num % units;
units = units / 10;
 
-- Do hundreds
result = floor(num / units);
BattleHerald_AddSoundToQueueByKey("EXTRA", "NUM_" .. (result*units));
BattleHerald_AddSoundToQueueByKey("GENERAL", "NUM_" .. (result*units));
num = num % units;
units = units / 10;
 
-- Check whether it's from 11 to 19;
-- otherwise, continue normally
if (num >= 11 and num <= 19) then
BattleHerald_AddSoundToQueueByKey("EXTRA", "NUM_" .. result);
BattleHerald_AddSoundToQueueByKey("GENERAL", "NUM_" .. result);
return;
end
 
-- Do tens
result = floor(num / units);
BattleHerald_AddSoundToQueueByKey("EXTRA", "NUM_" .. (result*units));
BattleHerald_AddSoundToQueueByKey("GENERAL", "NUM_" .. (result*units));
num = num % units;
units = units / 10;
 
-- Do ones
BattleHerald_AddSoundToQueueByKey("EXTRA", "NUM_" .. result);
BattleHerald_AddSoundToQueueByKey("GENERAL", "NUM_" .. result);
 
end