revert melting
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
using Content.Shared.Chemistry.Components;
|
||||
|
||||
namespace Content.Server._CP14.Temperature;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
[RegisterComponent, Access(typeof(CPMeltingSystem))]
|
||||
public sealed partial class CPMeltingComponent : Component
|
||||
{
|
||||
[DataField]
|
||||
public Solution? MeltSolution;
|
||||
|
||||
[DataField]
|
||||
public float MeltTemperature = 1000f;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
using Content.Server.Fluids.EntitySystems;
|
||||
using Content.Server.Temperature.Systems;
|
||||
|
||||
namespace Content.Server._CP14.Temperature;
|
||||
|
||||
public sealed partial class CPMeltingSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly PuddleSystem _puddleSystem = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<CPMeltingComponent, OnTemperatureChangeEvent>(OnTemperatureChange);
|
||||
}
|
||||
|
||||
private void OnTemperatureChange(Entity<CPMeltingComponent> ent, ref OnTemperatureChangeEvent args)
|
||||
{
|
||||
if (!(args.CurrentTemperature >= ent.Comp.MeltTemperature))
|
||||
return;
|
||||
|
||||
if (ent.Comp.MeltSolution != null)
|
||||
{
|
||||
_puddleSystem.TrySplashSpillAt(ent, Transform(ent).Coordinates, ent.Comp.MeltSolution, out var puddleUid);
|
||||
}
|
||||
QueueDel(ent);
|
||||
}
|
||||
}
|
||||
@@ -24,14 +24,6 @@
|
||||
layers:
|
||||
- state: ore1
|
||||
map: ["random"]
|
||||
#- type: CPMelting
|
||||
# meltTemperature: 1811
|
||||
# meltSolution:
|
||||
# temperature: 1811
|
||||
# reagents:
|
||||
# - ReagentId: CPMetledIron
|
||||
# Quantity: 10
|
||||
#- type: Temperature
|
||||
|
||||
- type: entity
|
||||
id: CPOreGold
|
||||
@@ -43,12 +35,4 @@
|
||||
sprite: _CP14/Objects/Ores/gold_ore.rsi
|
||||
layers:
|
||||
- state: ore1
|
||||
map: ["random"]
|
||||
#- type: CPMelting
|
||||
# meltTemperature: 1337
|
||||
# meltSolution:
|
||||
# temperature: 1337
|
||||
# reagents:
|
||||
# - ReagentId: CPMetledGold
|
||||
# Quantity: 10
|
||||
#- type: Temperature
|
||||
map: ["random"]
|
||||
@@ -1,39 +0,0 @@
|
||||
#- type: reagent
|
||||
# id: CPBaseMetledMetall
|
||||
# group: Metled
|
||||
# abstract: true
|
||||
# reactiveEffects:
|
||||
# Flammable:
|
||||
# methods: [ Touch ]
|
||||
# effects:
|
||||
# - !type:FlammableReaction
|
||||
# multiplier: 0.2
|
||||
# - !type:Ignite
|
||||
# tileReactions:
|
||||
# - !type:FlammableTileReaction #TODO: Spawn fire puddle
|
||||
# temperatureMultiplier: 2
|
||||
# metabolisms:
|
||||
# Poison:
|
||||
# effects:
|
||||
# - !type:HealthChange
|
||||
# damage:
|
||||
# types:
|
||||
# Heat: 5
|
||||
#
|
||||
#- type: reagent
|
||||
# id: CPMetledIron
|
||||
# parent: CPBaseMetledMetall
|
||||
# name: расплавленный металл #TODO
|
||||
# desc: Металл, доведенный до огромных температур. #TODO
|
||||
# physicalDesc: reagent-physical-desc-grainy #TODO
|
||||
# flavor: безумно #TODO
|
||||
# color: "#88a3bc"
|
||||
#
|
||||
#- type: reagent
|
||||
# id: CPMetledGold
|
||||
# parent: CPBaseMetledMetall
|
||||
# name: расплавленный металл #TODO
|
||||
# desc: Металл, доведенный до огромных температур. #TODO
|
||||
# physicalDesc: reagent-physical-desc-grainy #TODO
|
||||
# flavor: безумно #TODO
|
||||
# color: "#efb514"
|
||||
@@ -1,23 +0,0 @@
|
||||
#- type: reaction
|
||||
# id: IronSolidifation
|
||||
# impact: Low
|
||||
# quantized: true
|
||||
# maxTemp: 1611 #1811 - 200
|
||||
# reactants:
|
||||
# CPMetledIron:
|
||||
# amount: 10
|
||||
# effects:
|
||||
# - !type:CreateEntityReactionEffect
|
||||
# entity: CPOreIron
|
||||
#
|
||||
#- type: reaction
|
||||
# id: GoldSolidifation
|
||||
# impact: Low
|
||||
# quantized: true
|
||||
# maxTemp: 1137 #1337 - 200
|
||||
# reactants:
|
||||
# CPMetledIron:
|
||||
# amount: 10
|
||||
# effects:
|
||||
# - !type:CreateEntityReactionEffect
|
||||
# entity: CPOreGold
|
||||
Reference in New Issue
Block a user