コード例 #1
0
        public override void RightClick(Item item, Player player)
        {
            if (item.wingSlot > 0)
            {
                WingSlotPlayer mp = player.GetModPlayer <WingSlotPlayer>(mod);

                if (KeyboardUtils.HeldDown(Keys.LeftShift))
                {
                    mp.EquipWings(true, item);
                }
                else
                {
                    mp.EquipWings(false, item);
                }
            }
            else
            {
                base.RightClick(item, player);
            }
        }
コード例 #2
0
        public override void RightClick(Item item, Player player)
        {
            if (!CanRightClick(item))
            {
                return;
            }

            WingSlotPlayer mp = player.GetModPlayer <WingSlotPlayer>();

            mp.EquipWings(KeyboardUtils.HeldDown(Keys.LeftShift), item);
        }