示例#1
0
 //adds an effect to the usable list
 public void addUsableEffect(GameEffect effect)
 {
     if (usableEffects == null) usableEffects = new List<GameEffect>(); //instansiates the list because it is now necessary
     usableEffects.Add(effect);
 }
示例#2
0
 //adds an effect to be cast when entered in an inventory
 public void addEffect(GameEffect effect)
 {
     if (inventoryEffects == null) inventoryEffects = new List<GameEffect>(); //instansiates the list because it is now necessary
     inventoryEffects.Add(effect);
 }
 //adds an equip effect to the item
 public void addEquipEffect(GameEffect effect)
 {
     if (equipEffects == null) equipEffects = new List<GameEffect>(); //instansiates a new effect list since it is needed here
     equipEffects.Add(effect);
 }