Last active
May 11, 2023 03:27
-
-
Save jacks0n9/46947dc44dfaba4bb8dc3dc96e8607f0 to your computer and use it in GitHub Desktop.
Unlimited Gifts!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let giftsMod={ | |
init:function(){ | |
console.log("Loaded") | |
Game.oldGainBuff=Game.gainBuff | |
Game.gainBuff=function(name,duration){ | |
if(name=="gifted out"){return} | |
return Game.oldGainBuff(name,duration) | |
} | |
}, | |
save:function(){ | |
//use this to store persistent data associated with your mod | |
}, | |
load:function(str){ | |
//do stuff with the string data you saved previously | |
}, | |
} | |
Game.registerMod("giftsMod",giftsMod) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment