Ejemplo n.º 1
0
 private bool EquipmentSlot_FireGateway(On.RoR2.EquipmentSlot.orig_FireGateway orig, EquipmentSlot self)
 {
     if (CanDeploy(self, deployableSlot_Gateway))
     {
         return(orig(self));
     }
     return(false);
 }
Ejemplo n.º 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);
        }