29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
namespace Barotrauma
|
|
{
|
|
partial class AfflictionHusk : Affliction
|
|
{
|
|
partial void UpdateMessages()
|
|
{
|
|
if (Prefab is AfflictionPrefabHusk { SendMessages: false }) { return; }
|
|
switch (State)
|
|
{
|
|
case InfectionState.Dormant:
|
|
GUI.AddMessage(TextManager.Get("HuskDormant"), GUI.Style.Red);
|
|
break;
|
|
case InfectionState.Transition:
|
|
GUI.AddMessage(TextManager.Get("HuskCantSpeak"), GUI.Style.Red);
|
|
break;
|
|
case InfectionState.Active:
|
|
if (character.Params.UseHuskAppendage)
|
|
{
|
|
GUI.AddMessage(TextManager.GetWithVariable("HuskActivate", "[Attack]", GameMain.Config.KeyBindText(InputType.Attack)), GUI.Style.Red);
|
|
}
|
|
break;
|
|
case InfectionState.Final:
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|