Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Game.LoadMod("https://unpkg.com/cppkies@0.2")
- if(!window.CPPKIES_ONLOAD) CPPKIES_ONLOAD = []
- CPPKIES_ONLOAD.push(()=> {
- // Assert
- if(window.CustomChimeSound) return
- window.CustomChimeSound = {
- playSound: () => {
- PlaySound(CustomChimeSound.soundURL)
- },
- soundURL: ""
- }
- Game.shimmerTypes.golden.initFunc = Cppkies.injectCode(Game.shimmerTypes.golden.initFunc, null, "if (!this.spawned && Game.chimeType === 2 && Game.ascensionMode !== 1) CustomChimeSound.playSound()", "before").bind(Game.shimmerTypes.golden)
- Game.Upgrades["Golden cookie sound selector"].choicesFunction = Cppkies.injectCode(Game.Upgrades["Golden cookie sound selector"].choicesFunction, "choices[1]={name:'Chime',icon:[22,6]};", "\nchoices[2] = {name: 'Custom', icon: [1, 7]}", "after")
- Game.Upgrades["Golden cookie sound selector"].choicesPick = Cppkies.injectCode(Game.Upgrades["Golden cookie sound selector"].choicesPick, null, "\nif(id === 2) CustomChimeSound.soundURL = prompt('Pick the URL to use!', CustomChimeSound.soundURL)", "after")
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement