Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Elite on November 19, 2006, 01:37:02 PM

Title: .vshoot not affecting virus range
Post by: Elite on November 19, 2006, 01:37:02 PM
.vshoot doesn't seem to affect the range of virus shots. All viruses, whether they're ...

cond
start
 *.thisgene .mkvirus store
 1 .vshoot store
stop

... or ...

cond
start
 *.thisgene .mkvirus store
 100 .vshoot store
stop

... have exactly the same range. Even if a bot is storing values upwards of 10,000 into .vshoot, the virus doesn't go any further.
Title: .vshoot not affecting virus range
Post by: Numsgil on November 19, 2006, 02:11:42 PM
This was a bug at one point, but I thought it was fixed.

Apparently not
Title: .vshoot not affecting virus range
Post by: EricL on November 19, 2006, 09:10:20 PM
The shot range was not being set in VShoot().  Fixed in 2.42.9b.

Note, it's not clear what the relationship between .vhsoot and the virus shot range should be.  For now, I add 1/2 the vshoot value in cycles to the normal 11 cycle lifespan of the virus shot.  Thus a a .vshoot value of 100 will make the shot last 61 cycles.  If someone else has a better suggestion as to the relationship between .vhsoot and virus shoot range, let me know.