Basic bleeding mechanics (#6710)

This commit is contained in:
mirrorcult
2022-02-17 15:00:41 -07:00
committed by GitHub
parent 56b2041b12
commit a57d78a3f2
29 changed files with 510 additions and 48 deletions

View File

@@ -88,6 +88,25 @@
visuals:
- type: PuddleVisualizer
- type: entity
id: PuddleBlood
name: blood
description: This can't be a good sign.
parent: PuddleBase
components:
- type: Sprite
sprite: Fluids/splatter.rsi # Placeholder
state: splatter-0
netsync: false
- type: Puddle
slipThreshold: 20
- type: Evaporation
evaporateTime: 20 # 4 times slower than normal
- type: Appearance
visuals:
- type: PuddleVisualizer
recolor: true
- type: entity
name: vomit
id: PuddleVomit

View File

@@ -53,7 +53,14 @@
- Opaque
- type: SolutionContainerManager
- type: Bloodstream
max_volume: 100
bloodlossDamage:
types:
Bloodloss:
1
bloodlossHealDamage:
types:
Bloodloss:
-0.25
- type: Damageable
damageContainer: Biological
- type: AtmosExposed

View File

@@ -44,16 +44,19 @@
types:
Blunt: 2
# Organs
- type: SolutionContainerManager
solutions:
bloodstream:
maxVol: 250
- type: InjectableSolution
solution: bloodstream
solution: chemicals
- type: DrawableSolution
solution: bloodstream
- type: Bloodstream
max_volume: 100
bloodlossDamage:
types:
Bloodloss:
1
bloodlossHealDamage:
types:
Bloodloss:
-0.25
- type: StatusEffects
allowed:
- Stun

View File

@@ -99,6 +99,16 @@
- type: Damageable
damageContainer: Biological
damageModifierSet: Slime
- type: Bloodstream
bloodReagent: Slime # TODO Color slime blood based on their slime color or smth
bloodlossDamage:
types:
Bloodloss:
1
bloodlossHealDamage:
types:
Bloodloss:
-0.25
- type: Barotrauma
damage:
types:

View File

@@ -39,6 +39,7 @@
damage:
groups:
Brute: -15 # 5 for each type in the group
bloodlossModifier: -3 # a little bit of bloodloss healing.
- type: Stack
stackType: Brutepack
@@ -57,8 +58,9 @@
damageContainer: Biological
damage:
types:
Slash: -5
Piercing: -5
Slash: -2.5
Piercing: -2.5
bloodlossModifier: -10
- type: Stack
stackType: Gauze