summaryrefslogtreecommitdiff
path: root/src/simulation/elements/EXOT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/EXOT.cpp')
-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))