Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Ulciscor on June 10, 2005, 07:58:08 PM
-
I'm just wondering about energy shots. I know a -2 value in .shoot makes an energy shot but does the value stored in shootval dictate the energy in the shot? And does it obey the log2(shootval) rule on Wikipedia? And if so is there a way I can go backwards in the dna from the energy required in the shot to the value to be stored in shootval?
-
For -2 shots the amount sent is just what you put in shootval. Not logarithmic, but one to one.
There is also some default value for if no shootval is defined.
-
Well I must be doing something wrong then. Because I have:
-2 .shoot store
*.in1 .shootval store
and there seems to be no appreciable decrease in the bot's energy.
-
There might be a bug with the code (I rewrote all the routines not too long back).