Changes

224 bytes added ,  18:24, 4 May 2021
Line 3: Line 3:  
Currently the segment states that all 3 of the night market fish can be fished at any time when using [[Magic Bait]]. I wanted to see the exact tiles (and maybe percentages) but when I looked through the code I can only see an entry for 798/Midnight Squid. In Beach.cs:getFish there is the additional <code>if (using_magic_bait && bobberTile.X < 12f && bobberTile.Y > 31f && waterDepth >= 3 && Game1.random.NextDouble() < 0.1 + (double)(bobberAddition * 1.5f))</code> <code>return new Object(798 + Game1.random.Next(3), 1);</code> but I didn't find any entries for blobfish (800) or spookfish (799). Does anyone know where those are hidden? [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 14:46, 4 May 2021 (UTC)
 
Currently the segment states that all 3 of the night market fish can be fished at any time when using [[Magic Bait]]. I wanted to see the exact tiles (and maybe percentages) but when I looked through the code I can only see an entry for 798/Midnight Squid. In Beach.cs:getFish there is the additional <code>if (using_magic_bait && bobberTile.X < 12f && bobberTile.Y > 31f && waterDepth >= 3 && Game1.random.NextDouble() < 0.1 + (double)(bobberAddition * 1.5f))</code> <code>return new Object(798 + Game1.random.Next(3), 1);</code> but I didn't find any entries for blobfish (800) or spookfish (799). Does anyone know where those are hidden? [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 14:46, 4 May 2021 (UTC)
 
:They are hiding in the last line <code>random.Next(3)</code> returns either 0, 1 or 2, so 798 + 1 = 799 and 798 + 2 = 800.  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 17:28, 4 May 2021 (UTC)
 
:They are hiding in the last line <code>random.Next(3)</code> returns either 0, 1 or 2, so 798 + 1 = 799 and 798 + 2 = 800.  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 17:28, 4 May 2021 (UTC)
 +
:: Ah, that makes sense. I was constantly scanning all the .cs files for objects 799 and 800, I didn't even notice it just alters the ID! thanks. [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 18:23, 4 May 2021 (UTC)
2,280

edits