mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Activating a super ability has a sound, and trying to cut down trees or activate skull splitter when on cooldown also has a sound.
This commit is contained in:
parent
b1be43154a
commit
ac4b8068b0
@ -806,6 +806,7 @@ public class McMMOPlayer {
|
|||||||
*/
|
*/
|
||||||
if (skill == PrimarySkillType.WOODCUTTING || skill == PrimarySkillType.AXES) {
|
if (skill == PrimarySkillType.WOODCUTTING || skill == PrimarySkillType.AXES) {
|
||||||
NotificationManager.sendPlayerInformation(player, NotificationType.ABILITY_COOLDOWN, "Skills.TooTired", String.valueOf(timeRemaining));
|
NotificationManager.sendPlayerInformation(player, NotificationType.ABILITY_COOLDOWN, "Skills.TooTired", String.valueOf(timeRemaining));
|
||||||
|
SoundManager.sendSound(player, player.getLocation(), SoundType.TIRED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -828,6 +829,10 @@ public class McMMOPlayer {
|
|||||||
|
|
||||||
SkillUtils.sendSkillMessage(player, NotificationType.SUPER_ABILITY_ALERT_OTHERS, ability.getAbilityPlayer());
|
SkillUtils.sendSkillMessage(player, NotificationType.SUPER_ABILITY_ALERT_OTHERS, ability.getAbilityPlayer());
|
||||||
|
|
||||||
|
//Sounds
|
||||||
|
SoundManager.worldSendSound(player.getWorld(), player.getLocation(), SoundType.ABILITY_ACTIVATED_GENERIC);
|
||||||
|
|
||||||
|
|
||||||
// Enable the ability
|
// Enable the ability
|
||||||
profile.setAbilityDATS(ability, System.currentTimeMillis() + (ticks * Misc.TIME_CONVERSION_FACTOR));
|
profile.setAbilityDATS(ability, System.currentTimeMillis() + (ticks * Misc.TIME_CONVERSION_FACTOR));
|
||||||
setAbilityMode(ability, true);
|
setAbilityMode(ability, true);
|
||||||
|
@ -86,6 +86,8 @@ public class SoundManager {
|
|||||||
return Sound.ITEM_TRIDENT_RIPTIDE_3;
|
return Sound.ITEM_TRIDENT_RIPTIDE_3;
|
||||||
case DEFLECT_ARROWS:
|
case DEFLECT_ARROWS:
|
||||||
return Sound.ENTITY_ENDER_EYE_DEATH;
|
return Sound.ENTITY_ENDER_EYE_DEATH;
|
||||||
|
case TIRED:
|
||||||
|
return Sound.BLOCK_CONDUIT_AMBIENT;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,8 @@ public enum SoundType {
|
|||||||
DEFLECT_ARROWS,
|
DEFLECT_ARROWS,
|
||||||
TOOL_READY,
|
TOOL_READY,
|
||||||
ABILITY_ACTIVATED_GENERIC,
|
ABILITY_ACTIVATED_GENERIC,
|
||||||
ABILITY_ACTIVATED_BERSERK;
|
ABILITY_ACTIVATED_BERSERK,
|
||||||
|
TIRED;
|
||||||
|
|
||||||
public boolean usesCustomPitch()
|
public boolean usesCustomPitch()
|
||||||
{
|
{
|
||||||
|
@ -43,3 +43,6 @@ Sounds:
|
|||||||
ABILITY_ACTIVATED_BERSERK:
|
ABILITY_ACTIVATED_BERSERK:
|
||||||
Volume: 0.5
|
Volume: 0.5
|
||||||
Pitch: 1.7
|
Pitch: 1.7
|
||||||
|
TIRED:
|
||||||
|
Volume: 1.0
|
||||||
|
Pitch: 1.7
|
Loading…
Reference in New Issue
Block a user