So I started finding all the places in the code where environmental tolerances are used, but are skipped for multicellular. And it doesn’t seem that there’s too many of those. So that part of the work to support tolerances in multicellular doesn’t seem that difficult. However, writing the actual code to calculate the tolerances is a bit more tricky.
Particularly one question I have is that how should the organelle tolerances be calculated in? It’s clear that I’ll add the tolerances editor into the cell body plan editor so that the player can keep editing stuff and also adding the tolerance warnings there. But how should organelles affect things?
Should I just count up all the organelles in all cell types to average out the extra tolerance effects? Should I loop through all places cells and count up the tolerances from each individual organelle (to give more weight to cell types used more)?
As nobody said anything, I think I’ll go with just this for now:
- Count up all organelles in placed cells in the body plan
- Then add a tweak multiplier (that I’ll set to 1 for now) that can be used to tweak organelle strength on tolerances in multicellular particularly
Edit: actually, I’ll set the multiplier to 0.5 as with even 3 cells and one oxygen using part you can very easily max out the resistance with this system.
2 Likes
My apologies for missing this thread before.
My initial impulse would be that taking the effects of all cells (so cell type x number of cells of that type) would make the most physical sense, and be the logical situation for players as well.
As for the exact calculation, I see you already went with the “Add up everything” solution for now. I think that could work. But personally I think taking the average effects is the “safer” option that avoids extremes.
1 Like
That’s a good idea, I didn’t think about averaging the values. I think that will very well remove extreme values but might make the effects a bit “muted” in the stage. But for initial balance that seems more reasonable.
1 Like