Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Cassie Messages can be noiseless
Browse files Browse the repository at this point in the history
  • Loading branch information
Maticzpl committed Apr 26, 2021
1 parent f7068ea commit ef1ad6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MoreHazards/MoreHazards/Elevators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public ElevatorLogicManager()

public override void Dispose()
{
base.Dispose();
Warhead.Detonated -= OnDetonated;
base.Dispose();
}

public override void OnRoundStart()
Expand Down
8 changes: 7 additions & 1 deletion MoreHazards/MoreHazards/utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ public class CassieAnnouncement
[Description("Cassie Message Jam Chance (0-100)")]
public int Jams { get; set; } = 10;

[Description("If false, disables glitches, jams and other noises")]
public bool Noise { get; set; } = true;

public void Speak()
{
Cassie.GlitchyMessage(Text, Glitches, Jams);
if (Noise)
Cassie.GlitchyMessage(Text, Glitches, Jams);
else
Cassie.Message(Text,false,false);
}
}
public class CollectionUtils<TValue>
Expand Down

0 comments on commit ef1ad6e

Please sign in to comment.