Skip to content

Commit

Permalink
fix: 응원 보상에서 똑같은 재료는 나오지 않도록 변경 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
mungmnb777 authored Feb 8, 2024
1 parent 5c2c4c7 commit ecf357f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ private Support(
this.supportIngredient = supportIngredient;
this.access = access;
this.message = message;
this.rewardIngredient = Ingredient.random();
do {
this.rewardIngredient = Ingredient.random();
} while (sender.getPrimaryIngredient() == this.rewardIngredient);
this.rewardQuantity = random.nextInt(1, 7);

sender.sendIngredient(receiver, supportIngredient);
Expand Down

0 comments on commit ecf357f

Please sign in to comment.