Created
October 7, 2022 20:06
-
-
Save DeplorableMountaineer/b266f2757494829c3485f03ed80deb96 to your computer and use it in GitHub Desktop.
Another buggy routine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IEnumerable<Dropped> GetRandomDrops(int level){ | |
if(!ShouldRandomDrop(level)) yield break; | |
for(int i = 0; i < GetRandomNumberOfDrops(level); i++){ | |
yield return GetRandomDrop(level); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment