Skip to content

Commit

Permalink
Make molten ROCK produce vertical clusters of GOLD (fixes #762)
Browse files Browse the repository at this point in the history
Also make GOLD veins spread out a bit more.
  • Loading branch information
LBPHacker committed Feb 17, 2021
1 parent 4b7e85c commit 92cb505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/elements/FIRE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ int Element_FIRE_update(UPDATE_FUNC_ARGS)
}
}

if (parts[ID(r)].ctype == PT_GOLD && parts[i].tmp == 0 && pres >= 50 && RNG::Ref().chance(1, 10000)) // Produce GOLD veins/clusters
if (parts[ID(r)].ctype == PT_GOLD && parts[ID(r)].tmp == 0 && pres >= 50 && RNG::Ref().chance(1, 10000)) // Produce GOLD veins/clusters
{
parts[i].ctype = PT_GOLD;
if (rx) // Trend veins vertical
if (rx > 1 || rx < -1) // Trend veins vertical
parts[i].tmp = 1;
}
}
Expand Down

0 comments on commit 92cb505

Please sign in to comment.