Alchemy patch (#214)

* added tiefling and elf blood + new bloodgrass reactions

* buff chromium slime

* full restruct reactions files

* remove deadend thirst and satiate

* more rules

* Create fail.yml

* remove rainbow and cough deadend
This commit is contained in:
Ed
2024-06-04 23:08:42 +03:00
committed by GitHub
parent 0d2de81ac5
commit 454930bb85
16 changed files with 391 additions and 137 deletions

View File

@@ -1,6 +1,12 @@
cp14-reagent-name-blood = blood
cp14-reagent-desc-blood = The life energy of a living warm-blooded creatures.
cp14-reagent-name-blood-tiefling = tiefling blood
cp14-reagent-desc-blood-tiefling = The life energy of a fire-blooded creature.
cp14-reagent-name-blood-elf = elf blood
cp14-reagent-desc-blood-elf = The life energy of a magical creature.
cp14-reagent-name-bloodgrasssap = bloodgrass sap
cp14-reagent-desc-bloodgrasssap = A squeeze from the ubiquitous blood grass. It has no particular remarkable qualities, but with proper skill can be prepared into a nutritious food.

View File

@@ -3,3 +3,4 @@ cp14-reagent-physical-desc-scarlet = shimmering scarlet
cp14-reagent-physical-desc-colorless = colorless
cp14-reagent-physical-desc-viscous = viscous
cp14-reagent-physical-desc-cloudy = cloudy
cp14-reagent-physical-desc-sparkling = sparkling

View File

@@ -23,4 +23,10 @@ cp14-reagent-name-basic-satiate-thirst = Живительная влага
cp14-reagent-desc-basic-satiate-thirst = Жидкость, очень похожая на воду. Странная на вкус, но неплохо восполняет жажду.
cp14-reagent-name-basic-emote-cough = Откашливающий раствор
cp14-reagent-desc-basic-emote-cough = Вызывает обильный кашель, впрочем, безвредный для здоровья.
cp14-reagent-desc-basic-emote-cough = Вызывает обильный кашель, впрочем, безвредный для здоровья.
cp14-reagent-name-basic-heal-cold = Согревающий раствор
cp14-reagent-desc-basic-heal-cold = Способен исцелять даже серьезные обморожения.
cp14-reagent-name-basic-damage-cold = Ледяной раствор
cp14-reagent-desc-basic-damage-cold = Опасное вещество, вызывающее сильные обморожения.

View File

@@ -1,6 +1,12 @@
cp14-reagent-name-blood = кровь
cp14-reagent-desc-blood = Жизненная энергия живого теплокровного существа.
cp14-reagent-name-blood-tiefling = кровь тифлинга
cp14-reagent-desc-blood-tiefling = Жизненная энергия огнекровного существа.
cp14-reagent-name-blood-elf = кровь эльфа
cp14-reagent-desc-blood-elf = Жизненная энергия волшебного существа.
cp14-reagent-name-bloodgrasssap = сок кровьтравы
cp14-reagent-desc-bloodgrasssap = Выжимка из повсеместно растущей кровьтравы. Не имеет особых примечательных качеств, но при должной сноровке может быть приготовлена в питательную пищу.

View File

@@ -3,3 +3,4 @@ cp14-reagent-physical-desc-scarlet = мерцающе алое
cp14-reagent-physical-desc-colorless = бесцветное
cp14-reagent-physical-desc-viscous = вязкое
cp14-reagent-physical-desc-cloudy = мутное
cp14-reagent-physical-desc-sparkling = искрящееся

View File

@@ -21,7 +21,8 @@
requiredLegs: 2
- type: Inventory
templateId: CP14Human
- type: Wagging
- type: Bloodstream
bloodReagent: CP14BloodElf
- type: entity
parent: CP14BaseSpeciesDummy

View File

@@ -21,7 +21,9 @@
requiredLegs: 2
- type: Inventory
templateId: CP14Human
- type: Wagging
- type: Wagging
- type: Bloodstream
bloodReagent: CP14BloodTiefling
- type: entity
parent: CP14BaseSpeciesDummy

View File

@@ -1,3 +1,4 @@
- type: reagent
id: CP14BasicEffectEmpty
name: cp14-reagent-name-basic-empty
@@ -7,6 +8,9 @@
color: "#858585"
physicalDesc: cp14-reagent-physical-desc-colorless
# USEFUL
# Effects that have a direct impact on gameplay
- type: reagent
id: CP14BasicEffectHealBrute
name: cp14-reagent-name-basic-heal-brute
@@ -71,24 +75,6 @@
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
@@ -117,6 +103,59 @@
- !type:SatiateThirst
factor: 6
- type: reagent
id: CP14BasicEffectHealCold
name: cp14-reagent-name-basic-heal-cold
desc: cp14-reagent-desc-basic-heal-cold
group: CP14BasicEffect
flavor: CP14Stinging
color: "#a3511a"
physicalDesc: cp14-reagent-physical-desc-sparkling
metabolisms:
Poison:
effects:
- !type:HealthChange
damage:
types:
Cold: -10
- type: reagent
id: CP14BasicEffectDamageCold
name: cp14-reagent-name-basic-damage-cold
desc: cp14-reagent-desc-basic-damage-cold
group: CP14BasicEffect
flavor: CP14Stinging
color: "#1a95a3"
physicalDesc: cp14-reagent-physical-desc-sparkling
metabolisms:
Poison:
effects:
- !type:HealthChange
damage:
types:
Cold: 10
# USELESS
# Things that don't directly affect gameplay.
- 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: CP14BasicEffectEmoteCough
name: cp14-reagent-name-basic-emote-cough

View File

@@ -1,3 +1,4 @@
- type: reagent
id: CP14Blood
group: CP14Biological
@@ -12,6 +13,36 @@
collection: FootstepBlood
params:
volume: 6
- type: reagent
id: CP14BloodTiefling
group: CP14Biological
desc: cp14-reagent-desc-blood-tiefling
name: cp14-reagent-name-blood-tiefling
flavor: CP14Metallic
color: "#803300"
recognizable: true
physicalDesc: cp14-reagent-physical-desc-ferrous
slippery: false
footstepSound:
collection: FootstepBlood
params:
volume: 6
- type: reagent
id: CP14BloodElf
group: CP14Biological
desc: cp14-reagent-desc-blood-elf
name: cp14-reagent-name-blood-elf
flavor: CP14Metallic
color: "#80003e"
recognizable: true
physicalDesc: cp14-reagent-physical-desc-ferrous
slippery: false
footstepSound:
collection: FootstepBlood
params:
volume: 6
- type: reagent
id: CP14BloodGrassSap

View File

@@ -0,0 +1,59 @@
# Idea:
# bloodgrass is a special reagent that can yield different base reagents, depending on the type of blood it is mixed with.
# Rules:
# 1) all values must be multiples of 0.25
# 2) 25% products must be occupied by the empty solution
# 3) bloodgrass should mix with ALL blood variants
# 4) all reactions should take place at a temperature of 500, and reduce the temperature by 250.
- type: reaction
id: CP14BloodGrassBrewingBlood
minTemp: 500
priority: 2
reactants:
CP14Blood:
amount: 0.5
CP14BloodGrassSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectHealBrute: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
- type: reaction
id: CP14BloodGrassBrewingBloodTiefling
minTemp: 500
priority: 2
reactants:
CP14BloodTiefling:
amount: 0.5
CP14BloodGrassSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectHealCold: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
- type: reaction
id: CP14BloodGrassBrewingBloodElf
minTemp: 500
priority: 2
reactants:
CP14BloodElf:
amount: 0.5
CP14BloodGrassSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectHealPoison: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250

View File

@@ -0,0 +1,27 @@
# Idea:
# A more comprehensive way to get the base effects from several ingredients at once. Can give rarer effects, but at the cost of a large number of different effects in the pile.
# Rules:
# 1) all values must be multiples of 0.25
# 2) 25% products must be occupied by the empty solution
# 3) there should be 3 different effects as a result. One of them is very useful, the second useful, the third useless.
# 4) all reactions should take place at a temperature of 500, and reduce the temperature by 250.
# 5) the priority should be higher than that of a simple brewing reaction
- type: reaction
id: CP14BloodGrassAndWildSageSapBrewing
minTemp: 500
priority: 3
reactants:
CP14BloodGrassSap:
amount: 0.5
CP14WildSageSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectEmoteCough: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250

View File

@@ -0,0 +1,38 @@
# Idea:
# The easiest way to get basic effects from various herbs. Has the highest level of empty solution.
# Rules:
# 1) all values must be multiples of 0.25
# 2) 50% products must be occupied by the empty solution
# 3) one result must be useful, the other useless.
# 4) all reactions should take place at a temperature of 500, and reduce the temperature by 250.
- type: reaction
id: CP14AgaricShroomBrewing
minTemp: 500
priority: 2
reactants:
CP14AgaricMushroom:
amount: 1
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectDamagePoison: 0.25
CP14BasicEffectRainbow: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
- type: reaction
id: CP14WildSageSapBrewing
minTemp: 500
priority: 2
reactants:
CP14WildSageSap:
amount: 1
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectEmoteCough: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250

View File

@@ -1,3 +1,11 @@
# Idea:
# Chromium slime is a special reagent that inverts the USEFUL properties.
# Rules:
# 1) all values must be multiples of 0.25
# 2) all reactions should follow the same pattern
# 3) There should be no reactions here that invert useless properties (hallucinations or coughing)
- type: reaction
id: CP14ChromiumInverseEffectHealBruteGroup
minTemp: 350
@@ -9,7 +17,7 @@
amount: 0.5
products:
CP14BasicEffectDamageBrute: 0.5
CP14BasicEffectEmpty: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
@@ -25,11 +33,13 @@
amount: 0.5
products:
CP14BasicEffectHealBrute: 0.5
CP14BasicEffectEmpty: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
#
- type: reaction
id: CP14ChromiumInverseEffectHealPoison
minTemp: 350
@@ -41,7 +51,7 @@
amount: 0.5
products:
CP14BasicEffectDamagePoison: 0.5
CP14BasicEffectEmpty: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
@@ -57,7 +67,41 @@
amount: 0.5
products:
CP14BasicEffectHealPoison: 0.5
CP14BasicEffectEmpty: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
#
- type: reaction
id: CP14ChromiumInverseEffectDamageCold
minTemp: 350
conserveEnergy: false
reactants:
CP14BasicEffectDamageCold:
amount: 0.5
CP14ChromiumSlime:
amount: 0.5
products:
CP14BasicEffectHealCold: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
- type: reaction
id: CP14ChromiumInverseEffectHealCold
minTemp: 350
conserveEnergy: false
reactants:
CP14BasicEffectHealCold:
amount: 0.5
CP14ChromiumSlime:
amount: 0.5
products:
CP14BasicEffectDamageCold: 0.5
CP14BasicEffectEmpty: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350

View File

@@ -0,0 +1,13 @@
- type: reaction
id: CP14MeltingFail
minTemp: 1000
reactants:
CP14BasicEffectEmpty:
amount: 1
effects:
- !type:AreaReactionEffect
duration: 20
prototypeId: CP14Mist
sound:
path: /Audio/Effects/smoke.ogg

View File

@@ -0,0 +1,92 @@
# Idea:
# The simplest way to edit base effects by reducing the blank solution is to have different raw reagents change individual properties.
# Rules:
# 1) all values must be multiples of 0.25
# 2) the empty solution should decrease as a result of the reaction
# 3) as a result of the reaction, one effect must decay into the other two.
# 4) The priority should be higher than any brewing reactions, so that the base reagents do not have time to boil before the effect is applied
- type: reaction
id: CP14DamagePoisonSplitting
priority: 3
reactants:
CP14BasicEffectDamagePoison:
amount: 0.5
CP14BloodGrassSap:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectRainbow: 0.25
CP14BasicEffectDamageBrute: 0.25
- type: reaction
id: CP14HealBruteSplitting
priority: 3
reactants:
CP14BasicEffectHealBrute:
amount: 0.5
CP14AgaricMushroom:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectSatiateThirst: 0.25
- type: reaction
id: CP14SatiateHungerSplitting
priority: 3
reactants:
CP14BasicEffectSatiateHunger:
amount: 0.5
CP14WildSageSap:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14SatiateThirstSplitting
priority: 3
reactants:
CP14BasicEffectSatiateThirst:
amount: 0.5
CP14WildSageSap:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14EmoteCoughSplitting
priority: 3
reactants:
CP14BasicEffectEmoteCough:
amount: 0.5
CP14BloodElf:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectSatiateThirst: 0.25
CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14RainbowSplitting
priority: 3
reactants:
CP14BasicEffectRainbow:
amount: 0.5
CP14BloodTiefling:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectSatiateThirst: 0.25
CP14BasicEffectHealCold: 0.25

View File

@@ -1,112 +0,0 @@
# Simple sap mixing
- type: reaction
id: CP14BloodGrassMixing
priority: 3
reactants:
CP14BloodGrassSap:
amount: 0.5
CP14BasicEffectDamagePoison:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectRainbow: 0.25
CP14BasicEffectDamageBrute: 0.25
- type: reaction
id: CP14AgaricShroomMixing
priority: 3
reactants:
CP14AgaricMushroom:
amount: 0.5
CP14BasicEffectHealBrute:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectSatiateThirst: 0.25
- type: reaction
id: CP14WildSageSapMixing
priority: 3
reactants:
CP14WildSageSap:
amount: 0.5
CP14BasicEffectRainbow:
amount: 0.25
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectHealBrute: 0.25
# Complex brewing (2 reagents, 25% empty)
- type: reaction
id: CP14BloodGrassAndWildSageSapBrewing
minTemp: 350
priority: 3
reactants:
CP14BloodGrassSap:
amount: 0.5
CP14WildSageSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectEmoteCough: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
# Simple brewing (~50% Empty)
- type: reaction
id: CP14BloodGrassBrewing
minTemp: 300
priority: 2
reactants:
CP14Blood:
amount: 0.5
CP14BloodGrassSap:
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectHealBrute: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -300
- type: reaction
id: CP14AgaricShroomBrewing
minTemp: 350
priority: 2
reactants:
CP14AgaricMushroom:
amount: 1
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectDamagePoison: 0.25
CP14BasicEffectRainbow: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -350
- type: reaction
id: CP14WildSageSapBrewing
minTemp: 400
priority: 2
reactants:
CP14WildSageSap:
amount: 1
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectEmoteCough: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -400