예제 #1
0
    public affix(string name, equipSlots.affixtype type, float health, float resource, float power, float defense, float mindmg, float maxdmg, float movespeed, float attackspeed, equipSlots.slots[] validslots)
    {
        affixAttributes = new Attributes();
        affixName = name;
        affixType = type;
        affixAttributes.Health = health;
        affixAttributes.Resource = resource;
        affixAttributes.Power = power;
        affixAttributes.Defense = defense;
        affixAttributes.MinDamage = mindmg;
        affixAttributes.MaxDamage = maxdmg;
        affixAttributes.AttackSpeed = attackspeed;
        affixAttributes.MovementSpeed = movespeed;

        foreach (equipSlots.slots slot in validslots)
        {
            affixSlots.Add(slot);
        }

        slotList.Add("Head", equipSlots.slots.Head);
        slotList.Add("Legs", equipSlots.slots.Legs);
        slotList.Add("Feet", equipSlots.slots.Feet);
        slotList.Add("Chest", equipSlots.slots.Chest);
        slotList.Add("Main", equipSlots.slots.Main);
        slotList.Add("Off", equipSlots.slots.Off);
    }
예제 #2
0
 public affix()
 {
     affixAttributes = new Attributes();
     affixName = "default_affix";
     affixType = equipSlots.affixtype.Prefix;
     slotList.Add("Head", equipSlots.slots.Head);
     slotList.Add("Legs", equipSlots.slots.Legs);
     slotList.Add("Feet", equipSlots.slots.Feet);
     slotList.Add("Chest", equipSlots.slots.Chest);
     slotList.Add("Main", equipSlots.slots.Main);
     slotList.Add("Off", equipSlots.slots.Off);
 }