mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Introduce a little bit of variation in block break particle sizes. (still not right sizes and random)
This commit is contained in:
parent
a457166aae
commit
ac356859e5
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user