buffbears / Weatherscan

Weatherscan Simulator orginally made by /u/AnonChickenWalker. Maintained by Goldblazez (BuffBears).
https://weatherscan.me
127 stars 30 forks source link

Health Tips Not Rotating #31

Closed Galaga81 closed 1 year ago

Galaga81 commented 2 years ago
  1. Health Tip always shows the hot car tip (summertip). The var tipidx always gets reset back to 0 when it loops.

  2. How about adding randomness instead? Tested and works: let summertipidx = Math.round(Math.random() (summertips.length-1)); let wintertipidx = Math.round(Math.random() (wintertips.length-1));

Open them like this: $('.' + summertips[summertipidx]).show(); $('.' + wintertips[wintertipidx]).show();

Then close them like this so they don't pile up: $('.' + summertips[summertipidx]).hide(); $('.' + wintertips[wintertipidx]).hide();

buffbears commented 1 year ago

I'll work on this some more, but I don't want to do it randomly as that does not repersent the real behavior.

buffbears commented 1 year ago

Fixed in latest update.