Skip to content

Commit

Permalink
Glucose Consumption & Storage Balance Tweaks (#5659)
Browse files Browse the repository at this point in the history
* Glucose Consumption & Storage Balance Tweaks

* UTF-8 with signature

* Make eukaryotic variant of toxin vacuole follow the prokaryotic

variant in that it has a bit of storage

* Bump vacuole storage to make it feel like a big help

to the lesser storage space

* Make flagellum not give any storage like the pilus

* Slightly reduce efficiency of chromatophore to make it more in line with chloroplasts

as that was nerfed a lot in an earlier commit, this now makes it so that it is again more than 3x the glucose production than the simple part meaning that it is a useful unlock

* Show more decimals in storage stat

as there can now be a lot smaller values which would get rounded too much

* Make vacuole storage slightly less

---------

Co-authored-by: Henri Hyyryläinen <henri.hyyrylainen@gmail.com>
  • Loading branch information
Deus-Codes and hhyyrylainen authored Nov 20, 2024
1 parent 1939406 commit c7538ec
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
2 changes: 1 addition & 1 deletion simulation_parameters/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public static class Constants

public const float SPRINTING_FORCE_MULTIPLIER = 1.8f;

public const float FLAGELLA_ENERGY_COST = 6.0f;
public const float FLAGELLA_ENERGY_COST = 4.0f;

public const float FLAGELLA_BASE_FORCE = 20.0f;

Expand Down
6 changes: 3 additions & 3 deletions simulation_parameters/microbe_stage/bio_processes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Name": "RESPIRATION",
"Inputs": {
"oxygen": 1,
"glucose": 0.15
"glucose": 0.10
},
"Outputs": {
"atp": 110,
Expand Down Expand Up @@ -38,7 +38,7 @@
"carbondioxide": 0.27
},
"Outputs": {
"glucose": 0.48,
"glucose": 0.3,
"oxygen": 0.27
}
},
Expand Down Expand Up @@ -217,7 +217,7 @@
"carbondioxide": 0.081
},
"Outputs": {
"glucose": 0.036,
"glucose": 0.03,
"oxygen": 0.081
}
},
Expand Down
39 changes: 18 additions & 21 deletions simulation_parameters/microbe_stage/organelles.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Enzymes": {
Expand Down Expand Up @@ -113,7 +113,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1100,
Expand Down Expand Up @@ -190,7 +190,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1100,
Expand Down Expand Up @@ -225,7 +225,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 1
},
"AgentVacuole": {
"Process": "bacterial_cytotoxinSynthesis",
Expand Down Expand Up @@ -325,7 +325,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1200,
Expand Down Expand Up @@ -367,7 +367,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1100,
Expand Down Expand Up @@ -409,7 +409,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1100,
Expand Down Expand Up @@ -446,7 +446,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.5
}
},
"Density": 1100,
Expand Down Expand Up @@ -480,7 +480,7 @@
},
"Components": {
"Storage": {
"Capacity": 0.5
"Capacity": 0.25
}
},
"Density": 1200,
Expand Down Expand Up @@ -527,7 +527,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.25
}
},
"Density": 1100,
Expand Down Expand Up @@ -556,9 +556,6 @@
],
"Processes": {},
"Components": {
"Storage": {
"Capacity": 0.5
},
"Movement": {
"Momentum": 50
}
Expand Down Expand Up @@ -608,7 +605,7 @@
"Processes": {},
"Components": {
"Storage": {
"Capacity": 8
"Capacity": 5
}
},
"Density": 1200,
Expand Down Expand Up @@ -646,7 +643,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.5
}
},
"Density": 1100,
Expand Down Expand Up @@ -693,7 +690,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 1.5
},
"AgentVacuole": {
"Process": "cytotoxinSynthesis",
Expand Down Expand Up @@ -842,7 +839,7 @@
},
"Components": {
"Storage": {
"Capacity": 1.5
"Capacity": 0.5
}
},
"Density": 1200,
Expand Down Expand Up @@ -884,7 +881,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.5
}
},
"Density": 1000,
Expand Down Expand Up @@ -951,7 +948,7 @@
"Processes": {},
"Components": {
"Storage": {
"Capacity": 4
"Capacity": 2
}
},
"FeatureTags": [
Expand Down Expand Up @@ -1124,7 +1121,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.5
}
},
"Density": 1200,
Expand Down Expand Up @@ -1269,7 +1266,7 @@
},
"Components": {
"Storage": {
"Capacity": 1
"Capacity": 0.5
}
},
"Enzymes": {
Expand Down
3 changes: 2 additions & 1 deletion src/microbe_stage/editor/CellEditorComponent.GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ private void UpdateHitpoints(float hp)

private void UpdateStorage(float nominalStorage, Dictionary<Compound, float> storage)
{
storageLabel.Value = (float)Math.Round(nominalStorage, 1);
// Storage values can be as low as 0.25 so 2 decimals are needed
storageLabel.Value = MathF.Round(nominalStorage, 2);

if (storage.Count == 0)
{
Expand Down

0 comments on commit c7538ec

Please sign in to comment.