Herbal bandages and gauze (#545)

* gauze and bandage

* fix

* spawn

* dele

* doAfter buff

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
Co-authored-by: Ed <edwardxperia2000@gmail.com>
This commit is contained in:
Nim
2024-11-08 08:26:31 +02:00
committed by GitHub
parent 87dc3f9fa5
commit e062d386fc
23 changed files with 249 additions and 9 deletions

View File

@@ -283,14 +283,18 @@
count: 10
- type: entity
id: CP14FloraMaterial
id: CP14FloraMaterial1
parent: BaseItem
name: flora material
description: An organic material used for medicinal or construction purposes.
suffix: 1
categories: [ ForkFiltered ]
components:
- type: Item
size: Tiny
- type: Stack
stackType: CP14FloraMaterial
count: 1
- type: Sprite
sprite: _CP14/Objects/Materials/flora.rsi
layers:
@@ -314,6 +318,18 @@
damage:
types:
Heat: 1
- type: Material
- type: PhysicalComposition # точно ли это нужно?
materialComposition:
CP14FloraMaterial: 100
- type: entity
id: CP14FloraMaterial2
parent: CP14FloraMaterial1
suffix: 2
components:
- type: Stack
count: 2
- type: entity
id: CP14String

View File

@@ -0,0 +1,101 @@
- type: entity
id: CP14HerbalBandage
parent: BaseItem
name: herbal bandage
description: A bandage net woven from grass, not the most reliable or useful thing, but better than nothing.
suffix: 10
categories: [ ForkFiltered ]
components:
- type: Item
size: Small
- type: Sprite
sprite: _CP14/Objects/Specific/Medical/medical.rsi
state: herbbandage_3
layers:
- state: herbbandage_3
map: ["base"]
- type: Appearance
- type: Construction
graph: CP14HerbBandage
node: cp14herbbandage
- type: Healing
damageContainers:
- Biological
damage:
types:
Slash: -1
Piercing: -1
bloodlossModifier: -4
healingBeginSound:
path: "/Audio/Items/Medical/brutepack_begin.ogg"
healingEndSound:
path: "/Audio/Items/Medical/brutepack_end.ogg"
- type: Stack
stackType: CP14HerbalBandage
count: 10
baseLayer: base
layerStates:
- herbbandage
- herbbandage_2
- herbbandage_3
- type: entity
id: CP14HerbalBandage1
parent: CP14HerbalBandage
suffix: 1
components:
- type: Sprite
state: herbbandage
- type: Stack
count: 1
- type: entity
id: CP14Gauze
parent: BaseItem
name: gauze
description: Dense cloth gauze, to prevent valuable blood from leaking out of the body.
suffix: 10
categories: [ ForkFiltered ]
components:
- type: Item
size: Small
- type: Sprite
sprite: _CP14/Objects/Specific/Medical/medical.rsi
state: bandage_3
layers:
- state: bandage_3
map: ["base"]
- type: Appearance
- type: Construction
graph: CP14Gauze
node: cp14gauze
- type: Healing
damageContainers:
- Biological
damage:
types:
Slash: -4
Piercing: -4
bloodlossModifier: -10
healingBeginSound:
path: "/Audio/Items/Medical/brutepack_begin.ogg"
healingEndSound:
path: "/Audio/Items/Medical/brutepack_end.ogg"
- type: Stack
stackType: CP14Gauze
count: 10
baseLayer: base
layerStates:
- bandage
- bandage_2
- bandage_3
- type: entity
id: CP14Gauze1
parent: CP14Gauze
suffix: 1
components:
- type: Sprite
state: bandage
- type: Stack
count: 1

View File

@@ -79,7 +79,7 @@
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14FloraMaterial:
CP14FloraMaterial1:
min: 0
max: 2
- type: SpeedModifierContacts

View File

@@ -68,4 +68,13 @@
unit: materials-unit-bar
icon: { sprite: _CP14/Objects/Materials/gold_bar.rsi, state: bar_2 }
color: "#FFD700"
price: 0 #?
price: 0 #?
- type: material
id: CP14FloraMaterial
stackEntity: CP14FloraMaterial1
name: cp14-material-flora
unit: materials-unit-bunch
icon: { sprite: _CP14/Objects/Materials/flora.rsi, state: grass_material1 }
color: "#85903e"
price: 0 #?

View File

@@ -0,0 +1,14 @@
- type: constructionGraph
id: CP14Gauze
start: start
graph:
- node: start
edges:
- to: cp14gauze
steps:
- material: CP14Cloth
amount: 2
doAfter: 4
- node: cp14gauze
entity: CP14Gauze1

View File

@@ -0,0 +1,16 @@
- type: constructionGraph
id: CP14HerbBandage
start: start
graph:
- node: start
edges:
- to: cp14herbbandage
steps:
- material: CP14FloraMaterial
amount: 2
- material: CP14FloraMaterial
amount: 2
doAfter: 4
- node: cp14herbbandage
entity: CP14HerbalBandage1

View File

@@ -0,0 +1,27 @@
- type: construction
crystallPunkAllowed: true
name: herbal bandage
id: cp14herbbandage
graph: CP14HerbBandage
startNode: start
targetNode: cp14herbbandage
category: construction-category-tools
objectType: Item
description: I'm surprised it can help at all.
icon:
sprite: _CP14/Objects/Specific/Medical/medical.rsi
state: herbbandage
- type: construction
crystallPunkAllowed: true
name: gauze
id: cp14gauze
graph: CP14Gauze
startNode: start
targetNode: cp14gauze
category: construction-category-tools
objectType: Item
description: Last chance not to bleed out.
icon:
sprite: _CP14/Objects/Specific/Medical/medical.rsi
state: bandage

View File

@@ -59,4 +59,11 @@
name: cp14-stack-glass-sheet
spawn: CP14GlassSheet1
icon: { sprite: _CP14/Objects/Materials/glass.rsi, state: glass_2 }
maxCount: 10
maxCount: 10
- type: stack
id: CP14FloraMaterial
name: cp14-stack-flora
icon: { sprite: "_CP14/Objects/Materials/flora.rsi", state: grass_material1 }
spawn: CP14FloraMaterial1
maxCount: 2

View File

@@ -0,0 +1,13 @@
- type: stack
id: CP14HerbalBandage
name: cp14-stack-pack-herbal-bandage
icon: { sprite: "_CP14/Objects/Specific/Medical/medical.rsi", state: herbbandage_3 }
spawn: CP14HerbalBandage
maxCount: 10
- type: stack
id: CP14Gauze
name: cp14-stack-pack-gauze
icon: { sprite: "_CP14/Objects/Specific/Medical/medical.rsi", state: bandage_3 }
spawn: CP14Gauze
maxCount: 10