1
0
Fork 0
mirror of https://gitlab.com/echtnurich/windozexp-enhanced.git synced 2024-11-21 15:29:15 +01:00

make freezes work and not break

This commit is contained in:
echtnurich 2023-12-02 22:49:12 +01:00
parent 6f14222e1b
commit 9802857eed

View file

@ -44,6 +44,9 @@ fun refresh ()
{ {
if (freezecounter == 0) { if (freezecounter == 0) {
progress++; progress++;
if (Math.Random() > 0.99) {
freezecounter = Math.Int(Math.Random()*50);
}
} }
else { else {
freezecounter--; freezecounter--;
@ -52,10 +55,6 @@ fun refresh ()
progress = 0; progress = 0;
} }
if (Math.Random() > 0.95) {
freezecounter = Math.Random()*10*50
}
new_progress_box.image = Image("throbber-0" + progress/2 + ".png"); new_progress_box.image = Image("throbber-0" + progress/2 + ".png");
progress_box.sprite.SetImage(new_progress_box.image); progress_box.sprite.SetImage(new_progress_box.image);
progress_box.sprite.SetOpacity(1); progress_box.sprite.SetOpacity(1);