private bool EquipmentSlot_FireGateway(On.RoR2.EquipmentSlot.orig_FireGateway orig, EquipmentSlot self)
 {
     if (CanDeploy(self, deployableSlot_Gateway))
     {
         return(orig(self));
     }
     return(false);
 }
Beispiel #2
0
        private static bool EquipmentSlot_FireGateway(On.RoR2.EquipmentSlot.orig_FireGateway orig, EquipmentSlot self)
        {
            var original = orig(self);

            if (original)
            {
                self.subcooldownTimer = cfgGatewayCooldown;
            }
            return(original);
        }