Changes

Jump to navigation Jump to search
1,622 bytes added ,  14:35, 18 April 2021
Line 25: Line 25:  
::Well, opening the cave means you've unlocked the Island Field Office, I thought that was obvious, but I think it could use a mention.  The golden coconut is in the game code, but also in <tt>Locations.xnb</tt>, so I put ">10%", if you haven't cracked one at the Blacksmith, you can still get one in an artifact spot that way.  I don't know which bridge needs to be repaired; I think it's the bridge to the dig site, which is where the artifact spots spawn, so I don't know if that needs to be specified...
 
::Well, opening the cave means you've unlocked the Island Field Office, I thought that was obvious, but I think it could use a mention.  The golden coconut is in the game code, but also in <tt>Locations.xnb</tt>, so I put ">10%", if you haven't cracked one at the Blacksmith, you can still get one in an artifact spot that way.  I don't know which bridge needs to be repaired; I think it's the bridge to the dig site, which is where the artifact spots spawn, so I don't know if that needs to be specified...
 
::As for the percentages, I simply don't know if it's that simple or not!  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 17:52, 17 April 2021 (UTC)
 
::As for the percentages, I simply don't know if it's that simple or not!  [[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 17:52, 17 April 2021 (UTC)
 +
::: Well, some of the current numbers are 100% false since I tested it by running the code in dotnetfiddle (you can easily test thousands of outcomes this way) or you can test examples e.g. by setting snake skull chance to 100% and then you can see that snake vertebrae will never happen. Normally when there are multiple "if" statements they will be evaluated in order, however since "return;" statement was used inside the if block then additional blocks will not be tested if the former if block triggered. essentially a positive "if+return;" is the same as using a failed "else if" check. Ergo vertebrae has a 25% chance only if the 10% chance for snake skull did not happen. So it's 0.25 x (1.0 - 0.1) instead of 0.25 x 1.0. As for the golden coconut you have it backwards: <code>Game1.netWorldState.Value.GoldenCoconutCracked.Value</code> means you have already cracked a coconut - not that you haven't cracked one yet, (see GeodeMenu.cs line 141 for reference where it tests for "&& !Game1.netWorldState.Value.GoldenCoconutCracked.Value" (& NOT Geode Cracked) for receiving the golden walnut on 1st crack. Also I just found (Golden Coconut (1) +Mixed Seeds (1)) on an Island Southeast artifact spot in my 100% perfection file. I will correct the numbers that I am 100% sure of, the global ones might need further revision because you are right in that the general ones are a bit more complicated. Anyway I hope I explained it well if not testing the codesegments on dotnetfiddle is a great way to test the outcomes of the given code! [[User:Dubesor|Dubesor]] ([[User talk:Dubesor|talk]]) 14:35, 18 April 2021 (UTC)
2,280

edits

Navigation menu