Add reaction randomization. (#308)

* Add random products datafield to the reaciton prototype.

One of the items in the list will be used as additional products as a
result of the reaction and will be persistent per round.

Resolves #245

* Another try

Add getter and setter for the reaction products field and
add random products there.

* There is no such product as CP14BasicEffectHealHeat

* Try to visualize random products in the guidebook

* experimental recipes

* fix

* file restructurization

* Guidebook alchemy update

* Update Alchemy.xml

* fix

* Update mixing_simple.yml

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
This commit is contained in:
c4llv07e
2024-08-19 18:04:12 +03:00
committed by GitHub
parent 245e111226
commit df6dbd2ac7
18 changed files with 305 additions and 33 deletions

View File

@@ -18,8 +18,11 @@
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectHealBrute: 0.25
cp14RandomProducts:
- CP14BasicEffectSatiateHunger: 0.25
- CP14BasicEffectHealBrute: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
@@ -35,8 +38,11 @@
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectHealCold: 0.25
cp14RandomProducts:
- CP14BasicEffectSatiateHunger: 0.25
- CP14BasicEffectHealCold: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
@@ -52,8 +58,11 @@
amount: 0.5
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectSatiateHunger: 0.5
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectHealPoison: 0.25
cp14RandomProducts:
- CP14BasicEffectSatiateHunger: 0.25
- CP14BasicEffectHealPoison: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250

View File

@@ -20,8 +20,8 @@
products:
CP14BasicEffectEmpty: 0.25
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectSatiateHunger: 0.25
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectSatiateHunger: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
@@ -41,4 +41,4 @@
CP14BasicEffectVomit: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
addTemperature: -250

View File

@@ -17,7 +17,9 @@
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectDamagePoison: 0.25
CP14BasicEffectRainbow: 0.25
cp14RandomProducts:
- CP14BasicEffectVomit: 0.25
- CP14BasicEffectRainbow: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
@@ -32,7 +34,9 @@
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectHealBrute: 0.25
CP14BasicEffectEmoteCough: 0.25
cp14RandomProducts:
- CP14BasicEffectEmoteCough: 0.25
- CP14BasicEffectHealCold: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250
@@ -59,8 +63,10 @@
amount: 1
products:
CP14BasicEffectEmpty: 0.5
CP14BasicEffectRainbow: 0.25
CP14BasicEffectVomit: 0.25
cp14RandomProducts:
- CP14BasicEffectRainbow: 0.25
- CP14BasicEffectEmoteCough: 0.25
effects:
- !type:CP14AffectSolutionTemperature
addTemperature: -250

View File

@@ -1,7 +1,7 @@
- type: reaction
id: CP14MeltingFail
minTemp: 1000
minTemp: 800
reactants:
CP14BasicEffectEmpty:
amount: 1

View File

@@ -18,8 +18,10 @@
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectRainbow: 0.25
CP14BasicEffectDamageBrute: 0.25
cp14RandomProducts:
- CP14BasicEffectRainbow: 0.25
- CP14BasicEffectDamageBrute: 0.25
- type: reaction
id: CP14HealBruteSplitting
@@ -46,8 +48,10 @@
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectHealBrute: 0.25
cp14RandomProducts:
- CP14BasicEffectEmoteCough: 0.25
- CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14SatiateThirstSplitting
@@ -60,8 +64,10 @@
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectHealBrute: 0.25
cp14RandomProducts:
- CP14BasicEffectEmoteCough: 0.25
- CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14EmoteCoughSplitting
@@ -75,7 +81,9 @@
amount: 0.25
products:
CP14BasicEffectSatiateThirst: 0.25
CP14BasicEffectHealBrute: 0.25
cp14RandomProducts:
- CP14BasicEffectSatiateThirst: 0.25
- CP14BasicEffectHealBrute: 0.25
- type: reaction
id: CP14RainbowSplitting
@@ -88,8 +96,10 @@
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectSatiateThirst: 0.25
CP14BasicEffectHealCold: 0.25
cp14RandomProducts:
- CP14BasicEffectSatiateThirst: 0.25
- CP14BasicEffectHealCold: 0.25
- type: reaction
id: CP14VomitSplitting
@@ -102,8 +112,10 @@
CP14BasicEffectEmpty:
amount: 0.25
products:
CP14BasicEffectEmoteCough: 0.25
CP14BasicEffectDamagePoison: 0.25
cp14RandomProducts:
- CP14BasicEffectEmoteCough: 0.25
- CP14BasicEffectDamagePoison: 0.25
- type: reaction
id: CP14EmptySplitting