DarkEmu_GameServer.Systems.ChangeInt_inti C# (CSharp) Метод

ChangeInt_inti() публичный Метод

public ChangeInt_inti ( Systems Target, int slot, bool delete, bool UpdatePacket ) : void
Target Systems
slot int
delete bool
UpdatePacket bool
Результат void
        public void ChangeInt_inti(Systems Target, int slot, bool delete,bool UpdatePacket)
        {
            try
            {
                if (!delete)
                {
                    int amount;
                    if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["inti"] != 0)
                    {
                        amount = Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties1["inti"];
                        Target.Character.Action.Buff.UpdatedStats[slot].Intelligence = (short)amount;
                    }
                    //TODO majd uncomment.
                    /*if (Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties2.ContainsKey("inti"))
                    {
                        amount = Data.SkillBase[Target.Character.Action.Buff.SkillID[slot]].Properties2["inti"];
                        Target.Character.Action.Buff.UpdatedStats[slot].Intelligence = (short)((Target.Character.Stat.Intelligence / 100) * (amount));
                    }*/
                    Target.Character.Stat.Intelligence += Target.Character.Action.Buff.UpdatedStats[slot].Intelligence;
                }
                else
                {
                    Target.Character.Stat.Intelligence -= Target.Character.Action.Buff.UpdatedStats[slot].Intelligence;
                    Target.Character.Action.Buff.UpdatedStats[slot].Intelligence = 0;
                }
                if (UpdatePacket) Target.client.Send(Packet.PlayerStat(Target.Character));
            }
            catch (Exception ex)
            {
                Systems.Debugger.Write(ex);
            }
        }
Systems