Skip to content

Commit

Permalink
Louder thunderclap for kika punishment
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed May 14, 2024
1 parent 61b2647 commit 5c28678
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
Binary file added data/sounds/event/thunderclap.ogg
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions doc/contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ The following people released their work to the public with a suitable license f
* [YuriNikolai](https://opengameart.org/users/yurinikolai)
* [Inchadney](http://inchadney.com/sounds.html)
* [Gniffelbaf](https://freesound.org/people/Gniffelbaf/)
* [Kevin Luce (kevp888)](https://freesound.org/people/kevp888/)
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
5 changes: 5 additions & 0 deletions doc/contributors/contributors.json
Original file line number Diff line number Diff line change
Expand Up @@ -4767,6 +4767,11 @@
{
"name": "Gniffelbaf",
"link": "https://freesound.org/people/Gniffelbaf/"
},
{
"name": "kevp888",
"fullname": "Kevin Luce",
"link": "https://freesound.org/people/kevp888/"
}
]
}
1 change: 1 addition & 0 deletions doc/sources/audio-sfx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
data/sounds/

balloon/pop Gniffelbaf; CC0; https://opengameart.org/node/132360, https://freesound.org/s/82119/
event/thunderclap Kevin Luce (kevp888); CC BY 4.0; https://freesound.org/s/639273/
alligator-1.ogg U.S. Fish and Wildlife Service; public domain; https://fws.gov/video/sound.htm
arrow-hit-1.ogg Storyteller; GPL
attack-fire-1.* Nic3_one; CC0; https://freesound.org/people/Nic3_one/sounds/166555/
Expand Down
12 changes: 11 additions & 1 deletion src/js/stendhal/event/generic/KikaPunishmentEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@

import { SubEvent } from "./SubEvent";

import { SoundLayer } from "../../data/enum/SoundLayer";

import { SoundManager } from "../../ui/SoundManager";


export class KikaPunishmentEvent extends SubEvent {

override execute(entity: any, flags: string[]) {
// TODO:
// DEBUG:
console.log("Kika punishment!");

SoundManager.get().playGlobalizedEffect("event/thunderclap", SoundLayer.SFX.value);

// TODO:
// - lightning flash
// - maybe make thunderclap louder
}
}

0 comments on commit 5c28678

Please sign in to comment.