Esempio n. 1
0
 private void WhenDestroyArtefact(IPeer peer, ArtefactAction action)
 {
     if (peer.HasArtefact(action.Model.Id))
     {
         _actor.Account.ForgetArtefact(action.Model.Id);
     }
     else
     {
         peer.DecreaseTrust(DestroyOthersArtefactDistrustFactor);
     }
 }
Esempio n. 2
0
 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);
     }
 }