- Barotrauma's projects are in the Barotrauma directory - All libraries are in the Libraries directory - MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?) - NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred - Removed Content/effects.mgfx as it didn't seem to be used anywhere - Removed some references to Subsurface directory - Renamed Launcher2 to Launcher
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
partial class HuskInfection
|
|
{
|
|
partial void UpdateProjSpecific(float prevTimer, Character character)
|
|
{
|
|
if (IncubationTimer < 0.5f)
|
|
{
|
|
if (prevTimer % 0.1f > 0.05f && IncubationTimer % 0.1f < 0.05f)
|
|
{
|
|
GUI.AddMessage(InfoTextManager.GetInfoText("HuskDormant"), Color.Red, 4.0f);
|
|
}
|
|
}
|
|
else if (IncubationTimer < 1.0f)
|
|
{
|
|
if (state == InfectionState.Dormant && Character.Controlled == character)
|
|
{
|
|
new GUIMessageBox("", InfoTextManager.GetInfoText("HuskCantSpeak"));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (Character.Controlled == character) new GUIMessageBox("", InfoTextManager.GetInfoText("HuskActivate"));
|
|
}
|
|
}
|
|
}
|
|
}
|