Cleanup / Armor support
This commit is contained in:
@@ -98,7 +98,7 @@ public class ForceProjector extends Block{
|
||||
|
||||
radscl = Mathf.lerpDelta(radscl, broken ? 0f : warmup, 0.05f);
|
||||
|
||||
if(Mathf.chance(Time.delta() * buildup / breakage * 0.1f)){
|
||||
if(Mathf.chanceDelta(buildup / breakage * 0.1f)){
|
||||
Fx.reactorsmoke.at(x + Mathf.range(tilesize / 2f), y + Mathf.range(tilesize / 2f));
|
||||
}
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ public class Drill extends Block{
|
||||
warmup = Mathf.lerpDelta(warmup, speed, warmupSpeed);
|
||||
progress += delta() * dominantItems * speed * warmup;
|
||||
|
||||
if(Mathf.chance(Time.delta() * updateEffectChance * warmup))
|
||||
if(Mathf.chanceDelta(updateEffectChance * warmup))
|
||||
updateEffect.at(getX() + Mathf.range(size * 2f), getY() + Mathf.range(size * 2f));
|
||||
}else{
|
||||
lastDrillSpeed = 0f;
|
||||
|
||||
@@ -101,7 +101,7 @@ public class GenericCrafter extends Block{
|
||||
totalProgress += delta();
|
||||
warmup = Mathf.lerpDelta(warmup, 1f, 0.02f);
|
||||
|
||||
if(Mathf.chance(Time.delta() * updateEffectChance)){
|
||||
if(Mathf.chanceDelta(updateEffectChance)){
|
||||
updateEffect.at(getX() + Mathf.range(size * 4f), getY() + Mathf.range(size * 4));
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user