Permalink
Browse files

new reaction suggested by Skylark: RFRG+NEUT=GAS/CAUS

  • Loading branch information...
jacob1 committed Jun 12, 2017
1 parent 32d834c commit 694bc6a9cb370864ba32a581547a9b6af6ad4c16
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/simulation/elements/NEUT.cpp
@@ -164,6 +164,12 @@ int Element_NEUT::update(UPDATE_FUNC_ARGS)
if (!(rand()%20))
parts[r>>8].life = 1500;
break;
case PT_RFRG:
if (rand()%2)
sim->create_part(r>>8, x+rx, y+ry, PT_GAS);
else
sim->create_part(r>>8, x+rx, y+ry, PT_CAUS);
break;

This comment has been minimized.

@iczero

iczero Jun 12, 2017

Contributor

The reverse reaction wouldn't really make sense, and may cause a lot of loops (NEUT hits RFRG, the RFRG turns into CAUS, another NEUT hits the CAUS again and it goes back to RFRG). Also, I don't see (realistically) why RFRG would be dissolved by CAUS or ACID.

default:
break;
}

0 comments on commit 694bc6a

Please sign in to comment.