Example #1
0
 public void RegisterSlaying(UserEntity user, bool slaying, long ticks)
 {
     if (user == null)
     {
         return;
     }
     if (slaying)
     {
         if (!AbnormalityStorage.Death(PlayerTracker.GetOrUpdate(user)).Dead)
         {
             AddAbnormality(user.Id, user.Id, 0, 0, (int)StaticallyUsedBuff.Slaying, ticks);
         }
     }
     else
     {
         DeleteAbnormality(user.Id, (int)StaticallyUsedBuff.Slaying, ticks);
     }
 }