void PlayActionSound (CharacterAction action, bool atStart, Item item, MadnessConsequencesTable.Severity madnessSeverity) { if (atStart) { if (item != null && item.OverrideSound (soundMgr, soundSrc [0], action.animDuration)) return; if (action.soundPlayed != "None") soundMgr.PlaySoundForDurtation (soundSrc [0], action.soundPlayed, action.animDuration); } else { string madsound = soundsMadnessConsequences[(int)madnessSeverity]; if (madsound != "None") soundMgr.PlaySound (soundSrc [1], madsound); } }