Exemple #1
0
    protected virtual void sendingDrone(float timeJump)
    {
        if (carriedItems.Count == 0 && headTo != null && items.Count < maxItems)
        {
            VicisMod.log(getPrefix(), "Sending drone to pick up " + chosen.GetDisplayString() + " from location " +
                         VicisMod.getPosString(headTo.mnX, headTo.mnY, headTo.mnZ) + ", I'm at " + VicisMod.getPosString(mnX, mnY, mnZ) +
                         ", which is " + MassCrateModuleManager.calcDist(headTo, this) + "m away");

            getTargetCoords();

            VicisMod.log(getPrefix(), "Target coords are " + targetCoords + ", drone is at " + drone.getPos());

            if (targetCoords == Vector3.zero)
            {
                return;
            }
            sendDrone(targetCoords, timeJump);
        }
    }