Skip to content

Commit

Permalink
fixes + docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BanaantjeJowie committed Oct 16, 2024
1 parent 5ddacb1 commit a5a33d5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ title Balloon spawn chances
"Confetti" : 0.10
"Fast": 0.10
"Gold": 0.05
"Ghost": 0.10
```

## Inheritance Tree
Expand All @@ -291,6 +292,7 @@ Default --|> Balloon
Confetti --|> Default
Fast --|> Default
Gold --|> Default
Ghost --|> Default
Splitter --|> Default
```

Expand Down
21 changes: 21 additions & 0 deletions docs/balloons/ghost.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Ghost

This is a balloon spawned from the spiritworld. Just like a ghost this balloon sways from side to side en turns slightly invisible.

```mermaid
classDiagram
direction LR
class Balloon { <<Abstract>> }
click Balloon href "#abstract-balloon-class" "Abstract balloon class"
class Ghost {
+spawn_chance: number$
+<< get >>name: string
+<< get >>options: BalloonOptions
}
Ghost --|> Balloon
```

Has a custom image resource in [`/resources/balloons/ghost/balloon.svg`](/resources/balloons/ghost/balloon.svg).

![Ghost balloon](/resources/balloons/ghost/balloon.svg)
14 changes: 9 additions & 5 deletions resources/balloons/ghost/balloon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/balloons/ghost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default class Ghost extends Default {
riseDuration: [15000, 20000],
swingDuration: [3, 4],
swingOffset: 25,

};
}
}

0 comments on commit a5a33d5

Please sign in to comment.