Author Topic: Energy shots  (Read 3945 times)

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Energy shots
« 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?
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Energy shots
« Reply #1 on: June 10, 2005, 08:02:17 PM »
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.

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
Energy shots
« Reply #2 on: June 10, 2005, 08:05:09 PM »
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.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Energy shots
« Reply #3 on: June 11, 2005, 01:46:43 AM »
There might be a bug with the code (I rewrote all the routines not too long back).