Skip to content

Commit

Permalink
Update Fruit.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
MycroftKang authored Dec 29, 2023
1 parent 5f54811 commit 09647b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/suikaGame/object/Fruit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const getItemTypeFeature = (item: ItemType) => {
export const getRandomFruitFeature = () => {
// return getSpecialItemFeature(SpecialItem.BOMB);

if (Math.random() < 0.99 || first_fruit) {
if (Math.random() < 0.98 || first_fruit) {
first_fruit = false;
const fruits = Object.values(Fruit).slice(0, 5);
const randomIndex = Math.floor(Math.random() * fruits.length); // 무작위 인덱스 선택
Expand Down

0 comments on commit 09647b8

Please sign in to comment.