Skip to content

Commit

Permalink
new reaction suggested by Skylark: RFRG+NEUT=GAS/CAUS
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jun 12, 2017
1 parent 32d834c commit 694bc6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/simulation/elements/NEUT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
@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;
}
Expand Down

0 comments on commit 694bc6a

Please sign in to comment.