Fixed volcano lava chunks

Maikel de Vries 2012-10-30 21:01:04 +01:00
parent cb15430464
commit 9ad28f470e
2 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,8 @@ private func Erupt()
// Cast other particles (lava chunks, ashes, ashclouds).
if (!Random(6))
CastObjects(LavaChunk, 1, 60, 0, 0, 0, 40);
if (WildcardMatch(MaterialName(mat), "*Lava*"))
CastObjects(LavaChunk, 1, 60, 0, 0, 0, 40);
// Reduce strength.
if(!Random(3))

View File

@ -44,7 +44,7 @@ func Initialize()
// Some natural disasters, earthquakes, volcanos, meteorites.
Meteor->SetChance(15);
Earthquake->SetChance(2);
Volcano->SetChance(0);
Volcano->SetChance(4);
Volcano->SetMaterial("DuroLava");
// Vegetation.