I've been writing a bot (Rapeseed) that's supposed to shoot sperm at other bots when attacked and force sexual reproduction, and if its gene appears in the child bot then it deletes the other genes, becoming a clone of Rapeseed, if you see what I mean. It isn't working. The attacker bot is fertilized and .sexrepro is set to 99, but it refuses to undergo sexual reproduction. The memory locations .fertilized and .sexrepro then become fixed at (usually) 9 and 99 respectively after Rapeseed is dead. To my knowledge, that isn't meant to happen.
Is this a bug, or does sexual reproduction perhaps only work between bots of the same species?
Edit: Here's the DNA of Rapeseed so far, just in case it's something to do with that.
'Rapeseed
def forcerep 100
start
*.thisgene 2 sub -1 mult 0 floor 2 mult *.thisgene 1 sub sgn add *.genes 1 sub sgn mult .delgene store
16000 *.chlr sub abs .mkchlr 16000 *.chlr sub sgn 0 floor mult .rmchlr *.chlr 16000 sub sgn 0 floor mult add store
*.nrg *.body sub abs .strbody *.nrg *.body sub sgn 0 floor mult .fdbody *.body *.nrg sub sgn 0 floor mult add store
.aimdx inc
*.nrg 5000 sub sgn 0 floor 50 mult .repro store
*.shang *.shflav sgn abs mult .aimshoot store
*.forcerep 1 sub abs .forcerep store
-8 *.forcerep 1 sub abs mult .sexrepro *.forcerep mult add *.shflav abs sgn mult .shoot store
99 *.forcerep mult .shootval store
stop