summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-16 19:09:17 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-16 19:09:17 (GMT)
commit751da54183acb5f7dae94e815aec1e0daf7bbd36 (patch)
treef4658460f602dcbd840d2592efca61e834b2e51f /src
parent242f4bcdf63a29075f03308552ac2d02e93b0d92 (diff)
downloadpowder-751da54183acb5f7dae94e815aec1e0daf7bbd36.zip
powder-751da54183acb5f7dae94e815aec1e0daf7bbd36.tar.gz
make making VIBR from molten TTAN+EXOT a little easier (molten VIBR slowly kills EXOT)
Diffstat (limited to 'src')
-rw-r--r--src/simulation/elements/EXOT.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/simulation/elements/EXOT.cpp b/src/simulation/elements/EXOT.cpp
index 2746695..df075e0 100644
--- a/src/simulation/elements/EXOT.cpp
+++ b/src/simulation/elements/EXOT.cpp
@@ -70,11 +70,22 @@ int Element_EXOT::update(UPDATE_FUNC_ARGS) {
}
else if (rt == PT_LAVA)
{
- if ((parts[r>>8].ctype == PT_TTAN || parts[r>>8].ctype == PT_GOLD) && !(rand()%10))
+ if (parts[r>>8].ctype == PT_TTAN || parts[r>>8].ctype == PT_GOLD)
{
- parts[r>>8].ctype = PT_VIBR;
- sim->kill_part(i);
- return 1;
+ if (!(rand()%10))
+ {
+ parts[r>>8].ctype = PT_VIBR;
+ sim->kill_part(i);
+ return 1;
+ }
+ }
+ else if (parts[r>>8].ctype == PT_VIBR)
+ {
+ if (1>rand()%1000)
+ {
+ sim->kill_part(i);
+ return 1;
+ }
}
}
if ((parts[i].tmp>245) && (parts[i].life>1000))