diff --git a/Nakama+Hiro/definitions/dev1/base-inventory.json b/Nakama+Hiro/definitions/dev1/base-inventory.json index 1b20296..d1f99ec 100644 --- a/Nakama+Hiro/definitions/dev1/base-inventory.json +++ b/Nakama+Hiro/definitions/dev1/base-inventory.json @@ -10,7 +10,7 @@ "consumable": false, "string_properties": { "equipment_slot": "right_hand", - "rarity": "legendary" + "rarity": "common" }, "numeric_properties": { "rank": 1 @@ -25,7 +25,7 @@ "stackable": true, "consumable": true, "string_properties": { - "rarity": "uncommon" + "rarity": "common" }, "keep_zero": true, "consume_reward": { @@ -46,7 +46,7 @@ "stackable": true, "consumable": true, "string_properties": { - "rarity": "epic" + "rarity": "uncommon" }, "keep_zero": true, "consume_reward": { @@ -62,30 +62,146 @@ "small_crafting_bag": { "name": "Small Crafting Bag", "description": "A small bag of miscellaneous crafting materials.", - "category": "loot_bags", + "category": "crafting_materials", "max_count": 99, "stackable": false, "consumable": true, "string_properties": { - "rarity": "common" + "rarity": "uncommon" }, "consume_reward": { "max_rolls": 2, "weighted": [ { "items": { - "leather_scraps": { + "ruby_gem": { "min": 1, - "max": 5 + "max": 3 } }, - "weight": 50 + "weight": 40 }, + { + "currencies": { + "coins": { + "min": 50, + "max": 200, + "multiple": 10 + } + }, + "weight": 60 + } + ] + } + }, + "wooden_shield": { + "name": "Wooden Shield", + "description": "A basic shield made from reinforced wood.", + "category": "armor", + "item_sets": ["shield", "common_armor"], + "max_count": 99, + "stackable": false, + "consumable": false, + "string_properties": { + "equipment_slot": "left_hand", + "rarity": "common" + }, + "numeric_properties": { + "defense": 15, + "block_chance": 10 + }, + "disabled": false + }, + "mana_potion": { + "name": "Mana Potion", + "description": "A vial of blue liquid that restores magical energy.", + "category": "potions", + "item_sets": ["consumables"], + "max_count": 99, + "stackable": true, + "consumable": true, + "string_properties": { + "rarity": "uncommon" + }, + "keep_zero": true, + "consume_reward": { + "guaranteed": { + "energies": { + "mana": { + "min": 30, + "max": 60 + } + } + } + } + }, + "iron_shield": { + "name": "Iron Shield", + "description": "A sturdy shield forged from iron. Provides solid protection.", + "category": "armor", + "item_sets": ["shield", "common_armor"], + "max_count": 99, + "stackable": false, + "consumable": false, + "string_properties": { + "rarity": "rare" + }, + "numeric_properties": { + "defense": 25, + "rank": 1 + }, + "disabled": false + }, + "magic_gem": { + "name": "Magic Gem", + "description": "A precious gemstone that radiates magical energy.", + "category": "crafting_materials", + "item_sets": ["materials", "gems"], + "max_count": 5, + "stackable": true, + "consumable": true, + "string_properties": { + "rarity": "epic" + } + }, + "golden_key": { + "name": "Golden Key", + "description": "An ornate golden key that opens special treasure chests.", + "category": "keys", + "item_sets": ["special_items"], + "max_count": 9, + "stackable": false, + "consumable": true, + "string_properties": { + "rarity": "rare" + }, + "keep_zero": true, + "consume_reward": { + "guaranteed": { + "currencies": { + "coins": { + "min": 500, + "max": 1000, + "multiple": 100 + } + } + }, + "max_rolls": 1, + "weighted": [ { "items": { - "bronze_nails": { - "min": 5, - "max": 100, + "ruby_gem": { + "min": 1, + "max": 3 + } + }, + "weight": 50 + }, + { + "currencies": { + "gems": { + "min": 10, + "max": 25, "multiple": 5 } }, @@ -93,7 +209,43 @@ } ] } - } + }, + "lucky_charm": { + "name": "Lucky Charm", + "description": "A four-leaf clover that brings good fortune when used.", + "category": "artifacts", + "item_sets": ["consumables", "buffs"], + "max_count": 5, + "stackable": true, + "consumable": true, + "string_properties": { + "rarity": "epic" + }, + "keep_zero": false, + "consume_reward": { + "guaranteed": { + "currencies": { + "coins": { + "min": 50, + "max": 150 + } + } + } + } + }, + "evil_eye": { + "name": "Eye of Sauron", + "description": "It is said to have the power to control the minds of others.", + "category": "artifacts", + "item_sets": ["special_items"], + "max_count": 1, + "stackable": false, + "consumable": false, + "string_properties": { + "rarity": "legendary" + }, + "keep_zero": false + } }, "limits": { "categories": { diff --git a/UnityHiroInventory/Assets/UnityHiroInventory/Scenes/Main.unity b/UnityHiroInventory/Assets/UnityHiroInventory/Scenes/Main.unity index 0e6d94f..9e2f913 100644 --- a/UnityHiroInventory/Assets/UnityHiroInventory/Scenes/Main.unity +++ b/UnityHiroInventory/Assets/UnityHiroInventory/Scenes/Main.unity @@ -372,6 +372,20 @@ MonoBehaviour: icon: {fileID: 3183744519848866733, guid: 6556f306ccdfc46558bec4887327a115, type: 3} - itemId: bomb icon: {fileID: 1996048190166631823, guid: 239daefcee8c34448936bf5ec71b371e, type: 3} + - itemId: wooden_shield + icon: {fileID: -8020145047929140699, guid: 4ad4be2b759d24102a9b7575210ea2db, type: 3} + - itemId: mana_potion + icon: {fileID: 1188792238481573301, guid: 9c4eb9c4dee3149ebb37bdc0ada990b4, type: 3} + - itemId: iron_shield + icon: {fileID: 473728356293506998, guid: 0cf9f927f55bd443da92aad7ed15e7db, type: 3} + - itemId: magic_gem + icon: {fileID: 6521567286427641033, guid: 291bae5a918dd4ea3acba4ea98dc00d8, type: 3} + - itemId: golden_key + icon: {fileID: 1312465433301553684, guid: fb135d08768c24e41bfeb6807f9fca0a, type: 3} + - itemId: lucky_charm + icon: {fileID: -5502143058471085903, guid: 5ce489eb04a834e6a89e668e109041e2, type: 3} + - itemId: evil_eye + icon: {fileID: 6795985223779720529, guid: 20ee1762fea504e5bab4723bf295eb8e, type: 3} defaultIcon: {fileID: 4572200582248954793, guid: 0b0f45dc7e62c47689da39968a4415fa, type: 3} --- !u!1 &2121322951 GameObject: diff --git a/UnityHiroInventory/Assets/UnityHiroInventory/Scripts/HiroInventoryController.cs b/UnityHiroInventory/Assets/UnityHiroInventory/Scripts/HiroInventoryController.cs index 71f895f..89e5c37 100644 --- a/UnityHiroInventory/Assets/UnityHiroInventory/Scripts/HiroInventoryController.cs +++ b/UnityHiroInventory/Assets/UnityHiroInventory/Scripts/HiroInventoryController.cs @@ -170,6 +170,7 @@ private void InitializeUI() // Item tooltip itemTooltip = rootElement.Q("item-tooltip"); + itemTooltip.pickingMode = PickingMode.Ignore; // Prevent tooltip from intercepting mouse events tooltipNameLabel = rootElement.Q