- item sprites visible in fabricator menu

- deth charge rotation fix
- sonar tweaking (ruin walls look slightly different from cave walls)
- connector sprite positioning fix
- repairtool is active when in use
This commit is contained in:
Regalis
2016-05-25 16:18:02 +03:00
parent b4af92ace2
commit da98ade77c
8 changed files with 53 additions and 32 deletions
@@ -20,6 +20,8 @@ namespace Barotrauma.Items.Components
private string particles;
private float activeTimer;
[HasDefaultValue(0.0f, false)]
public float Range
{
@@ -92,11 +94,11 @@ namespace Barotrauma.Items.Components
}
}
//public override void Update(float deltaTime, Camera cam)
//{
// base.Update(deltaTime, cam);
//}
public override void Update(float deltaTime, Camera cam)
{
activeTimer -= deltaTime;
if (activeTimer <= 0.0f) IsActive = false;
}
public override bool Use(float deltaTime, Character character = null)
{
@@ -127,6 +129,9 @@ namespace Barotrauma.Items.Components
ignoredBodies.Add(limb.body.FarseerBody);
}
IsActive = true;
activeTimer = 0.1f;
for (int n = 0; n < 2; n++)
{