Unstable 0.1500.1.0 (BaroDev edition)

This commit is contained in:
Markus Isberg
2021-09-03 21:56:31 +09:00
parent 501e02c026
commit e7b7c1a748
143 changed files with 2928 additions and 1356 deletions
@@ -623,6 +623,7 @@ namespace Barotrauma
bool removeOnDeath = inc.ReadBoolean();
ch.ChangeSavedStatValue((StatTypes)statType, statValue, statIdentifier, removeOnDeath);
}
ch.ExperiencePoints = inc.ReadUInt16();
return ch;
}
@@ -1,10 +1,4 @@
using Microsoft.Xna.Framework;
using System.Collections.Generic;
using Barotrauma.IO;
using System.Linq;
using System.Xml.Linq;
namespace Barotrauma
namespace Barotrauma
{
partial class AfflictionHusk : Affliction
{
File diff suppressed because it is too large Load Diff
@@ -632,7 +632,7 @@ namespace Barotrauma
RefreshDeformations();
}
public void Draw(SpriteBatch spriteBatch, Camera cam, Color? overrideColor = null)
public void Draw(SpriteBatch spriteBatch, Camera cam, Color? overrideColor = null, bool disableDeformations = false)
{
float brightness = 1.0f - (burnOverLayStrength / 100.0f) * 0.5f;
var spriteParams = Params.GetSprite();
@@ -678,7 +678,7 @@ namespace Barotrauma
if (!hideLimb)
{
var deformSprite = DeformSprite;
if (deformSprite != null)
if (deformSprite != null && !disableDeformations)
{
if (ActiveDeformations.Any())
{
@@ -999,10 +999,12 @@ namespace Barotrauma
}
float textureScale = wearable.InheritTextureScale ? TextureScale : wearable.Scale;
float rotation = -body.DrawRotation - wearable.Rotation * Dir;
wearable.Sprite.Draw(spriteBatch,
new Vector2(body.DrawPosition.X, -body.DrawPosition.Y),
new Color((color.R * wearableColor.R) / (255.0f * 255.0f), (color.G * wearableColor.G) / (255.0f * 255.0f), (color.B * wearableColor.B) / (255.0f * 255.0f)) * ((color.A * wearableColor.A) / (255.0f * 255.0f)),
origin, -body.DrawRotation,
origin, rotation,
Scale * textureScale, spriteEffect, depth);
}