Skip to content

Commit

Permalink
Update balloon spawn chances
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStnn committed Aug 11, 2024
1 parent 32ee127 commit 23089a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ Refer to [adding a balloon](./adding-balloon.md) for instructions on how to add
```mermaid
pie showdata
title Balloon spawn chances
"Default" : 0.90
"Default" : 0.75
"Splitter": 0.10
"Confetti" : 0.10
"Gold": 0.05
```
Expand Down
2 changes: 1 addition & 1 deletion src/balloons/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type BalloonOptions = {
};

export default class Default extends Balloon {
public static readonly spawn_chance: number = 0.9;
public static readonly spawn_chance: number = 0.75;

public get name(): 'default' {
return 'default';
Expand Down
2 changes: 1 addition & 1 deletion src/balloons/splitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Default, { BalloonOptions } from '@/balloons/default';
import { getBalloonContainer } from '@/utils';

export default class Splitter extends Default {
public static readonly spawn_chance: number = 5.2;
public static readonly spawn_chance: number = 0.1;
// @ts-ignore
public get name(): 'splitter' {
return 'splitter';
Expand Down

0 comments on commit 23089a1

Please sign in to comment.