示例#1
0
 private void ApplyHeal(BodyPartBehaviour targetBodyPart)
 {
     targetBodyPart.HealDamage(40, healType);
     amount--;
     if (amount == 0)
     {
         GetComponent <CustomNetTransform>().DisappearFromWorldServer();
     }
 }
示例#2
0
    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());
    }
示例#3
0
 private void ApplyHeal(BodyPartBehaviour targetBodyPart)
 {
     targetBodyPart.HealDamage(40, healType);
     amount--;
     if (amount == 0)
     {
         DisappearObject();
     }
 }
示例#4
0
 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);
     }
 }
示例#6
0
 private void ServerApplyHeal(BodyPartBehaviour targetBodyPart)
 {
     targetBodyPart.HealDamage(40, healType);
     stackable.ServerConsume(1);
 }