Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using UnityEngine;
using FullSerializer;
using DaggerfallWorkshop.Game.Entity;
using DaggerfallWorkshop.Game.Utility;
using DaggerfallWorkshop.Game.UserInterfaceWindows;
using DaggerfallWorkshop.Game.Questing;
using DaggerfallWorkshop.Game.Items;
Expand Down Expand Up @@ -169,14 +170,16 @@ public override bool GetCustomHeadImageData(PlayerEntity entity, out ImageData i

public override bool GetCustomRaceGenderAttackSoundData(PlayerEntity entity, out SoundClips soundClipOut)
{
const int chanceOfBarkSound = 20;

switch (entity.Gender)
{
default:
case Genders.Male:
soundClipOut = SoundClips.EnemyVampireAttack;
soundClipOut = Dice100.SuccessRoll(chanceOfBarkSound) ? SoundClips.EnemyVampireBark : SoundClips.EnemyVampireAttack;
break;
case Genders.Female:
soundClipOut = SoundClips.EnemyFemaleVampireAttack;
soundClipOut = Dice100.SuccessRoll(chanceOfBarkSound) ? SoundClips.EnemyFemaleVampireBark : SoundClips.EnemyFemaleVampireAttack;
break;
}

Expand Down