Skip to content

Instantly share code, notes, and snippets.

@jacks0n9
Last active May 11, 2023 03:27
Show Gist options
  • Save jacks0n9/46947dc44dfaba4bb8dc3dc96e8607f0 to your computer and use it in GitHub Desktop.
Save jacks0n9/46947dc44dfaba4bb8dc3dc96e8607f0 to your computer and use it in GitHub Desktop.
Unlimited Gifts!!!
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