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:
@@ -1,4 +1,5 @@
|
||||
cp14-material-wooden-planks = wooden planks
|
||||
cp14-material-dirt-block = dirt
|
||||
cp14-material-stone-block = stone
|
||||
cp14-material-cloth = cloth
|
||||
cp14-material-cloth = cloth
|
||||
cp14-material-flora = flora material
|
||||
|
||||
@@ -3,6 +3,7 @@ cp14-stack-stone-block = stone blocks
|
||||
cp14-stack-wood-planks = wooden planks
|
||||
cp14-stack-nails = nails
|
||||
cp14-stack-cloth = rolls of fabric
|
||||
cp14-stack-flora = tufts of grass
|
||||
|
||||
cp14-stack-copper-bars = copper bars
|
||||
cp14-stack-iron-bars = iron bars
|
||||
@@ -10,4 +11,4 @@ cp14-stack-gold-bars = gold bars
|
||||
|
||||
cp14-stack-wallpaper = rolls of wallpaper
|
||||
|
||||
cp14-stack-glass-sheet = glass
|
||||
cp14-stack-glass-sheet = glass
|
||||
|
||||
2
Resources/Locale/en-US/_CP14/stack/medical.ftl
Normal file
2
Resources/Locale/en-US/_CP14/stack/medical.ftl
Normal file
@@ -0,0 +1,2 @@
|
||||
cp14-stack-pack-herbal-bandage = herbal bandage kit
|
||||
cp14-stack-pack-gauze = gauze kit
|
||||
@@ -760,7 +760,7 @@ ent-CP14Nail10 = { ent-CP14Nail1 }
|
||||
.desc = { ent-CP14Nail1.desc }
|
||||
.suffix = 10
|
||||
|
||||
ent-CP14FloraMaterial = растительный материал
|
||||
ent-CP14FloraMaterial1 = растительный материал
|
||||
.desc = Органический материал, используемый в лечебных или строительных целях.
|
||||
|
||||
ent-CP14String = нитки
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
cp14-material-wooden-planks = деревянные доски
|
||||
cp14-material-dirt-block = земля
|
||||
cp14-material-stone-block = камень
|
||||
cp14-material-cloth = ткань
|
||||
cp14-material-cloth = ткань
|
||||
cp14-material-flora = растительный материал
|
||||
|
||||
@@ -3,11 +3,12 @@ cp14-stack-stone-block = каменные блоки
|
||||
cp14-stack-wood-planks = деревянные доски
|
||||
cp14-stack-nails = гвозди
|
||||
cp14-stack-cloth = рулоны ткани
|
||||
cp14-stack-flora = пучки травы
|
||||
|
||||
cp14-stack-copper-bars = медные слитки
|
||||
cp14-stack-iron-bars = железные слитки
|
||||
cp14-stack-gold-bars = золотые слитки
|
||||
|
||||
cp14-stack-wallpaper = рулон розоев
|
||||
cp14-stack-wallpaper = рулон обоев
|
||||
|
||||
cp14-stack-glass-sheet = стекло
|
||||
2
Resources/Locale/ru-RU/_CP14/stack/medical.ftl
Normal file
2
Resources/Locale/ru-RU/_CP14/stack/medical.ftl
Normal file
@@ -0,0 +1,2 @@
|
||||
cp14-stack-pack-herbal-bandage = набор травяных бинтов
|
||||
cp14-stack-pack-gauze = набор марли
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -79,7 +79,7 @@
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14FloraMaterial:
|
||||
CP14FloraMaterial1:
|
||||
min: 0
|
||||
max: 2
|
||||
- type: SpeedModifierContacts
|
||||
|
||||
@@ -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 #?
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
27
Resources/Prototypes/_CP14/Recipes/Crafting/improvised.yml
Normal file
27
Resources/Prototypes/_CP14/Recipes/Crafting/improvised.yml
Normal 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
|
||||
@@ -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
|
||||
|
||||
13
Resources/Prototypes/_CP14/Stacks/medical.yml
Normal file
13
Resources/Prototypes/_CP14/Stacks/medical.yml
Normal 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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 410 B |
Binary file not shown.
|
After Width: | Height: | Size: 517 B |
Binary file not shown.
|
After Width: | Height: | Size: 568 B |
Binary file not shown.
|
After Width: | Height: | Size: 404 B |
Binary file not shown.
|
After Width: | Height: | Size: 488 B |
Binary file not shown.
|
After Width: | Height: | Size: 590 B |
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CLA",
|
||||
"copyright": "Created by jaraten(Github/discord)",
|
||||
"states": [
|
||||
{
|
||||
"name": "bandage"
|
||||
},
|
||||
{
|
||||
"name": "bandage_2"
|
||||
},
|
||||
{
|
||||
"name": "bandage_3"
|
||||
},
|
||||
{
|
||||
"name": "herbbandage"
|
||||
},
|
||||
{
|
||||
"name": "herbbandage_2"
|
||||
},
|
||||
{
|
||||
"name": "herbbandage_3"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user