diff options
Diffstat (limited to 'src/elements/coal.c')
| -rw-r--r-- | src/elements/coal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/elements/coal.c b/src/elements/coal.c index 3cc68e3..c73f49c 100644 --- a/src/elements/coal.c +++ b/src/elements/coal.c @@ -30,6 +30,13 @@ int update_COAL(UPDATE_FUNC_ARGS) { parts[i].life = 99; } } + if ((r&0xFF)==PT_LAVA && 1>(rand()%500)) + { + if (parts[r>>8].ctype == PT_IRON) { + parts[r>>8].ctype = PT_METL; + kill_part(i); + } + } } return 0; } |
