Changes

846 bytes added ,  21:38, 8 September 2022
Line 36: Line 36:  
:The info on the page is correct; I added a code reference for future questions. Thanks, [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 15:22, 15 July 2022 (UTC)
 
:The info on the page is correct; I added a code reference for future questions. Thanks, [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 15:22, 15 July 2022 (UTC)
 
::Hello, I believe you made a mistake with the odds. I also checked the code, and the line in question is "if (Game1.random.NextDouble() < 0.001". Since NextDouble() generates a number between 0 and 1, shouldn't it be 0.001 * 100 = 0.1%? A 1/1000 chance would also make far more sense with most players observing ufos relatively frequently, not at all as infrequently as you would expect if the odds were really 0.001% or 1/10,000. The rain and 28th parts do seem to be correct. [[User:LordOfSpamAlot|LordOfSpamAlot]] ([[User talk:LordOfSpamAlot|talk]]) 09:59, 8 September 2022 (UTC)
 
::Hello, I believe you made a mistake with the odds. I also checked the code, and the line in question is "if (Game1.random.NextDouble() < 0.001". Since NextDouble() generates a number between 0 and 1, shouldn't it be 0.001 * 100 = 0.1%? A 1/1000 chance would also make far more sense with most players observing ufos relatively frequently, not at all as infrequently as you would expect if the odds were really 0.001% or 1/10,000. The rain and 28th parts do seem to be correct. [[User:LordOfSpamAlot|LordOfSpamAlot]] ([[User talk:LordOfSpamAlot|talk]]) 09:59, 8 September 2022 (UTC)
 +
:::Well, I went back through page history to March of 2017 (which was v1.2 of the game), and the number hasn't been changed on the page since at least then.
 +
:::You're right about <samp>num < 0.001</samp> being 0.1%, not 0.001%. At the time it was added, 0.001% may have been correct, who knows? As it is now, the code is even more complex. It appears to me that the default animation is the UFO, and there is a 0.1% chance of the game deciding between the full moon and a sparkle animation. Which doesn't make sense to me. I'm going to have to do more research and probably step through the code to figure this out. For now, I'm going to remove the % chance.
 +
:::(If anyone else wants to sort this out, please fell free!)
 +
:::Thanks for bringing this up! [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 21:37, 8 September 2022 (UTC)
105,789

edits