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

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

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