Make QRTZ slightly change color while growing (#852)

This commit is contained in:
Rebmiami 2022-08-11 04:20:33 +00:00 committed by GitHub
parent 8763d6e75f
commit ae32470c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{