mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-05 18:39:12 +00:00
🎨 minor code improvement
This commit is contained in:
parent
079582a0bf
commit
b6919d1ef6
1 changed files with 1 additions and 3 deletions
|
@ -24,8 +24,6 @@ const SoundHandler = () => {
|
|||
|
||||
const [musicOverride, setMusicOverride] = useState(null);
|
||||
|
||||
const meow: string = openingMusic;
|
||||
|
||||
const isOpening = !isGameboyMenu && isLoadScreen;
|
||||
|
||||
const getMapMusic = (map: MapType): string => {
|
||||
|
@ -37,7 +35,7 @@ const SoundHandler = () => {
|
|||
};
|
||||
|
||||
const music = () => {
|
||||
if (isOpening) return meow;
|
||||
if (isOpening) return openingMusic;
|
||||
if (inBattle) return battleMusic;
|
||||
if (musicOverride) return musicOverride;
|
||||
const mapMusic = getMapMusic(map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue