Make QRTZ slightly change color while growing

This commit is contained in:
Rebmiami 2022-08-07 23:29:01 -04:00 committed by Tamás Bálint Misius
parent 8763d6e75f
commit cf74f42604
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -104,6 +104,10 @@ int Element_QRTZ_update(UPDATE_FUNC_ARGS)
{
parts[np].temp = parts[i].temp;
parts[np].tmp2 = parts[i].tmp2;
if (RNG::Ref().chance(1, 2))
{
parts[np].tmp2 = std::clamp(parts[np].tmp2 + RNG::Ref().between(-1, 1), 0, 10);
}
parts[i].tmp--;
if (t == PT_PQRT)
{