Exemplo n.º 1
0
        public Task ResetForcedStats()
        {
            ForcedStat.Clear();
            ValidateStat();

            return(SendPacket(new Packet(SendPacketOperations.ForcedStatReset)));
        }
Exemplo n.º 2
0
        public FieldUser(GameSocket socket)
        {
            Socket = socket;

            Controlled = new List <IFieldControlledObj>();
            Owned      = new List <IFieldOwnedObj>();
            Pets       = Character.Pets
                         .Where(sn => sn > 0)
                         .Select(sn => Character
                                 .Inventories[ItemInventoryType.Cash].Items.Values
                                 .OfType <ItemSlotPet>()
                                 .FirstOrDefault(i => i.CashItemSN == sn))
                         .Where(item => item != null)
                         .Select(item => new FieldUserPet(
                                     this,
                                     item,
                                     (byte)Character.Pets.IndexOf(item.CashItemSN ?? 0)
                                     ))
                         .ToList();

            BasicStat      = new BasicStat(this);
            ForcedStat     = new ForcedStat(this);
            TemporaryStats = new Dictionary <TemporaryStatType, TemporaryStat>();
            ValidateStat();
        }
Exemplo n.º 3
0
        public FieldUser(WvsGameSocket socket, Character character)
        {
            Socket    = socket;
            Character = character;

            BasicStat  = new BasicStat(this);
            ForcedStat = new ForcedStat();
            ValidateStat();
        }
Exemplo n.º 4
0
 public async Task Dispose()
 {
     ConversationContext?.Dispose();
     ForcedStat.Reset();
     await Interact(close : true);
 }