private void ApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); amount--; if (amount == 0) { GetComponent <CustomNetTransform>().DisappearFromWorldServer(); } }
private void ServerApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); stackable.ServerConsume(1); HealthBodyPartMessage.Send(targetBodyPart.livingHealthBehaviour.gameObject, targetBodyPart.livingHealthBehaviour.gameObject, targetBodyPart.Type, targetBodyPart.livingHealthBehaviour.GetTotalBruteDamage(), targetBodyPart.livingHealthBehaviour.GetTotalBurnDamage()); }
private void ApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); amount--; if (amount == 0) { DisappearObject(); } }
private void ApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); timesUsed++; Logger.LogTraceFormat("{0} uses left.", Category.Health, uses - timesUsed); if (uses == timesUsed) { GetComponent <CustomNetTransform>().DisappearFromWorldServer(); } }
private void ApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); timesUsed++; Logger.LogTraceFormat("{0} uses left.", Category.Health, uses - timesUsed); if (uses == timesUsed) { Despawn.ServerSingle(gameObject); } }
private void ServerApplyHeal(BodyPartBehaviour targetBodyPart) { targetBodyPart.HealDamage(40, healType); stackable.ServerConsume(1); }