예제 #1
0
 private void ApplyEquipableItemEffect(BaseStats target, ItemConfig item, CharEquipmentSlot equipedOn)
 {
     if (itemEffect == ItemEffect.IncreaseStatTemporarily)
     {
         if (target.GetEquippedItem(equipedOn) == item)
         {
             target.ReturnAfterUnnequip(attributteToModify, item, equipedOn);
         }
         else
         {
             target.ModifyStatByEquip(attributteToModify, modifier, item, equipedOn);
         }
     }
 }
예제 #2
0
 private void AddItemToEquipmentSlot(ItemConfig item, CharEquipmentSlot slotNeeded, BaseStats member)
 {
     member.ModifyStatByEquip(item.GetAttributeToModify(), item.GetAdditiveModifiers(), item, slotNeeded);
     playerInventory.RemoveItem(item, 1);
 }