::: 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 GoldenCoconutCracked) 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 code segments 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) | ::: 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 GoldenCoconutCracked) 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 code segments 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) |