diff options
Diffstat (limited to 'src/simulation/elements/SHLD1.cpp')
| -rw-r--r-- | src/simulation/elements/SHLD1.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/SHLD1.cpp b/src/simulation/elements/SHLD1.cpp index 605180a..2920add 100644 --- a/src/simulation/elements/SHLD1.cpp +++ b/src/simulation/elements/SHLD1.cpp @@ -59,7 +59,7 @@ int Element_SHLD1::update(UPDATE_FUNC_ARGS) continue; else if ((r&0xFF)==PT_SPRK&&parts[i].life==0) { - if (55>rand()%200&&parts[i].life==0) + if (11>rand()%40) { sim->part_change_type(i,x,y,PT_SHLD2); parts[i].life = 7; @@ -74,7 +74,7 @@ int Element_SHLD1::update(UPDATE_FUNC_ARGS) } } } - else if ((r&0xFF)==PT_SHLD3&&4>rand()%10) + else if ((r&0xFF)==PT_SHLD3&&2>rand()%5) { sim->part_change_type(i,x,y,PT_SHLD2); parts[i].life = 7; @@ -85,4 +85,4 @@ int Element_SHLD1::update(UPDATE_FUNC_ARGS) -Element_SHLD1::~Element_SHLD1() {}
\ No newline at end of file +Element_SHLD1::~Element_SHLD1() {} |
