private void SkillsRoutine() { if (characterCollected) { if (Menus.Player.SkillToggle) { LocalSkills.ApplyAmmoPack(); } } }
private void StatsRoutine() { if (_CharacterCollected) { if (skillToggle) { LocalSkills.ApplyAmmoPack(); } } }
internal static void Init() { On.RoR2.EquipmentSlot.PerformEquipmentAction += (orig, self, equipmentIndex) => { if (equipmentIndex == GiganticAmethystEquip.AmethystEquipmentIndex) { SkillLocator skillLocator = self.characterBody.skillLocator; if (skillLocator) { if (GiganticAmethyst.RoR1Behavior.Value) { skillLocator.ResetSkills(); } else { skillLocator.ApplyAmmoPack(); } } return(true); } return(orig(self, equipmentIndex)); }; }
public void Update() { skills.ApplyAmmoPack(); }