Alchemy fun mechanics (#246)
* heating solution refactor * chromium slime effect refactor * guidebook hint * hint chance fix * убираем ненужное
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using Content.Server._CP14.Temperature;
|
||||
using Content.Server.Atmos.Components;
|
||||
using Content.Server.Chemistry.Components;
|
||||
using Content.Server.Chemistry.Containers.EntitySystems;
|
||||
using Content.Server.Power.Components;
|
||||
@@ -94,26 +92,5 @@ public sealed class SolutionHeaterSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//CrystallPunk bonfire
|
||||
var flammablequery = EntityQueryEnumerator<CP14FlammableSolutionHeaterComponent, ItemPlacerComponent, FlammableComponent>();
|
||||
while (flammablequery.MoveNext(out _, out var heater, out var placer, out var flammable))
|
||||
{
|
||||
foreach (var heatingEntity in placer.PlacedEntities)
|
||||
{
|
||||
if (!flammable.OnFire)
|
||||
continue;
|
||||
|
||||
if (!TryComp<SolutionContainerManagerComponent>(heatingEntity, out var container))
|
||||
continue;
|
||||
|
||||
var energy = flammable.FireStacks * frameTime * 300;
|
||||
foreach (var (_, soln) in _solutionContainer.EnumerateSolutions((heatingEntity, container)))
|
||||
{
|
||||
_solutionContainer.AddThermalEnergy(soln, energy);
|
||||
}
|
||||
}
|
||||
}
|
||||
//CrystallPunk bonfire end
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user