Skip to content

Instantly share code, notes, and snippets.

@DeplorableMountaineer
Created October 7, 2022 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeplorableMountaineer/b266f2757494829c3485f03ed80deb96 to your computer and use it in GitHub Desktop.
Save DeplorableMountaineer/b266f2757494829c3485f03ed80deb96 to your computer and use it in GitHub Desktop.
Another buggy routine
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