Esempio n. 1
0
 public void ApplyLockBuffs(int time = 180)
 {
     PrototypePlayer.AddBuff(ServerSideCharacter.Instance.BuffType("Locked"), time * 2, false);
     PrototypePlayer.AddBuff(BuffID.Frozen, time, false);
     NetMessage.SendData(MessageID.AddPlayerBuff, PrototypePlayer.whoAmI, -1,
                         "", PrototypePlayer.whoAmI,
                         ServerSideCharacter.Instance.BuffType("Locked"), time * 2, 0f, 0, 0, 0);
     NetMessage.SendData(MessageID.AddPlayerBuff, PrototypePlayer.whoAmI, -1,
                         "", PrototypePlayer.whoAmI,
                         BuffID.Frozen, time, 0f, 0, 0, 0);
 }
Esempio n. 2
0
 public void ClearAllBuffs()
 {
     if (!RealPlayer)
     {
         return;
     }
     PrototypePlayer.mount.Dismount(PrototypePlayer);
     for (var i = 0; i < PrototypePlayer.buffType.Length; i++)
     {
         PrototypePlayer.DelBuff(i);
     }
     PrototypePlayer.ResetEffects();
 }