Ejemplo n.º 1
0
 private void TryUseSeatruckArm(string seatruckArmID)
 {
     if (helper.isReady)
     {
         helper.TruckQuickSlots.SlotKeyDown(helper.GetSlotIndex(seatruckArmID));
     }
 }
Ejemplo n.º 2
0
        private void OnEquip(string slot, InventoryItem item)
        {
            if (ArmServices.main.IsSeaTruckArm(item.item.GetTechType(), out TechType techType))
            {
                int slotID = helper.GetSlotIndex(slot);

                if (slotID == LeftArmSlotID)
                {
                    AddArm(SeaTruckArm.Left, techType);
                    return;
                }
                else if (slotID == RightArmSlotID)
                {
                    AddArm(SeaTruckArm.Right, techType);
                    return;
                }
            }
        }
Ejemplo n.º 3
0
        private void CheckStorageSlots()
        {
            foreach (string slot in helper.TruckSlotIDs)
            {
                if (helper.TruckEquipment.GetTechTypeInSlot(slot) == SeaTruckStorage_Prefab.TechTypeID)
                {
                    int slotID = helper.GetSlotIndex(slot);

                    if (StorageInputs.ContainsValue(slotID))
                    {
                        continue;
                    }

                    if (GetStorageInput(-1, out SeaTruckStorageInput storageInput))
                    {
                        storageInput.slotID = slotID;
                        storageInput.SetEnabled(true);
                        StorageInputs[storageInput] = slotID;
                    }
                }
            }
        }