void IEquipped.Equipped(EquippedEventArgs eventArgs)
        {
            if ((EquipmentSlotDefines.SlotMasks[eventArgs.Slot] & _allowedSlots) != _allowedSlots)
            {
                return;
            }
            IsFunctional = true;

            if (eventArgs.User.TryGetComponent(out InternalsComponent? internals))
            {
                ConnectedInternalsEntity = eventArgs.User;
                internals.ConnectBreathTool(Owner);
            }
        }
示例#2
0
 public void Equipped(EquippedEventArgs eventArgs)
 {
     EquippedToSlot();
 }
示例#3
0
 void IEquipped.Equipped(EquippedEventArgs eventArgs)
 {
     eventArgs.User.PopupMessage("equipped " + Owner.Name);
 }
 void IEquipped.Equipped(EquippedEventArgs eventArgs)
 {
     eventArgs.User.PopupMessage("equipped " + _entMan.GetComponent <MetaDataComponent>(Owner).EntityName);
 }
示例#5
0
        /// <summary>
        /// Handles when the <see cref="Character"/> equips an item.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="EquippedEventArgs{ItemEntity}"/> instance containing the event data.</param>
        void EquippedHandler(EquippedBase<ItemEntity> sender, EquippedEventArgs<ItemEntity> e)
        {
            _updateModStats = true;

            OnEquipped(e.Item, e.Slot);
        }