コード例 #1
0
 private static void CcBossLoot(ConCommandArgs args)
 {
     if (args.Count != 1 || !TryParseIntoConfig(args[0], WrapOverrideBossLootScalingEnabled))
     {
         Debug.Log("Invalid arguments.");
     }
     else
     {
         Debug.Log($"Boss loot scaling disable set to {WrapOverrideBossLootScalingEnabled}.");
         Hooks.FixBoss();
     }
 }
コード例 #2
0
 private static void CCBossLootCredit(ConCommandArgs args)
 {
     if (args.Count != 1 || !TryParseIntoConfig(args[0], WrapBossLootCredit))
     {
         Debug.Log("Invalid arguments.");
     }
     else
     {
         Debug.Log($"Boss loot credit set to {WrapBossLootCredit}.");
         Hooks.FixBoss();
     }
 }
コード例 #3
0
 public ShareSuite()
 {
     InitWrap();
     On.RoR2.Console.Awake += (orig, self) =>
     {
         CommandHelper.RegisterCommands(self);
         FrogtownInterface.Init(Config);
         orig(self);
     };
     // Register all the hooks
     Hooks.OnGrantItem();
     Hooks.OnShopPurchase();
     Hooks.OnPurchaseDrop();
     Hooks.DisableInteractablesScaling();
     Hooks.ModifyGoldReward();
     Hooks.SplitTpMoney();
     Hooks.FixBoss();
 }
コード例 #4
0
 public ShareSuite()
 {
     InitWrap();
     On.RoR2.Console.Awake += (orig, self) =>
     {
         CommandHelper.RegisterCommands(self);
         FrogtownInterface.Init(Config);
         orig(self);
     };
     // Register all the hooks
     Hooks.OnGrantItem();
     Hooks.OnGrantEquipment();
     Hooks.OnShopPurchase();
     Hooks.OnPurchaseDrop();
     Hooks.OverrideInteractablesScaling();
     Hooks.ModifyGoldReward();
     Hooks.SplitTpMoney();
     Hooks.BrittleCrownHook();
     // Hooks.PickupFix();
     Hooks.OverrideBossScaling();
 }