private void BaseSwingChargedFist_OnMeleeHitAuthority(On.EntityStates.Loader.BaseSwingChargedFist.orig_OnMeleeHitAuthority orig, BaseSwingChargedFist self) { if (AncientScepterItem.instance.GetCount(self.outer.commonComponents.characterBody) < 1) { return; } var mTsf = self.outer.commonComponents.modelLocator?.modelTransform?.GetComponent <ChildLocator>()?.FindChild(self.swingEffectMuzzleString); EffectManager.SpawnEffect(Resources.Load <GameObject>("prefabs/effects/omnieffect/OmniExplosionVFXCommandoGrenade"), new EffectData { origin = mTsf?.position ?? self.outer.commonComponents.transform.position, scale = 5f }, true); }
private void on_BaseSwingChargedFistEnter(On.EntityStates.Loader.BaseSwingChargedFist.orig_OnEnter orig, BaseSwingChargedFist self) { orig(self); if (!(self is SwingChargedFist)) { return; } if (AncientScepterItem.instance.GetCount(self.outer.commonComponents.characterBody) > 0) { self.minPunchForce *= 7f; self.maxPunchForce *= 7f; self.damageCoefficient *= 2f; self.minLungeSpeed *= 2f; self.maxLungeSpeed *= 2f; } }