This commit is contained in:
Anuken
2020-11-11 12:45:30 -05:00
parent d909683f1d
commit 529bae8972
3 changed files with 10 additions and 3 deletions

View File

@@ -34,9 +34,7 @@ abstract class FireComp implements Timedc, Posc, Firec, Syncc{
Fx.fireSmoke.at(x + Mathf.range(4f), y + Mathf.range(4f));
}
if(Mathf.chance(0.001 * Time.delta)){
Sounds.fire.at(this);
}
loops.play(Sounds.fire, this, 0.07f);
time = Mathf.clamp(time + Time.delta, 0, lifetime());