bl2mods/Mods/InfiniKeys/__init__.py
2023-03-22 12:57:56 -04:00

24 lines
464 B
Python

from Mods.ModMenu import Hook
from Mods.ModUtils import SdkMod
class InfiniKeys(SdkMod):
__doc__ = 'Prevent golden keys from being consumed'
Name = 'Infinite Golden Keys'
Description = __doc__
Author = 'Izalia Mae'
Version = '1.0'
def __init__(self):
self.set_enable_state('settings')
@Hook('WillowGame.WillowPlayerController.SpendGoldenKey')
def handle_key_spend(self, caller, function, params):
return False
mod = InfiniKeys()
mod.register()