Agaric shroom! (#172)

* agaric shrooms!

* add agaric reagents

* add agaric into worldgen
This commit is contained in:
Ed
2024-05-25 13:30:33 +03:00
committed by GitHub
parent 505a12606a
commit f8564b3661
32 changed files with 384 additions and 69 deletions

View File

@@ -0,0 +1,39 @@
- type: entity
id: CP14RandomSpawnerGatherGloodgrass
name: bloodgrass spawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: _CP14/Objects/Specific/Alchemy/Herbal/bloodgrass.rsi
state: grass1
- type: RandomSpawner
prototypes:
- CP14GatherableBloodgrass
- CP14GatherableBloodgrass2
- CP14GatherableBloodgrass3
- CP14GatherableBloodgrass4
- CP14GatherableBloodgrass5
chance: 1
- type: entity
id: CP14RandomSpawnerGatherAgaricShroom
name: agaric shroom spawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: red
- sprite: _CP14/Objects/Specific/Alchemy/Herbal/agaric.rsi
state: world1
- type: RandomSpawner
prototypes:
- CP14GatherableFlyAgaric
- CP14GatherableFlyAgaric2
- CP14GatherableFlyAgaric3
- CP14GatherableFlyAgaric4
- CP14GatherableFlyAgaric5
- CP14GatherableFlyAgaric6
chance: 0.05

View File

@@ -34,4 +34,42 @@
maxVol: 20
reagents:
- ReagentId: CP14BloodGrassSap
Quantity: 5
- type: entity
id: CP14AgaricMushroom
parent: FoodProduceBase
name: fly agaric
description: This poisonous mushroom can often be found near bodies of water or other wet areas. It is not recommended for consumption.
components:
- type: Item
size: Tiny
- type: Produce
- type: Sprite
sprite: _CP14/Objects/Specific/Alchemy/Herbal/agaric.rsi
layers:
- state: base1
map: ["random"]
- type: RandomSprite
available:
- random:
base1: ""
base2: ""
base3: ""
base4: ""
base5: ""
- type: FlavorProfile
flavors:
- CP14Metallic #TODO
- type: Extractable
juiceSolution:
reagents:
- ReagentId: CP14AgaricMushroom
Quantity: 5
- type: SolutionContainerManager
solutions:
food:
maxVol: 20
reagents:
- ReagentId: CP14AgaricMushroom
Quantity: 5

View File

@@ -45,14 +45,14 @@
collection: FootstepWater
params:
volume: 8
#- type: SolutionContainerManager
# solutions:
# pool:
# maxVol: 9999999 #.inf seems to break the whole yaml file, but would definitely be preferable.
# reagents:
# - ReagentId: CP14Water
# Quantity: 9999999
#- type: DrainableSolution
# solution: pool
#- type: Drink
# solution: pool
- type: SolutionContainerManager
solutions:
pool:
maxVol: 9999999 #.inf seems to break the whole yaml file, but would definitely be preferable.
reagents:
- ReagentId: CP14Water
Quantity: 9999999
- type: DrainableSolution
solution: pool
- type: Drink
solution: pool

View File

@@ -80,4 +80,69 @@
parent: CP14GatherableBloodgrass
components:
- type: Sprite
state: grass5
state: grass5
# Fly agaric
- type: entityLootTable
id: CP14GatherFlyAgaric
entries:
- id: CP14AgaricMushroom
amount: 1
maxAmount: 2
- type: entity
id: CP14GatherableFlyAgaric
parent: CP14GatherableHerbalBase
name: fly agaric
description: This poisonous mushroom can often be found near bodies of water or other wet areas. It is not recommended for consumption.
suffix: Gatherable
components:
- type: Sprite
snapCardinals: true
drawdepth: FloorTiles
sprite: _CP14/Objects/Specific/Alchemy/Herbal/agaric.rsi
state: world1
- type: Gatherable
toolWhitelist:
tags:
- CP14HerbalGathering
components:
- Hands
loot:
All: CP14GatherFlyAgaric
- type: entity
id: CP14GatherableFlyAgaric2
parent: CP14GatherableFlyAgaric
components:
- type: Sprite
state: world2
- type: entity
id: CP14GatherableFlyAgaric3
parent: CP14GatherableFlyAgaric
components:
- type: Sprite
state: world3
- type: entity
id: CP14GatherableFlyAgaric4
parent: CP14GatherableFlyAgaric
components:
- type: Sprite
state: world4
- type: entity
id: CP14GatherableFlyAgaric5
parent: CP14GatherableFlyAgaric
components:
- type: Sprite
state: world5
- type: entity
id: CP14GatherableFlyAgaric6
parent: CP14GatherableFlyAgaric
components:
- type: Sprite
state: world6

View File

@@ -10,6 +10,16 @@
flavorType: Base
description: cp14-flavor-base-invigorating
- type: flavor
id: CP14Bitterly
flavorType: Base
description: cp14-flavor-base-bitterly
- type: flavor
id: CP14Sweely
flavorType: Base
description: cp14-flavor-base-sweetly
# Complex
- type: flavor

View File

@@ -211,6 +211,21 @@
gain: 0.12
fractalType: Ridged
octaves: 1
- !type:BiomeEntityLayer
allowedTiles:
- CP14FloorDirt
- CP14FloorGrass
threshold: 0.91
noise:
seed: 3
noiseType: OpenSimplex2
frequency: 0.003
lacunarity: 1.50
gain: 0.12
fractalType: Ridged
octaves: 1
entities:
- CP14RandomSpawnerGatherAgaricShroom
- !type:BiomeEntityLayer
allowedTiles:
- CP14FloorDirt

View File

@@ -1,9 +1,19 @@
- type: reagent
id: CP14BasicEffectEmpty
name: cp14-reagent-name-basic-empty
desc: cp14-reagent-desc-basic-empty
group: CP14BasicEffect
flavor: CP14Bitterly
color: "#858585"
physicalDesc: cp14-reagent-physical-desc-colorless
- type: reagent
id: CP14BasicEffectHealBlunt
name: cp14-reagent-name-basic-heal-blunt
desc: cp14-reagent-desc-basic-heal-blunt
group: CP14BasicEffect
flavor: medicine
flavor: CP14Metallic
color: "#c71aaa"
physicalDesc: cp14-reagent-physical-desc-scarlet
metabolisms:
@@ -12,14 +22,14 @@
- !type:HealthChange
damage:
types:
Blunt: -1
Blunt: -10
- type: reagent
id: CP14BasicEffectHealPiercing
name: cp14-reagent-name-basic-heal-piercing
desc: cp14-reagent-desc-basic-heal-piercing
group: CP14BasicEffect
flavor: medicine
flavor: CP14Metallic
color: "#e03895"
physicalDesc: cp14-reagent-physical-desc-scarlet
metabolisms:
@@ -28,14 +38,14 @@
- !type:HealthChange
damage:
types:
Piercing: -1
Piercing: -10
- type: reagent
id: CP14BasicEffectHealSlash
name: cp14-reagent-name-basic-heal-slash
desc: cp14-reagent-desc-basic-heal-slash
group: CP14BasicEffect
flavor: medicine
flavor: CP14Metallic
color: "#cf153a"
physicalDesc: cp14-reagent-physical-desc-scarlet
metabolisms:
@@ -44,30 +54,82 @@
- !type:HealthChange
damage:
types:
Slash: -1
Slash: -10
- type: reagent
id: CP14BasicEffectHealBruteGroup
name: cp14-reagent-name-basic-heal-brute
desc: cp14-reagent-desc-basic-heal-brute
group: CP14BasicEffect
flavor: CP14Metallic
color: "#e31010"
physicalDesc: cp14-reagent-physical-desc-scarlet
metabolisms:
Medicine:
effects:
- !type:HealthChange
damage:
groups:
Brute: -3
- type: reagent
id: CP14BasicEffectDamagePoison
name: cp14-reagent-name-basic-damage-poison
desc: cp14-reagent-desc-basic-damage-poison
group: CP14BasicEffect
flavor: CP14Bitterly
color: "#768551"
physicalDesc: cp14-reagent-physical-desc-viscous
metabolisms:
Poison:
effects:
- !type:HealthChange
damage:
types:
Poison: 10
- type: reagent
id: CP14BasicEffectRainbow
name: cp14-reagent-name-see-rainbow
desc: cp14-reagent-desc-see-rainbow
group: CP14BasicEffect
flavor: CP14Bitterly
color: "#d442db"
physicalDesc: cp14-reagent-physical-desc-colorless
metabolisms:
Narcotic:
effects:
- !type:GenericStatusEffect
key: SeeingRainbows
component: SeeingRainbows
type: Add
time: 25
refresh: false
- type: reagent
id: CP14BasicEffectSatiateHunger
name: cp14-reagent-name-basic-satiate-hunger
desc: cp14-reagent-desc-basic-satiate-hunger
group: CP14BasicEffect
flavor: nutriment
flavor: CP14Sweely
color: "#a35629"
physicalDesc: cp14-reagent-physical-desc-scarlet #TODO
physicalDesc: cp14-reagent-physical-desc-viscous
metabolisms:
Food:
effects:
- !type:SatiateHunger
factor: 6
- type: reagent
id: CP14BasicEffectSatiateThirst
name: cp14-reagent-name-basic-satiate-thirst
desc: cp14-reagent-desc-basic-satiate-thirst
group: CP14BasicEffect
flavor: nutriment
flavor: CP14Water
color: "#2b7fed"
physicalDesc: cp14-reagent-physical-desc-scarlet #TODO
physicalDesc: cp14-reagent-physical-desc-colorless
metabolisms:
Drink:
effects:
- !type:SatiateThirst
- !type:SatiateThirst
factor: 6

View File

@@ -12,30 +12,6 @@
collection: FootstepBlood
params:
volume: 6
# metabolisms:
# Drink:
# effects:
# - !type:SatiateThirst
# factor: 1.5
# conditions:
# - !type:OrganType
# type: Human
# shouldHave: false
# Food:
# effects:
# - !type:AdjustReagent
# reagent: UncookedAnimalProteins
# amount: 0.5
# Medicine:
# effects:
# - !type:HealthChange
# conditions:
# - !type:OrganType
# type: Bloodsucker
# damage:
# groups:
# Brute: -3
# Burn: -1.25
- type: reagent
id: CP14BloodGrassSap
@@ -54,11 +30,37 @@
Food:
effects:
- !type:SatiateHunger
factor: 0.5
Medicine:
factor: 1.5
Poison:
effects:
- !type:HealthChange
damage:
types:
Poison: 0.25
- type: reagent
id: CP14AgaricMushroom
group: CP14Biological
name: cp14-reagent-name-agaric-shroom
desc: cp14-reagent-desc-agaric-shroom
flavor: CP14Bitterly
color: "#89a195"
physicalDesc: cp14-reagent-physical-desc-colorless
slippery: false
metabolisms:
Poison:
effects:
- !type:HealthChange
damage:
types:
Poison: 1.5
- !type:ChemVomit
probability: 0.02
Narcotic:
effects:
- !type:GenericStatusEffect
key: SeeingRainbows
component: SeeingRainbows
type: Add
time: 6
refresh: false

View File

@@ -7,19 +7,18 @@
CP14BloodGrassSap:
amount: 2
products:
CP14BasicEffectSatiateHunger: 2
CP14BasicEffectHealSlash: 0.5
CP14BasicEffectHealPiercing: 0.5
CP14BasicEffectEmpty: 2.7
CP14BasicEffectSatiateHunger: 0.2
CP14BasicEffectHealSlash: 0.05
CP14BasicEffectHealPiercing: 0.05
#- type: reaction
# id: CP14BloodGrassProcessingFail1
# minTemp: 450
# reactants:
# CP14VitalExtract:
# amount: 1
# effects:
# - !type:AreaReactionEffect
# duration: 20
# prototypeId: CP14MistVitalExtract
# sound:
# path: /Audio/Effects/smoke.ogg
- type: reaction
id: CP14AgaricShroomProcessing1
minTemp: 350
reactants:
CP14AgaricMushroom:
amount: 1
products:
CP14BasicEffectEmpty: 0.7
CP14BasicEffectRainbow: 0.1
CP14BasicEffectDamagePoison: 0.15