Unstable 0.1300.2.11
This commit is contained in:
@@ -144,6 +144,11 @@ namespace Barotrauma
|
||||
// If the variant does not exist, parse the path so that it uses first variant.
|
||||
SpritePath = tempPath.Replace("[VARIANT]", "1");
|
||||
}
|
||||
if (!File.Exists(SpritePath) && _gender == Gender.None)
|
||||
{
|
||||
// If there's no sprite for Gender.None does not exist, try to use male sprite
|
||||
SpritePath = tempPath.Replace("[GENDER]", "male");
|
||||
}
|
||||
if (parseSpritePath)
|
||||
{
|
||||
Sprite.ParseTexturePath(file: SpritePath);
|
||||
|
||||
@@ -426,7 +426,7 @@ namespace Barotrauma
|
||||
{
|
||||
if (MathUtils.LineSegmentToPointDistanceSquared((edge.Point1 + cell.Translation).ToPoint(), (edge.Point2 + cell.Translation).ToPoint(), worldPosition.ToPoint()) < worldRange * worldRange)
|
||||
{
|
||||
destructibleWall.AddDamage(damage, worldPosition);
|
||||
destructibleWall.AddDamage(levelWallDamage, worldPosition);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1068,12 +1068,36 @@ namespace Barotrauma
|
||||
public void NeutralizeBallast()
|
||||
{
|
||||
float neutralBallastLevel = 0.5f;
|
||||
int selectedSteeringValue = 0;
|
||||
foreach (Item item in Item.ItemList)
|
||||
{
|
||||
if (item.Submarine != this) { continue; }
|
||||
var steering = item.GetComponent<Steering>();
|
||||
if (steering == null) { continue; }
|
||||
neutralBallastLevel = Math.Min(neutralBallastLevel, steering.NeutralBallastLevel);
|
||||
|
||||
//find how many pumps/engines in this sub the steering item is connected to
|
||||
int steeringValue = 1;
|
||||
Connection connectionX = item.GetComponent<ConnectionPanel>()?.Connections.Find(c => c.Name == "velocity_x_out");
|
||||
Connection connectionY = item.GetComponent<ConnectionPanel>()?.Connections.Find(c => c.Name == "velocity_y_out");
|
||||
if (connectionX != null)
|
||||
{
|
||||
foreach (Engine engine in steering.Item.GetConnectedComponentsRecursive<Engine>(connectionX))
|
||||
{
|
||||
if (engine.Item.Submarine == this) { steeringValue++; }
|
||||
}
|
||||
}
|
||||
if (connectionY != null)
|
||||
{
|
||||
foreach (Pump pump in steering.Item.GetConnectedComponentsRecursive<Pump>(connectionY))
|
||||
{
|
||||
if (pump.Item.Submarine == this) { steeringValue++; }
|
||||
}
|
||||
}
|
||||
//the nav terminal that's connected to the most engines/pumps in the sub most likely controls the sub (instead of a shuttle or some other system)
|
||||
if (steeringValue > selectedSteeringValue)
|
||||
{
|
||||
neutralBallastLevel = steering.NeutralBallastLevel;
|
||||
}
|
||||
}
|
||||
|
||||
HashSet<Hull> ballastHulls = new HashSet<Hull>();
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
v0.13.1.11
|
||||
v0.1300.2.11 (unstable)
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
Changes:
|
||||
- Made large monsters immune to sufforin.
|
||||
|
||||
Fixes:
|
||||
- More fixes to installing/updating mods.
|
||||
- Fixed certain submarines spawning with a non-neutral ballast level (Kastrull seems to have been the only affected vanilla submarine). Happened because the game would determine the neutral ballast level from the first nav terminal it finds in the sub, without checking whether that terminal controls a shuttle or the sub itself.
|
||||
- Fixed explosions using wall damage value instead of level wall damage when the explosion happens outside a level wall.
|
||||
- Fixed oxygen shelves refilling oxygenite tanks (again).
|
||||
- Readded traitor missions that were accidentally removed in the previous unstable build.
|
||||
|
||||
Modding:
|
||||
- Fixed console errors when a character with no gender tries to wear clothing that only has separate male and female sprites.
|
||||
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
v0.1300.1.11 (unstable)
|
||||
---------------------------------------------------------------------------------------------------------
|
||||
|
||||
Changes:
|
||||
|
||||
Reference in New Issue
Block a user