Skip to content

Commit c7538ec

Browse files
Glucose Consumption & Storage Balance Tweaks (#5659)
* 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 <[email protected]>
1 parent 1939406 commit c7538ec

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed

simulation_parameters/Constants.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public static class Constants
217217

218218
public const float SPRINTING_FORCE_MULTIPLIER = 1.8f;
219219

220-
public const float FLAGELLA_ENERGY_COST = 6.0f;
220+
public const float FLAGELLA_ENERGY_COST = 4.0f;
221221

222222
public const float FLAGELLA_BASE_FORCE = 20.0f;
223223

simulation_parameters/microbe_stage/bio_processes.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Name": "RESPIRATION",
44
"Inputs": {
55
"oxygen": 1,
6-
"glucose": 0.15
6+
"glucose": 0.10
77
},
88
"Outputs": {
99
"atp": 110,
@@ -38,7 +38,7 @@
3838
"carbondioxide": 0.27
3939
},
4040
"Outputs": {
41-
"glucose": 0.48,
41+
"glucose": 0.3,
4242
"oxygen": 0.27
4343
}
4444
},
@@ -217,7 +217,7 @@
217217
"carbondioxide": 0.081
218218
},
219219
"Outputs": {
220-
"glucose": 0.036,
220+
"glucose": 0.03,
221221
"oxygen": 0.081
222222
}
223223
},

simulation_parameters/microbe_stage/organelles.json

+18-21
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
},
7575
"Components": {
7676
"Storage": {
77-
"Capacity": 0.5
77+
"Capacity": 0.25
7878
}
7979
},
8080
"Enzymes": {
@@ -113,7 +113,7 @@
113113
},
114114
"Components": {
115115
"Storage": {
116-
"Capacity": 0.5
116+
"Capacity": 0.25
117117
}
118118
},
119119
"Density": 1100,
@@ -190,7 +190,7 @@
190190
},
191191
"Components": {
192192
"Storage": {
193-
"Capacity": 0.5
193+
"Capacity": 0.25
194194
}
195195
},
196196
"Density": 1100,
@@ -225,7 +225,7 @@
225225
},
226226
"Components": {
227227
"Storage": {
228-
"Capacity": 0.5
228+
"Capacity": 1
229229
},
230230
"AgentVacuole": {
231231
"Process": "bacterial_cytotoxinSynthesis",
@@ -325,7 +325,7 @@
325325
},
326326
"Components": {
327327
"Storage": {
328-
"Capacity": 0.5
328+
"Capacity": 0.25
329329
}
330330
},
331331
"Density": 1200,
@@ -367,7 +367,7 @@
367367
},
368368
"Components": {
369369
"Storage": {
370-
"Capacity": 0.5
370+
"Capacity": 0.25
371371
}
372372
},
373373
"Density": 1100,
@@ -409,7 +409,7 @@
409409
},
410410
"Components": {
411411
"Storage": {
412-
"Capacity": 0.5
412+
"Capacity": 0.25
413413
}
414414
},
415415
"Density": 1100,
@@ -446,7 +446,7 @@
446446
},
447447
"Components": {
448448
"Storage": {
449-
"Capacity": 1
449+
"Capacity": 0.5
450450
}
451451
},
452452
"Density": 1100,
@@ -480,7 +480,7 @@
480480
},
481481
"Components": {
482482
"Storage": {
483-
"Capacity": 0.5
483+
"Capacity": 0.25
484484
}
485485
},
486486
"Density": 1200,
@@ -527,7 +527,7 @@
527527
},
528528
"Components": {
529529
"Storage": {
530-
"Capacity": 1
530+
"Capacity": 0.25
531531
}
532532
},
533533
"Density": 1100,
@@ -556,9 +556,6 @@
556556
],
557557
"Processes": {},
558558
"Components": {
559-
"Storage": {
560-
"Capacity": 0.5
561-
},
562559
"Movement": {
563560
"Momentum": 50
564561
}
@@ -608,7 +605,7 @@
608605
"Processes": {},
609606
"Components": {
610607
"Storage": {
611-
"Capacity": 8
608+
"Capacity": 5
612609
}
613610
},
614611
"Density": 1200,
@@ -646,7 +643,7 @@
646643
},
647644
"Components": {
648645
"Storage": {
649-
"Capacity": 1
646+
"Capacity": 0.5
650647
}
651648
},
652649
"Density": 1100,
@@ -693,7 +690,7 @@
693690
},
694691
"Components": {
695692
"Storage": {
696-
"Capacity": 1
693+
"Capacity": 1.5
697694
},
698695
"AgentVacuole": {
699696
"Process": "cytotoxinSynthesis",
@@ -842,7 +839,7 @@
842839
},
843840
"Components": {
844841
"Storage": {
845-
"Capacity": 1.5
842+
"Capacity": 0.5
846843
}
847844
},
848845
"Density": 1200,
@@ -884,7 +881,7 @@
884881
},
885882
"Components": {
886883
"Storage": {
887-
"Capacity": 1
884+
"Capacity": 0.5
888885
}
889886
},
890887
"Density": 1000,
@@ -951,7 +948,7 @@
951948
"Processes": {},
952949
"Components": {
953950
"Storage": {
954-
"Capacity": 4
951+
"Capacity": 2
955952
}
956953
},
957954
"FeatureTags": [
@@ -1124,7 +1121,7 @@
11241121
},
11251122
"Components": {
11261123
"Storage": {
1127-
"Capacity": 1
1124+
"Capacity": 0.5
11281125
}
11291126
},
11301127
"Density": 1200,
@@ -1269,7 +1266,7 @@
12691266
},
12701267
"Components": {
12711268
"Storage": {
1272-
"Capacity": 1
1269+
"Capacity": 0.5
12731270
}
12741271
},
12751272
"Enzymes": {

src/microbe_stage/editor/CellEditorComponent.GUI.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ private void UpdateHitpoints(float hp)
221221

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

226227
if (storage.Count == 0)
227228
{

0 commit comments

Comments
 (0)