Skip to content

Commit

Permalink
add sound for mechanoidraid
Browse files Browse the repository at this point in the history
  • Loading branch information
rheirman committed Sep 27, 2018
1 parent 7b56a9f commit 72555aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified Assemblies/WhatTheHack.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions Source/WhatTheHack/Recipes/RecipeUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Verse;
using Verse.AI;
using Verse.AI.Group;
using Verse.Sound;
using WhatTheHack.Duties;

namespace WhatTheHack.Recipes
Expand Down Expand Up @@ -68,6 +69,7 @@ public static void HackPoorly(Pawn pawn, BodyPartRecord part, RecipeDef recipe)
public static void CauseMechanoidRaidByHackingFailure(Pawn pawn, BodyPartRecord part, RecipeDef recipe)
{
CauseMechanoidRaid(pawn, part, recipe);
SoundDefOf.PsychicPulseGlobal.PlayOneShotOnCamera(pawn.Map);
Find.LetterStack.ReceiveLetter("WTH_Letter_CausedMechanoidRaid_Label".Translate(), "WTH_Letter_CausedMechanoidRaid_Description".Translate(), LetterDefOf.ThreatBig, pawn);
}
public static void CauseIntendedMechanoidRaid(Pawn pawn, BodyPartRecord part, RecipeDef recipe)
Expand All @@ -85,6 +87,7 @@ public static void CauseIntendedMechanoidRaidTooLarge(Pawn pawn, BodyPartRecord
CauseMechanoidRaid(pawn, part, recipe, 1.35f);
Find.LetterStack.ReceiveLetter("WTH_Letter_CausedIntendedMechanoidRaidTooLarge_Label".Translate(), "WTH_Letter_CausedIntendedMechanoidRaidTooLarge_Description".Translate(), LetterDefOf.ThreatBig, pawn);
HealthUtility.GiveInjuriesOperationFailureCatastrophic(pawn, part); //Kill mech for balancing purposes.
SoundDefOf.PsychicPulseGlobal.PlayOneShotOnCamera(pawn.Map);
if (!pawn.Dead)
{
pawn.Kill(null, null);
Expand Down

0 comments on commit 72555aa

Please sign in to comment.