45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Microsoft.Xna.Framework;
|
|
using System;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
partial class DummyFireSource : FireSource
|
|
{
|
|
private Vector2 maxSize;
|
|
|
|
public bool CausedByPsychosis;
|
|
|
|
protected override float SpreadToOtherHullsProbability => 0.0f;
|
|
|
|
public DummyFireSource(Vector2 maxSize, Vector2 worldPosition, Hull spawningHull = null, bool isNetworkMessage = false) :
|
|
base(worldPosition, spawningHull, sourceCharacter: null, isNetworkMessage: isNetworkMessage)
|
|
{
|
|
this.maxSize = maxSize;
|
|
DamagesItems = false;
|
|
DamagesCharacters = true;
|
|
}
|
|
|
|
public override float DamageRange
|
|
{
|
|
get { return 5f; }
|
|
}
|
|
|
|
protected override void LimitSize()
|
|
{
|
|
base.LimitSize();
|
|
size.X = Math.Min(maxSize.X, size.X);
|
|
size.Y = Math.Min(maxSize.Y, size.Y);
|
|
}
|
|
|
|
protected override void AdjustXPos(float growModifier, float deltaTime)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void ReduceOxygen(float deltaTime)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|