summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-09-14 02:02:03 (GMT)
committer jacob1 <jfu614@gmail.com>2013-09-14 02:02:03 (GMT)
commitae8e5e5c343d033914515d72c44ad511b0aca2a3 (patch)
tree773508fe58102f43cd2d9b83d24638487e3004c0 /src/simulation/Simulation.cpp
parent830bb3ba5e37f547f836a9c793f6084b305a4bfb (diff)
downloadpowder-ae8e5e5c343d033914515d72c44ad511b0aca2a3.zip
powder-ae8e5e5c343d033914515d72c44ad511b0aca2a3.tar.gz
PROT+DEUT causes DEUT implosion (same as with NEUT, just negative pressure)
Also PHOT+H2 now also make PROT+ELEC (which will not combine to make more H2)
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 8dff706..590e528 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -2218,8 +2218,10 @@ int Simulation::try_move(int i, int x, int y, int nx, int ny)
}
else if ((r&0xFF) == PT_H2)
{
- part_change_type(i, x, y, PT_PROT);
- parts[i].ctype = 0;
+ create_part(i, x, y, PT_PROT);
+ parts[i].tmp2 = 0x1;
+ create_part(r>>8, x, y, PT_ELEC);
+ return 1;
}
}
else if (parts[i].type == PT_NEUT)