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