예제 #1
0
 public Item(string name, int level, ItemSlot slot, double attack = 0, double magicAttack = 0, double accuracy = 0, double criticalRate = 0, double defense = 0, double magicDefense = 0, double strength = 0, double intelligence = 0, double dexterity = 0, double hp = 0)
 {
     this.Template = null;
     this.Name = name;
     this.Level = level;
     this.Slot = slot;
     this.Attack = attack;
     this.MagicAttack = magicAttack;
     this.Accuracy = accuracy;
     this.CriticalRate = criticalRate;
     this.Defense = defense;
     this.MagicDefense = magicDefense;
     this.Strength = strength;
     this.Intelligence = intelligence;
     this.Dexterity = dexterity;
     this.HP = hp;
 }
예제 #2
0
 public Item(ItemTemplate template, double attack = 0, double magicAttack = 0, double accuracy = 0, double criticalRate = 0, double defense = 0, double magicDefense = 0, double strength = 0, double intelligence = 0, double dexterity = 0, double hp = 0)
 {
     this.Template = template;
     this.Name = template.Name;
     this.Level = template.Level;
     this.Slot = template.Slot;
     this.Attack = attack;
     this.MagicAttack = magicAttack;
     this.Accuracy = accuracy;
     this.CriticalRate = criticalRate;
     this.Defense = defense;
     this.MagicDefense = magicDefense;
     this.Strength = strength;
     this.Intelligence = intelligence;
     this.Dexterity = dexterity;
     this.HP = hp;
 }