Иконка ресурса

FREE ExcavatorFix : 1.0.4 1.0.4

Нет прав для скачивания
C#:
using Oxide.Core;
using Rust;
using UnityEngine;

namespace Oxide.Plugins
{
    [Info("ExcavatorFix", "Sergioklv", "1.0.4")]
    [Description("ExcavatorFix")]
    public class ExcavatorFix : RustPlugin
    {
        object OnExcavatorGather(ExcavatorArm arm, Item item)
        {
            if (item == null || item.info == null) return null;

            switch (item.info.shortname)
            {
                case "sulfur.ore":
                    item.info = ItemManager.FindItemDefinition("sulfur");
                    break;
                case "hq.metal.ore":
                    item.info = ItemManager.FindItemDefinition("metal.refined");
                    break;
            }

            return null;
        }
    }
}

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху