Exemplo n.º 1
0
        public void SetUpTurret(Gun newGun, ItemSlot fromSlot)
        {
            gun = newGun;
            SetUpBullet();

            itemStorage.ServerTryTransferFrom(fromSlot);
        }
Exemplo n.º 2
0
        public void ServerPerformInteraction(HandApply interaction)
        {
            if (HasTrapTrait(interaction.UsedObject))
            {
                if (trapContent.ServerTryTransferFrom(interaction.UsedObject))
                {
                    trapInSnare = true;
                    UpdateTrapVisual();
                }

                if (isArmed == false)
                {
                    ArmTrap(interaction.Performer);
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Transfers an item from an item slot to the body part's internal storage, usually another body part
 /// </summary>
 /// <param name="ItemSlot">Item Slot to transfer from</param>
 public virtual void AddBodyPartSlot(ItemSlot ItemSlot)
 {
     Storage.ServerTryTransferFrom(ItemSlot);
 }