コード例 #1
0
 private bool EquipmentSlot_FireSaw(On.RoR2.EquipmentSlot.orig_FireSaw orig, EquipmentSlot self)
 {
     if (CanDeploy(self, deployableSlot_Saw))
     {
         return(orig(self));
     }
     return(false);
 }
コード例 #2
0
 private static bool EquipmentSlot_FireSaw(On.RoR2.EquipmentSlot.orig_FireSaw orig, EquipmentSlot self)
 {
     if (CanDeploy(self, PerPlayerDeployableType.Saw))
     {
         self.subcooldownTimer = cfgSawCooldown;
         return(orig(self));
     }
     return(false);
 }