Changeset 504 for experiments/frams
- Timestamp:
- 05/05/16 00:08:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r502 r504 482 482 { 483 483 //percent of maximal energy 484 cr.energy _m += (ExpProperties.energy_move * cr.data->lifeparams->max_energy_level)*ExpProperties.secPerStep;484 cr.energy -= (ExpProperties.energy_move * cr.data->lifeparams->max_energy_level)*ExpProperties.secPerStep; 485 485 } 486 486 } … … 552 552 //Simulator.print("transferring "+e +"("+e*ExpProperties.ingestion+")"+" to "+cr1.name +" ("+ cr1.energy+") " +" from "+cr2.uid+" ("+cr2.energy+") "+ e/ExpProperties.secPerStep+ " per sec"); 553 553 cr2.energy -= (e + 0.0000001); 554 cr1.energy _p+= e*ExpProperties.ingestion;554 cr1.energy += e*ExpProperties.ingestion; 555 555 if (cr1.data->lifeparams->hibernated == 1) 556 556 { … … 606 606 cr.data->lifeparams->chamber_growth = Math.max(cr.data->lifeparams->chamber_growth-1,0); 607 607 //Simulator.print("chamber growing, time left = " + cr.data->lifeparams->chamber_growth*ExpProperties.secPerStep); 608 cr.energy _m += ExpProperties.chamberCostPerSec * cr.energy * ExpProperties.secPerStep;608 cr.energy -= ExpProperties.chamberCostPerSec * cr.energy * ExpProperties.secPerStep; 609 609 610 610 //Simulator.print("energy " + cr2.energy + " subtracting " + growth_cost);
Note: See TracChangeset
for help on using the changeset viewer.