Skip to content

Commit

Permalink
mutateCode now takes in isBacteria
Browse files Browse the repository at this point in the history
commented out setMass code for now. It was hacky anyway.

ai no longer has speed boost (the x10 was what was causing the issue previously)

just got rid of redundant if statement completely
  • Loading branch information
Untrustedlife authored and hhyyrylainen committed May 14, 2019
1 parent 9ff472d commit f54e1e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/microbe_stage/configs.as
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const auto FLAGELLA_BASE_FORCE = 0.7f;
const auto CELL_BASE_THRUST = 1.6f;

// is set by this and modified by applyCellMovement like the player later
const auto AI_BASE_MOVEMENT = 1.6f;
const auto AI_BASE_MOVEMENT = 1.0f;
const auto AI_FOCUSED_MOVEMENT = 1.0f;

//! The drag force is calculated by taking the current velocity and multiplying it by this.
Expand Down
5 changes: 0 additions & 5 deletions scripts/microbe_stage/microbe_operations.as
Original file line number Diff line number Diff line change
Expand Up @@ -919,11 +919,6 @@ ObjectID spawnMicrobe(CellStageWorld@ world, Float3 pos, const string &in specie
auto speciesEntity = findSpeciesEntityByName(world, speciesName);
auto species = world.GetComponent_SpeciesComponent(speciesEntity);

if (species.isBacteria)
{
physics.Body.SetMass(physics.Body.Mass * 10);
}

physics.JumpTo(microbePos);

// Try setting the position immediately as well (as otherwise it
Expand Down
2 changes: 1 addition & 1 deletion scripts/microbe_stage/species_system.as
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class Species{
parent.colour.W + randomMutationColourChannel());
}

this.stringCode = mutateMicrobe(parent.stringCode,false);
this.stringCode = mutateMicrobe(parent.stringCode,isBacteria);


generateMembranes(parent);
Expand Down

0 comments on commit f54e1e1

Please sign in to comment.