Example #1
0
        public void NPC_onItemEquiped(NPC sender, Item item)
        {
            ItemSlot slot = (ItemSlot)Hud.GetComponent("Equipped" + item.ItemType);

            if (slot != null)
            {
                slot.Item = item;
                slot.ToolTip.Text = item.FriendlyName;
                slot.ToolTip.FlavorText = item.Description;
            }
        }
Example #2
0
        public void NPC_onItemUnEquiped(NPC sender, Item item)
        {
            ItemSlot slot = (ItemSlot)Hud.GetComponent("Equipped" + item.ItemType);

            if (slot != null)
            {
                slot.Item = null;
                slot.ToolTip.Text = null;
                slot.ToolTip.FlavorText = null;
            }
        }
Example #3
0
 public void NPC_onDeath(NPC sender)
 {
     _isGameOver = true;
 }