Introduce a little bit of variation in block break particle sizes. (still not right sizes and random)

This commit is contained in:
UnknownShadow200 2017-11-17 00:05:10 +11:00
parent a457166aae
commit ac356859e5
2 changed files with 4 additions and 2 deletions

View File

@ -217,7 +217,8 @@ namespace ClassicalSharp.Particles {
p.texLoc = (byte)texLoc;
p.block = block;
p.Size = 8;
int type = rnd.Next(0, 30);
p.Size = (byte)(type >= 28 ? 12 : (type >= 25 ? 10 : 8));
}
}

View File

@ -386,7 +386,8 @@ void Particles_BreakBlockEffect(Vector3I coords, BlockID oldBlock, BlockID block
p->Rec = rec;
p->TexLoc = (TextureLoc)texLoc;
p->Block = block;
p->Base.Size = 8;
Int32 type = Random_Range(&rnd, 0, 30);
p->Base.Size = (UInt8)(type >= 28 ? 12 : (type >= 25 ? 10 : 8));
}
}