BlueGit

blue-star cellular-evolution

change energy gain

timfa Tim · pushed by timfa

Authored 2021-10-16 · 5 years ago

Hash
c8ac507a51163dff666c6291a7971cb51436a40a
Parent
52679633
1 file changed +3 −3
src/cell.js +3 −3
@@ -10,8 +10,8 @@ var cell =
10 10 cellRef: -1,
11 11 currentSensorSignal: 0, //only used for sensors, else forever zero
12 12 lastSum: 0, //used for debug purposes
13 energy: 100,
14 maxEnergy: 100,
13 energy: 1,
14 maxEnergy: 1,
15 15 debugShouldDraw: false,
16 16
17 17 start: function()
@@ -58,7 +58,7 @@ var cell =
58 58 if(other.parentCreature == this.parentCreature)
59 59 return;
60 60
61 this.parentCreature.gainEnergy(10);
61 this.parentCreature.gainEnergy(this.maxEnergy / 3);
62 62 other.destroy();
63 63 }
64 64 },
@@ -10,8 +10,8 @@ var cell =
10 cellRef: -1,
10 cellRef: -1,
11 currentSensorSignal: 0, //only used for sensors, else forever zero
11 currentSensorSignal: 0, //only used for sensors, else forever zero
12 lastSum: 0, //used for debug purposes
12 lastSum: 0, //used for debug purposes
13 energy: 100,
13 energy: 1,
14 maxEnergy: 100,
14 maxEnergy: 1,
15 debugShouldDraw: false,
15 debugShouldDraw: false,
16
16
17 start: function()
17 start: function()
@@ -58,7 +58,7 @@ var cell =
58 if(other.parentCreature == this.parentCreature)
58 if(other.parentCreature == this.parentCreature)
59 return;
59 return;
60
60
61 this.parentCreature.gainEnergy(10);
61 this.parentCreature.gainEnergy(this.maxEnergy / 3);
62 other.destroy();
62 other.destroy();
63 }
63 }
64 },
64 },