private void WhenDestroyArtefact(IPeer peer, ArtefactAction action) { if (peer.HasArtefact(action.Model.Id)) { _actor.Account.ForgetArtefact(action.Model.Id); } else { peer.DecreaseTrust(DestroyOthersArtefactDistrustFactor); } }
private void WhenCreateArtefact(IPeer peer, ArtefactAction action) { if (peer.HasArtefact(action.Model.Id)) { return; } if (_actor.Account.KnowsArtefact(action.Model.Id)) { peer.DecreaseTrust(MakeCounterfeitArtefactDistrustFactor); } else { _actor.Account.AddArtefact(action.Model, peer.Id); } }