Skip to content

Commit

Permalink
cytoplasm is now only .1 mass again, however, set it up so that the g…
Browse files Browse the repository at this point in the history
…ame starts all cells out with a mass of .7 before adding all their organelles mass to compensate.
  • Loading branch information
Untrustedlife authored and hhyyrylainen committed Feb 15, 2019
1 parent eddd88a commit 0e3758a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/microbe_stage/microbe_operations.as
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,8 @@ ObjectID spawnBacteria(CellStageWorld@ world, Float3 pos, const string &in speci
void _applyMicrobeCollisionShape(CellStageWorld@ world, Physics@ rigidBody,
MicrobeComponent@ microbeComponent, PhysicsShape@ shape)
{
float mass = 0.f;
// This compensates for the lack of a nucleus for the player cell at the beginning and makes eukaryotes alot heavier.
float mass = 0.7f;

// Organelles
for(uint i = 0; i < microbeComponent.organelles.length(); ++i){
Expand Down
2 changes: 1 addition & 1 deletion scripts/microbe_stage/organelle_table.as
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void setupOrganelles(){
// Cytoplasm
auto cytoplasmParameters = OrganelleParameters("cytoplasm");

cytoplasmParameters.mass = 0.7;
cytoplasmParameters.mass = 0.1;
cytoplasmParameters.gene = "Y";
cytoplasmParameters.mesh = ""; //it's an empty hex
cytoplasmParameters.chanceToCreate = 1;
Expand Down

0 comments on commit 0e3758a

Please sign in to comment.