Adding prestige/second?

i want to have an upgrade, where, when bought, will give you 1% of your potential prestige gain (the number the big reset button says) per second. how do i do this? sorry, i’m really new to all things tmt and i couldn’t find anything about this in the docs. thanks!

passiveGeneration(){
let passive = new Decimal(0)
if (hasUpgrade([uograde layer], [upgrade id])) passive = passive.add(0.01)
return passive
},