Bots and Simulations > DNA - General

Energy shots

(1/1)

Ulciscor:
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?

Numsgil:
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.

Ulciscor:
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.

Numsgil:
There might be a bug with the code (I rewrote all the routines not too long back).

Navigation

[0] Message Index

Go to full version