Hi guys. I’m on stream now adding a “tip of the day” feature. Basically this is a message that will pop up in the loading screen, for example: “Your settlers will get a better night sleep if you provide beds for them.”,
If you have a suggested tip, please add it to this thread. I’ll compile all the tips into our big list o’ tips to add to the game.
I thought something looked fishy about this during the stream. Is there a category for future bugs?
random will never be 0. That means the first tip in your array will never display.
Gives 1, 2, 3 as possible values (what your code is doing)
Math.ceil(Math.random() * (['a','b','c','d'].length - 1));
Gives 0, 1, 2, 3 as possible values (use floor and remove the -1)
Math.floor(Math.random() * (['a','b','c','d'].length));
Merry Christmas, @Tom!