Changeset 488
- Timestamp:
- 03/27/16 12:31:03 (9 years ago)
- Location:
- experiments/frams/foraminifera/data/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r487 r488 148 148 //nutrients 149 149 changePeriod = 0; 150 phase = " high";150 phase = "low"; 151 151 ExpProperties.foodperiod = 3600; 152 152 ExpProperties.foodPeriodChange = 0; … … 158 158 ExpState.totaltestedcr = 0; 159 159 ExpState.nutrient = ""; 160 161 addSpecies({"min_repro_energies" : [4,6]}); 162 addSpecies({"min_repro_energies" : [4,8]}); 160 163 } 161 164 … … 233 236 } 234 237 //add new foram with random energy bewtween starting energy and reproduction treshold 235 addForam(species, iter, Math.rndUni(0,species_genes[species]->min_repro_energies[ploid]),ploid);238 addForam(species, iter, int(Math.rndUni(0,species_genes[species]->min_repro_energies[ploid])),ploid); 236 239 } 237 240 -
experiments/frams/foraminifera/data/scripts/foraminifera.inc
r487 r488 243 243 function foramReproduce(cr) 244 244 { 245 var properEnergy = cr.energy >= energyFromVolume(max_chamber_volume[ 0][getGene(cr, "min_repro_energies",0)[cr.data->lifeparams->gen]],0);245 var properEnergy = cr.energy >= energyFromVolume(max_chamber_volume[cr.data->lifeparams->gen][getGene(cr, "min_repro_energies",0)[cr.data->lifeparams->gen]],0); 246 246 var reproduced = 0; 247 247
Note: See TracChangeset
for help on using the changeset viewer.