Onion and pepper (#889)

* onion and pepper

* flavor

* crates
This commit is contained in:
Nim
2025-02-13 14:21:41 +02:00
committed by GitHub
parent 460f438bb2
commit 19c29e126d
32 changed files with 364 additions and 2 deletions

View File

@@ -63,6 +63,10 @@
amount: 3
- id: CP14SeedTomato
amount: 3
- id: CP14SeedOnion
amount: 3
- id: CP14SeedPepper
amount: 3
- type: entity
parent: CP14BrassChest

View File

@@ -369,4 +369,71 @@
Quantity: 2.5
- ReagentId: Vitamin
Quantity: 1
- type: entity
id: CP14FoodPepper
parent: FoodInjectableBase
categories: [ ForkFiltered ]
name: pepper
description: Red and sweetish.
components:
- type: Item
size: Tiny
- type: FlavorProfile
flavors:
- peppery
- type: Sprite
sprite: _CP14/Objects/Flora/Farm/pepper.rsi
layers:
- state: base1
map: [ "random" ]
- type: RandomSprite
available:
- random:
base1: ""
base2: ""
base3: ""
- type: SolutionContainerManager
solutions:
food:
maxVol: 15
reagents:
- ReagentId: Nutriment
Quantity: 8
- ReagentId: Vitamin
Quantity: 6
- type: entity
id: CP14FoodOnion
parent: FoodInjectableBase
categories: [ ForkFiltered ]
name: onion
description: If you eat too much, you can cry tears of joy.
components:
- type: Item
size: Tiny
- type: FlavorProfile
flavors:
- onion
- type: Sprite
sprite: _CP14/Objects/Flora/Farm/onion.rsi
layers:
- state: base1
map: [ "random" ]
- type: RandomSprite
available:
- random:
base1: ""
base2: ""
base3: ""
- type: SolutionContainerManager
solutions:
food:
maxVol: 17
reagents:
- ReagentId: Nutriment
Quantity: 9
- ReagentId: Vitamin
Quantity: 4
- ReagentId: Allicin
Quantity: 3

View File

@@ -73,3 +73,29 @@
- state: tomato
- type: CP14Seed
plantProto: CP14PlantTomatoes
- type: entity
id: CP14SeedOnion
name: onion seeds
description: Onion seeds, small but strong.
parent: CP14BaseSeed
components:
- type: Sprite
layers:
- state: bag
- state: onion
- type: CP14Seed
plantProto: CP14PlantOnion
- type: entity
id: CP14SeedPepper
name: pepper seeds
description: Pepper seeds, with a peppercorn inside.
parent: CP14BaseSeed
components:
- type: Sprite
layers:
- state: bag
- state: pepper
- type: CP14Seed
plantProto: CP14PlantPepper

View File

@@ -0,0 +1,69 @@
- type: entity
id: CP14PlantOnion
parent: CP14GatherablePlantBase
name: onion
description: OOO # TODO
components:
- type: Sprite
sprite: _CP14/Structures/Flora/Farm/onion.rsi
layers:
- state: grow-1
map: ["enum.PlantVisualLayers.Base"]
- type: CP14PlantMetabolizer
metabolizerId: Base
- type: CP14PlantEnergyFromLight
energy: 1
daytime: true
- type: CP14PlantVisuals
growthSteps: 6
- type: CP14PlantGrowing
energyCost: 1
resourceCost: 1
growthPerUpdate: 0.05 # 20 minute to full grow
- type: CP14PlantFading
resourcePerMinute: 0.15
- type: CP14PlantGatherable
deleteAfterHarvest: false
loot:
All: CP14GatherOnion
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 25
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTypeTrigger
damageType: Cellular
damage: 1
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14PlantTomatoesDeath:
min: 1
max: 1
- type: entity
id: CP14PlantOnionDeath
name: dead onion
description: The sad spectacle of wasted food.
parent: CP14GatherableBase
components:
- type: Sprite
sprite: _CP14/Structures/Flora/Farm/onion.rsi
state: death
- type: Gatherable
toolWhitelist:
tags:
- CP14HerbalGathering
- type: entityLootTable
id: CP14GatherOnion
entries:
- id: CP14FoodOnion
amount: 3
maxAmount: 5

View File

@@ -0,0 +1,69 @@
- type: entity
id: CP14PlantPepper
parent: CP14GatherablePlantBase
name: pepper
description: OOO # TODO
components:
- type: Sprite
sprite: _CP14/Structures/Flora/Farm/pepper.rsi
layers:
- state: grow-1
map: ["enum.PlantVisualLayers.Base"]
- type: CP14PlantMetabolizer
metabolizerId: Base
- type: CP14PlantEnergyFromLight
energy: 1
daytime: true
- type: CP14PlantVisuals
growthSteps: 5
- type: CP14PlantGrowing
energyCost: 1
resourceCost: 1
growthPerUpdate: 0.05 # 20 minute to full grow
- type: CP14PlantFading
resourcePerMinute: 0.15
- type: CP14PlantGatherable
deleteAfterHarvest: false
loot:
All: CP14GatherPepper
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 25
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTypeTrigger
damageType: Cellular
damage: 1
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14PlantTomatoesDeath:
min: 1
max: 1
- type: entity
id: CP14PlantPepperDeath
name: dead pepper
description: The sad spectacle of wasted food.
parent: CP14GatherableBase
components:
- type: Sprite
sprite: _CP14/Structures/Flora/Farm/pepper.rsi
state: death
- type: Gatherable
toolWhitelist:
tags:
- CP14HerbalGathering
- type: entityLootTable
id: CP14GatherPepper
entries:
- id: CP14FoodPepper
amount: 3
maxAmount: 5

View File

@@ -46,4 +46,24 @@
- !type:ProtoIdResource
protoId: CP14FoodCucumber
count: 1
result: CP14SeedCucumber
result: CP14SeedCucumber
- type: CP14Recipe
id: CP14SeedOnion
tag: CP14RecipeCooking
craftTime: 1
requirements:
- !type:ProtoIdResource
protoId: CP14FoodOnion
count: 1
result: CP14SeedOnion
- type: CP14Recipe
id: CP14SeedPepper
tag: CP14RecipeCooking
craftTime: 1
requirements:
- !type:ProtoIdResource
protoId: CP14FoodPepper
count: 1
result: CP14SeedPepper

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

View File

@@ -0,0 +1,20 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by omsoyk (Discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "base1"
},
{
"name": "base2"
},
{
"name": "base3"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 B

View File

@@ -0,0 +1,20 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by omsoyk (Discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "base1"
},
{
"name": "base2"
},
{
"name": "base3"
}
]
}

View File

@@ -28,6 +28,12 @@
{
"name": "tomato"
},
{
"name": "onion"
},
{
"name": "pepper"
},
{
"name": "wheat"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,32 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by omsoyk (Discord)",
"size": {
"x": 48,
"y": 48
},
"states": [
{
"name": "grow-1"
},
{
"name": "grow-2"
},
{
"name": "grow-3"
},
{
"name": "grow-4"
},
{
"name": "grow-5"
},
{
"name": "grow-6"
},
{
"name": "death"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,29 @@
{
"version": 1,
"license": "All right reserved",
"copyright": "Created by omsoyk (Discord)",
"size": {
"x": 48,
"y": 48
},
"states": [
{
"name": "grow-1"
},
{
"name": "grow-2"
},
{
"name": "grow-3"
},
{
"name": "grow-4"
},
{
"name": "grow-5"
},
{
"name": "death"
}
]
}