]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove flammability mass (#41803)
authorConnor Huffine <chuffine@gmail.com>
Wed, 17 Dec 2025 08:24:54 +0000 (03:24 -0500)
committerGitHub <noreply@github.com>
Wed, 17 Dec 2025 08:24:54 +0000 (08:24 +0000)
* Remove flammability mass

* Adjust mass fudge number

* Remove fudge

Content.Server/Atmos/EntitySystems/FlammableSystem.cs

index f630e4e61001b200e56b2c87e94a0776d72e0c34..bd05a2c9ec1e591c9bc7a6b7ea989c5cb3ed3fff 100644 (file)
@@ -145,8 +145,8 @@ namespace Content.Server.Atmos.EntitySystems
             if (!TryComp<PhysicsComponent>(uid, out var body))
                 return;
 
-            _fixture.TryCreateFixture(uid, component.FlammableCollisionShape, component.FlammableFixtureID, hard: false,
-                collisionMask: (int) CollisionGroup.FullTileLayer, body: body);
+            _fixture.TryCreateFixture(uid, component.FlammableCollisionShape, component.FlammableFixtureID, density: 0,
+                hard: false, collisionMask: (int) CollisionGroup.FullTileLayer, body: body);
         }
 
         private void OnInteractUsing(EntityUid uid, FlammableComponent flammable, InteractUsingEvent args)
@@ -228,7 +228,7 @@ namespace Content.Server.Atmos.EntitySystems
             // Get the average of both entity's firestacks * mass
             // Then for each entity, we divide the average by their mass and set their firestacks to that value
             // An entity with a higher mass will lose some fire and transfer it to the one with lower mass.
-            var avg = (flammable.FireStacks * mass1  + otherFlammable.FireStacks * mass2) / 2f;
+            var avg = (flammable.FireStacks * mass1 + otherFlammable.FireStacks * mass2) / 2f;
 
             // bring each entity to the same firestack mass, firestack amount is scaled by the inverse of the entity's mass
             SetFireStacks(uid, avg / mass1, flammable, ignite: true);