Buff heat and flame damage (#23238)
This commit is contained in:
@@ -394,8 +394,7 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
EnsureComp<IgnitionSourceComponent>(uid);
|
EnsureComp<IgnitionSourceComponent>(uid);
|
||||||
_ignitionSourceSystem.SetIgnited(uid);
|
_ignitionSourceSystem.SetIgnited(uid);
|
||||||
|
|
||||||
// TODO FLAMMABLE: further balancing
|
var damageScale = MathF.Min(flammable.FireStacks, 5);
|
||||||
var damageScale = Math.Min((int)flammable.FireStacks, 5);
|
|
||||||
|
|
||||||
if (TryComp(uid, out TemperatureComponent? temp))
|
if (TryComp(uid, out TemperatureComponent? temp))
|
||||||
_temperatureSystem.ChangeHeat(uid, 12500 * damageScale, false, temp);
|
_temperatureSystem.ChangeHeat(uid, 12500 * damageScale, false, temp);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public sealed partial class LatheHeatProducingComponent : Component
|
|||||||
/// The amount of energy produced each second when producing an item.
|
/// The amount of energy produced each second when producing an item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||||
public float EnergyPerSecond = 40000;
|
public float EnergyPerSecond = 30000;
|
||||||
|
|
||||||
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
||||||
public TimeSpan NextSecond;
|
public TimeSpan NextSecond;
|
||||||
|
|||||||
@@ -1187,16 +1187,10 @@
|
|||||||
types:
|
types:
|
||||||
Piercing: 9
|
Piercing: 9
|
||||||
- type: Temperature
|
- type: Temperature
|
||||||
heatDamageThreshold: 400
|
heatDamageThreshold: 360
|
||||||
coldDamageThreshold: 285
|
coldDamageThreshold: 285
|
||||||
currentTemperature: 310.15
|
currentTemperature: 310.15
|
||||||
specificHeat: 42
|
specificHeat: 42
|
||||||
coldDamage:
|
|
||||||
types:
|
|
||||||
Cold : 0.1 #per second, scales with temperature & other constants
|
|
||||||
heatDamage:
|
|
||||||
types:
|
|
||||||
Heat : 0.1 #per second, scales with temperature & other constants
|
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
drawdepth: Mobs
|
drawdepth: Mobs
|
||||||
layers:
|
layers:
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
canResistFire: true
|
canResistFire: true
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 3
|
Heat: 9
|
||||||
- type: FireVisuals
|
- type: FireVisuals
|
||||||
sprite: Mobs/Effects/onfire.rsi
|
sprite: Mobs/Effects/onfire.rsi
|
||||||
normalState: Generic_mob_burning
|
normalState: Generic_mob_burning
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
- type: Flammable
|
- type: Flammable
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 2.0
|
Heat: 6.0
|
||||||
# slightly wider thresholds
|
# slightly wider thresholds
|
||||||
- type: Temperature
|
- type: Temperature
|
||||||
heatDamageThreshold: 390
|
heatDamageThreshold: 390
|
||||||
|
|||||||
@@ -266,7 +266,7 @@
|
|||||||
- type: Blindable
|
- type: Blindable
|
||||||
# Other
|
# Other
|
||||||
- type: Temperature
|
- type: Temperature
|
||||||
heatDamageThreshold: 360
|
heatDamageThreshold: 325
|
||||||
coldDamageThreshold: 260
|
coldDamageThreshold: 260
|
||||||
currentTemperature: 310.15
|
currentTemperature: 310.15
|
||||||
specificHeat: 42
|
specificHeat: 42
|
||||||
@@ -275,7 +275,7 @@
|
|||||||
Cold: 0.1 #per second, scales with temperature & other constants
|
Cold: 0.1 #per second, scales with temperature & other constants
|
||||||
heatDamage:
|
heatDamage:
|
||||||
types:
|
types:
|
||||||
Heat: 0.1 #per second, scales with temperature & other constants
|
Heat: 1.5 #per second, scales with temperature & other constants
|
||||||
- type: ThermalRegulator
|
- type: ThermalRegulator
|
||||||
metabolismHeat: 800
|
metabolismHeat: 800
|
||||||
radiatedHeat: 100
|
radiatedHeat: 100
|
||||||
|
|||||||
@@ -47,9 +47,9 @@
|
|||||||
- type: Flammable
|
- type: Flammable
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1.5 # moths burn more easily
|
Heat: 4.5 # moths burn more easily
|
||||||
- type: Temperature # Moths hate the heat and thrive in the cold.
|
- type: Temperature # Moths hate the heat and thrive in the cold.
|
||||||
heatDamageThreshold: 335
|
heatDamageThreshold: 320
|
||||||
coldDamageThreshold: 230
|
coldDamageThreshold: 230
|
||||||
currentTemperature: 310.15
|
currentTemperature: 310.15
|
||||||
specificHeat: 46
|
specificHeat: 46
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
Cold : 0.05 #per second, scales with temperature & other constants
|
Cold : 0.05 #per second, scales with temperature & other constants
|
||||||
heatDamage:
|
heatDamage:
|
||||||
types:
|
types:
|
||||||
Heat : 0.2 #per second, scales with temperature & other constants
|
Heat : 3 #per second, scales with temperature & other constants
|
||||||
- type: Sprite # sprite again because we want different layer ordering
|
- type: Sprite # sprite again because we want different layer ordering
|
||||||
noRot: true
|
noRot: true
|
||||||
drawdepth: Mobs
|
drawdepth: Mobs
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
Cold : 0.1 #per second, scales with temperature & other constants
|
Cold : 0.1 #per second, scales with temperature & other constants
|
||||||
heatDamage:
|
heatDamage:
|
||||||
types:
|
types:
|
||||||
Heat : 0.1 #per second, scales with temperature & other constants
|
Heat : 1.5 #per second, scales with temperature & other constants
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseSpeciesDummy
|
parent: BaseSpeciesDummy
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
components:
|
components:
|
||||||
- type: AtmosExposed
|
- type: AtmosExposed
|
||||||
- type: Temperature
|
- type: Temperature
|
||||||
heatDamageThreshold: 360
|
heatDamageThreshold: 325
|
||||||
coldDamageThreshold: 0
|
coldDamageThreshold: 0
|
||||||
currentTemperature: 310.15
|
currentTemperature: 310.15
|
||||||
coldDamage: #per second, scales with temperature & other constants
|
coldDamage: #per second, scales with temperature & other constants
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
specificHeat: 42
|
specificHeat: 42
|
||||||
heatDamage: #per second, scales with temperature & other constants
|
heatDamage: #per second, scales with temperature & other constants
|
||||||
types:
|
types:
|
||||||
Heat : 0.1
|
Heat : 1.5
|
||||||
- type: ThermalRegulator
|
- type: ThermalRegulator
|
||||||
metabolismHeat: 800
|
metabolismHeat: 800
|
||||||
radiatedHeat: 100
|
radiatedHeat: 100
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
normalBodyTemperature: 310.15
|
normalBodyTemperature: 310.15
|
||||||
thermalRegulationTemperatureThreshold: 25
|
thermalRegulationTemperatureThreshold: 25
|
||||||
- type: Temperature
|
- type: Temperature
|
||||||
heatDamageThreshold: 360
|
heatDamageThreshold: 325
|
||||||
coldDamageThreshold: 260
|
coldDamageThreshold: 260
|
||||||
currentTemperature: 310.15
|
currentTemperature: 310.15
|
||||||
specificHeat: 42
|
specificHeat: 42
|
||||||
@@ -158,7 +158,7 @@
|
|||||||
Cold: 1 #per second, scales with temperature & other constants
|
Cold: 1 #per second, scales with temperature & other constants
|
||||||
heatDamage:
|
heatDamage:
|
||||||
types:
|
types:
|
||||||
Heat: 1 #per second, scales with temperature & other constants
|
Heat: 1.5 #per second, scales with temperature & other constants
|
||||||
- type: Barotrauma
|
- type: Barotrauma
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
canResistFire: true
|
canResistFire: true
|
||||||
damage: #per second, scales with number of fire 'stacks'
|
damage: #per second, scales with number of fire 'stacks'
|
||||||
types:
|
types:
|
||||||
Heat: 1
|
Heat: 3
|
||||||
- type: FireVisuals
|
- type: FireVisuals
|
||||||
sprite: Mobs/Effects/onfire.rsi
|
sprite: Mobs/Effects/onfire.rsi
|
||||||
normalState: Generic_mob_burning
|
normalState: Generic_mob_burning
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
types: {}
|
types: {}
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1
|
Heat: 3
|
||||||
- type: Reactive
|
- type: Reactive
|
||||||
groups:
|
groups:
|
||||||
Flammable: [Touch]
|
Flammable: [Touch]
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
fireSpread: true
|
fireSpread: true
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1
|
Heat: 3
|
||||||
- type: GrowingKudzu
|
- type: GrowingKudzu
|
||||||
growthTickChance: 0.3
|
growthTickChance: 0.3
|
||||||
- type: AtmosExposed
|
- type: AtmosExposed
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
types: {}
|
types: {}
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1
|
Heat: 5
|
||||||
- type: Reactive
|
- type: Reactive
|
||||||
groups:
|
groups:
|
||||||
Flammable: [Touch]
|
Flammable: [Touch]
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
types: {}
|
types: {}
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1
|
Heat: 5
|
||||||
- type: Reactive
|
- type: Reactive
|
||||||
groups:
|
groups:
|
||||||
Flammable: [Touch]
|
Flammable: [Touch]
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
fireSpread: true
|
fireSpread: true
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1 #per second, scales with number of fire 'stacks'
|
Heat: 3 #per second, scales with number of fire 'stacks'
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
- type: FireVisuals
|
- type: FireVisuals
|
||||||
sprite: Effects/fire.rsi
|
sprite: Effects/fire.rsi
|
||||||
@@ -107,7 +107,7 @@
|
|||||||
fireSpread: true
|
fireSpread: true
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Heat: 1 #per second, scales with number of fire 'stacks'
|
Heat: 3 #per second, scales with number of fire 'stacks'
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
- type: FireVisuals
|
- type: FireVisuals
|
||||||
sprite: Effects/fire.rsi
|
sprite: Effects/fire.rsi
|
||||||
|
|||||||
Reference in New Issue
Block a user