Esempio n. 1
0
        private bool EquipmentSlot_FireFruit(On.RoR2.EquipmentSlot.orig_FireFruit orig, EquipmentSlot self)
        {
            //_logger.LogMessage($"{self.hasEffectiveAuthority} {Input.GetKey(keyToDrop)} {self.characterBody.HasBuff(modifierKeyBuff)}");
            if (self.characterBody.HasBuff(modifierKeyBuff))
            {
                return(ThrowFruit(self));
            }

            return(orig(self));
        }
Esempio n. 2
0
        private bool EquipmentSlot_FireFruit(On.RoR2.EquipmentSlot.orig_FireFruit orig, EquipmentSlot self)
        {
            bool hasBody = self && self.characterBody;

            if (hasBody)
            {
                healingSourceStack.Push(self.characterBody);
            }
            var retv = orig(self);

            if (hasBody)
            {
                healingSourceStack.Pop();
            }
            return(retv);
        }