コード例 #1
0
 private void RemoveItemEffect(EquipableItem item)
 {
     if (item == null)
     {
         return;
     }
     if (item.stats != null)
     {
         OWNER.UpdateStatistics(item.stats, -1);
     }
 }
コード例 #2
0
 private void ApplyItemEffect(EquipableItem item)
 {
     if (item == null)
     {
         return;
     }
     //foreach (Buff buff in item.buffs)
     //    owner.AddBuff(new BuffInstance() { buff = buff, duration = -1, origin = owner, target = owner, canExpire = false });
     if (item.stats != null)
     {
         OWNER.UpdateStatistics(item.stats, 1);
     }
 }