change energy gain
@@ -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 zero11
currentSensorSignal: 0, //only used for sensors, else forever zero12
lastSum: 0, //used for debug purposes12
lastSum: 0, //used for debug purposes13
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
},