private void RpcReceiveDamage(float damage, float bonusCristal, bool isPlayer) { if (isLocalPlayer) { float armor = this.inventory.Armor + bonusCristal; this.Life -= 100 * damage / armor; if (this.Life == 0 && isPlayer) CmdIncrementKill(); } }