Немного поменял синтезы и эффекты у газов (#1923)
This commit is contained in:
parent
d3bce031c6
commit
c2d95c215e
5 changed files with 31 additions and 45 deletions
|
|
@ -25,7 +25,7 @@ public sealed partial class BZFormationReaction : IGasReactionEffect
|
|||
|
||||
var n2oRemoved = totalRate * 2f;
|
||||
var plasmaRemoved = totalRate * 4f;
|
||||
var bzFormed = totalRate * 5f;
|
||||
var bzFormed = totalRate * 25f; // Увеличил количество производимого BZ (Increased the amount of BZ produced)
|
||||
|
||||
if (n2oRemoved > initN2O || plasmaRemoved > initPlasma)
|
||||
return ReactionResult.NoReaction;
|
||||
|
|
@ -34,11 +34,11 @@ public sealed partial class BZFormationReaction : IGasReactionEffect
|
|||
mixture.AdjustMoles(Gas.Plasma, -plasmaRemoved);
|
||||
mixture.AdjustMoles(Gas.BZ, bzFormed);
|
||||
|
||||
var energyReleased = bzFormed * Atmospherics.BZFormationEnergy;
|
||||
var energyReleased = bzFormed * (Atmospherics.BZFormationEnergy / 20f); // Ослабил экзотермическую реакцию (Reduced the exothermic reaction)
|
||||
var heatCap = atmosphereSystem.GetHeatCapacity(mixture, true);
|
||||
if (heatCap > Atmospherics.MinimumHeatCapacity)
|
||||
mixture.Temperature = Math.Max((mixture.Temperature * heatCap + energyReleased) / heatCap, Atmospherics.TCMB);
|
||||
|
||||
return ReactionResult.Reacting;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using JetBrains.Annotations;
|
|||
namespace Content.Server.Atmos.Reactions;
|
||||
|
||||
/// <summary>
|
||||
/// Produces Healium by mixing BZ and Frezon at temperatures between 23K and 293K. Efficiency increases in colder temperatures.
|
||||
/// Produces Healium by mixing BZ and Frezon at temperatures between 23K and 293K. Efficiency increases in colder temperatures.
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
public sealed partial class HealiumProductionReaction : IGasReactionEffect
|
||||
|
|
@ -19,9 +19,9 @@ public sealed partial class HealiumProductionReaction : IGasReactionEffect
|
|||
var rate = mixture.Temperature / Atmospherics.T20C;
|
||||
var efficiency = 23.15f / mixture.Temperature;
|
||||
|
||||
var bZRemoved = 1f * rate;
|
||||
var frezonRemoved = 9f * rate;
|
||||
var healiumProduced = 10f * rate * efficiency;
|
||||
var bZRemoved = 3f * rate;
|
||||
var frezonRemoved = 30f * rate;
|
||||
var healiumProduced = 45f * rate * efficiency;
|
||||
|
||||
if (bZRemoved > initBZ || frezonRemoved > initFrezon || mixture.Temperature > Atmospherics.T20C)
|
||||
return ReactionResult.NoReaction;
|
||||
|
|
@ -30,11 +30,13 @@ public sealed partial class HealiumProductionReaction : IGasReactionEffect
|
|||
mixture.AdjustMoles(Gas.Frezon, -frezonRemoved);
|
||||
mixture.AdjustMoles(Gas.Healium, healiumProduced);
|
||||
|
||||
var energyReleased = healiumProduced * Atmospherics.HealiumProductionEnergy;
|
||||
var energyReleased = healiumProduced * Atmospherics.HealiumProductionEnergy * 0.5f; // Ослабил экзотермическую реакцию (Reduced the exothermic reaction)
|
||||
var heatCap = atmosphereSystem.GetHeatCapacity(mixture, true);
|
||||
if (heatCap > Atmospherics.MinimumHeatCapacity)
|
||||
mixture.Temperature = Math.Max((mixture.Temperature * heatCap + energyReleased) / heatCap, Atmospherics.TCMB);
|
||||
{
|
||||
mixture.Temperature = Math.Max((mixture.Temperature * heatCap + energyReleased * 0.5f) / heatCap, Atmospherics.TCMB);
|
||||
}
|
||||
|
||||
return ReactionResult.Reacting;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,14 +19,14 @@ public sealed partial class NitriumSynthesisReaction : IGasReactionEffect
|
|||
var temperature = mixture.Temperature;
|
||||
|
||||
// Проверка условий для реакции
|
||||
if (initTritium < 2 || initNitrogen < 2 || initBZ < 1 || temperature < 1500 || temperature > 100000)
|
||||
if (initTritium < 2 || initNitrogen < 2 || initBZ < 1 || temperature < 1500 || temperature > 13000)
|
||||
return ReactionResult.NoReaction;
|
||||
|
||||
// Логика реакции
|
||||
var tritiumRemoved = 2f; // Количество удаляемого трития
|
||||
var nitrogenRemoved = 2f; // Количество удаляемого азота
|
||||
var tritiumRemoved = 5f; // Количество удаляемого трития
|
||||
var nitrogenRemoved = 5f; // Количество удаляемого азота
|
||||
var bzRemoved = 1f; // Количество удаляемого BZ
|
||||
var nitriumProduced = 3f; // Количество производимого Нитриума
|
||||
var nitriumProduced = 12f; // Количество производимого Нитриума
|
||||
|
||||
if (tritiumRemoved > initTritium || nitrogenRemoved > initNitrogen || bzRemoved > initBZ)
|
||||
return ReactionResult.NoReaction;
|
||||
|
|
|
|||
|
|
@ -37,14 +37,14 @@
|
|||
priority: 2
|
||||
minimumRequirements:
|
||||
- 0 # oxygen
|
||||
- 2 # nitrogen
|
||||
- 0.5 # nitrogen
|
||||
- 0 # carbon dioxide
|
||||
- 0 # plasma
|
||||
- 2 # tritium
|
||||
- 0.5 # tritium
|
||||
- 0 # vapor
|
||||
- 0 # miasma
|
||||
- 0 # n2o
|
||||
- 0 # frezon
|
||||
- 0.01 # bz
|
||||
- 0.1 # bz
|
||||
effects:
|
||||
- !type:NitriumSynthesisReaction {}
|
||||
|
|
|
|||
|
|
@ -122,10 +122,9 @@
|
|||
ignoreResistances: true
|
||||
damage:
|
||||
groups:
|
||||
Burn: -0.3
|
||||
Toxin: -0.3
|
||||
types:
|
||||
Blunt: -0.3
|
||||
Burn: -0.7
|
||||
Toxin: -0.7
|
||||
Brute: -0.7
|
||||
- !type:ModifyBleedAmount
|
||||
amount: -0.15
|
||||
- !type:PopupMessage
|
||||
|
|
@ -153,22 +152,7 @@
|
|||
component: ForcedSleeping
|
||||
time: 3
|
||||
type: Add
|
||||
- !type:GenericStatusEffect
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: Healium
|
||||
min: 1
|
||||
key: SeeingRainbows
|
||||
component: SeeingRainbows
|
||||
type: Add
|
||||
time: 500
|
||||
refresh: false
|
||||
- !type:Drunk
|
||||
boozePower: 500
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
reagent: Healium
|
||||
min: 1
|
||||
|
||||
|
||||
- type: reagent
|
||||
id: Nitrium
|
||||
|
|
@ -182,17 +166,17 @@
|
|||
metabolismRate: 1.0
|
||||
effects:
|
||||
- !type:MovespeedModifier
|
||||
walkSpeedModifier: 1.5
|
||||
sprintSpeedModifier: 1.5
|
||||
walkSpeedModifier: 1.4
|
||||
sprintSpeedModifier: 1.4
|
||||
- !type:MovespeedModifier
|
||||
walkSpeedModifier: 1.5
|
||||
sprintSpeedModifier: 1.5
|
||||
walkSpeedModifier: 1.4
|
||||
sprintSpeedModifier: 1.4
|
||||
- !type:MovespeedModifier
|
||||
walkSpeedModifier: 1.5
|
||||
sprintSpeedModifier: 1.5
|
||||
walkSpeedModifier: 1.4
|
||||
sprintSpeedModifier: 1.4
|
||||
- !type:MovespeedModifier
|
||||
walkSpeedModifier: 1.5
|
||||
sprintSpeedModifier: 1.5
|
||||
walkSpeedModifier: 1.4
|
||||
sprintSpeedModifier: 1.4
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue