private void On_FireBarrage_Enter(On.EntityStates.Commando.CommandoWeapon.FireBarrage.orig_OnEnter orig, FireBarrage self) { orig(self); if (Scepter_V2.instance.GetCount(self.outer.commonComponents.characterBody) > 0) { self.durationBetweenShots /= 2f; self.bulletCount *= 2; } }
private static void On_FireBarrage_Enter(On.EntityStates.Commando.CommandoWeapon.FireBarrage.orig_OnEnter orig, FireBarrage self) { orig(self); if (Scepter.instance.GetCount(self.outer.commonComponents.characterBody) > 0) { self.SetFieldValue("durationBetweenShots", self.GetFieldValue <float>("durationBetweenShots") / 2f); self.SetFieldValue("bulletCount", self.GetFieldValue <int>("bulletCount") * 2); } }