diff --git a/Crawler/InventoryWindow.cpp b/Crawler/InventoryWindow.cpp index f09a4baf..b822ffbd 100644 --- a/Crawler/InventoryWindow.cpp +++ b/Crawler/InventoryWindow.cpp @@ -98,7 +98,7 @@ void Menu::InitializeInventoryWindow(){ Component(data.menu.GetType(),"Item Icon")->SetItem(Item::BLANK); Component(data.menu.GetType(),"Item Icon")->UpdateIcon(); return true; - },{.padding=1,.size={136,28}})END; + },{.padding=1,.size={137,28}})END; if(first){ lastInventoryTypeOpened=category; @@ -119,6 +119,5 @@ void Menu::InitializeInventoryWindow(){ inventoryWindow->ADD("Item Icon",MenuItemItemButton)({{226+inventoryDescriptionWidth/2-24,30},{48,48}},Item::BLANK,MenuType::ENUM_END,DO_NOTHING,"","",IconButtonAttr::NOT_SELECTABLE)END; inventoryWindow->ADD("Item Name Label",MenuLabel)({{226,84},{inventoryDescriptionWidth-6,12}},"",0.75f,LEFT_ALIGN|SHADOW)END; inventoryWindow->ADD("Item Description Label",MenuLabel)({{226,94},{inventoryDescriptionWidth-6,inventoryWindow->size.y-44-66}},"",0.5f,LEFT_ALIGN|SHADOW)END; - #pragma endregion } \ No newline at end of file diff --git a/Crawler/Version.h b/Crawler/Version.h index 6c044b40..35f9e9fe 100644 --- a/Crawler/Version.h +++ b/Crawler/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 1 -#define VERSION_BUILD 4057 +#define VERSION_BUILD 4059 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Crawler/assets/config/items/ItemDatabase.txt b/Crawler/assets/config/items/ItemDatabase.txt index 0b572698..a1b01589 100644 --- a/Crawler/assets/config/items/ItemDatabase.txt +++ b/Crawler/assets/config/items/ItemDatabase.txt @@ -1,237 +1,52 @@ ItemDatabase { - Small Health Potion + Berries { ItemScript = Restore - Description = Restores 40 health points. - HP Restore = 40 + Description = Restores 15 health points and 5 mana points. + HP Restore = 15 + MP Restore = 5 + ItemCategory = Consumables + Cooldown Time = 5.0 + Cast Time = 0.0 + SellValue = 8 + } + Minor Health Potion + { + ItemScript = Restore + Description = Restores 50 health points. + HP Restore = 50 + ItemCategory = Consumables + Cooldown Time = 5.0 + Cast Time = 0.0 + SellValue = 16 + BuyValue = 23 + } + Minor Mana Potion + { + ItemScript = Restore + Description = Restores 45 mana points over the next 15 seconds. + MP Restore = 3,1,15 + ItemCategory = Consumables + Cooldown Time = 5.0 + Cast Time = 0.0 + SellValue = 21 + BuyValue = 30 + } + Minor Recovery Potion + { + ItemScript = Restore + Description = Recovers 60 health points over the next 15 seconds. + HP Restore = 12,3,15 ItemCategory = Consumables Cooldown Time = 5.0 Cast Time = 0.0 } - Medium Health Potion + Elixir of Bear Strength { - ItemScript = Restore - Description = Restores 100 health points. - HP Restore = 100 - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Large Health Potion - { - ItemScript = Restore - Description = Restores 320 health points. - HP Restore = 320 - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Small Mana Potion - { - ItemScript = Restore - Description = Restores 40 mana points. - MP Restore = 40 - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Medium Mana Potion - { - ItemScript = Restore - Description = Restores 100 mana points. - MP Restore = 100 - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Large Mana Potion - { - ItemScript = Restore - Description = Restores 320 mana points. - MP Restore = 320 - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 1 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 2 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 3 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 4 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 5 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 6 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 7 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Equipment - Slot = Armor - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 8 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Equipment - Slot = Armor - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 9 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Equipment - Slot = Armor - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 10 - { - Description = Does nothing apparently. - ItemCategory = Equipment - Slot = Armor,Ring1,Ring2 - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 11 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 12 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 13 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 14 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 15 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 16 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 17 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 18 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 19 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. - ItemCategory = Consumables - Cooldown Time = 5.0 - Cast Time = 0.0 - } - Dummy Item 20 - { - ItemScript = Restore - HP Restore = 1 - Description = Does nothing apparently. + ItemScript = Buff + Description = Increase your attack by 15% for 30 seconds. + HP Restore = 15,30 ItemCategory = Consumables Cooldown Time = 5.0 Cast Time = 0.0 @@ -239,35 +54,84 @@ ItemDatabase Bandages { ItemScript = Restore - Description = Restores 10% health points. - HP % Restore = 10% - Cast Time = 1.0 + Description = Restores 30% health points over 6 seconds. The effect can be interrupted. + HP % Restore = 30% + Cast Time = 6.0 Cooldown Time = 5.0 ItemCategory = Consumables + SellValue = 7 + BuyValue = 10 } Green Slime Remains { Description = The remains of a green slime. It stares at you intently. ItemCategory = Materials + SellValue = 2 } Blue Slime Remains { Description = The remains of a blue slime. It stares at you intently. ItemCategory = Materials + SellValue = 4 } Red Slime Remains { Description = The remains of a red slime. It stares at you intently. ItemCategory = Materials + SellValue = 4 + } + Yellow Slime Remains + { + Description = The remains of a yellow slime. It stares at you intently. + ItemCategory = Materials + SellValue = 9 + } + Flower Petals + { + Description = Some beautiful petals of a flower. + ItemCategory = Materials + SellValue = 3 + } + Frog Skin + { + Description = The skin of a frog. + ItemCategory = Materials + SellValue = 5 + } + Bear Claw + { + Description = The claw of a bear. + ItemCategory = Materials + SellValue = 12 + } + Bear Blood + { + Description = Some uncontaminated blood of a bear + ItemCategory = Materials + SellValue = 17 + } + Wolf Skin + { + Description = The skin of a wolf with only minor damages. + ItemCategory = Materials + SellValue = 6 } Logs { Description = A small unrefined pile of logs. ItemCategory = Materials + SellValue = 3 + } + High-Quality Logs + { + Description = A small unrefined pile of logs of exceptional quality. + ItemCategory = Materials + SellValue = 7 } Green Gemstone { Description = Radiating with energy from the forest, it is used to refine stronger equipment. ItemCategory = Materials + SellValue = 180 } -} \ No newline at end of file +} diff --git a/Crawler/assets/config/shops/Chapter 1 Merchants.txt b/Crawler/assets/config/shops/Chapter 1 Merchants.txt new file mode 100644 index 00000000..2fcf0792 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 1 Merchants.txt @@ -0,0 +1,26 @@ +Merchant +{ + Chapter1_A + { + DisplayName = Merchant + Item[1] = Minor Health Potion + Item[2] = Minor Mana Potion + } + Chapter1_B + { + DisplayName = Merchant + Item[1] = Minor Health Potion + } + Chapter1_C + { + DisplayName = Merchant + Item[1] = Minor Mana Potion + } + Chapter1_D + { + DisplayName = Merchant + Item[1] = Minor Health Potion + Item[2] = Minor Mana Potion + Item[3] = Bandages + } +} \ No newline at end of file diff --git a/Crawler/assets/config/shops/Chapter 2 Merchants.txt b/Crawler/assets/config/shops/Chapter 2 Merchants.txt new file mode 100644 index 00000000..84b226f9 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 2 Merchants.txt @@ -0,0 +1,4 @@ +Merchant +{ + +} \ No newline at end of file diff --git a/Crawler/assets/config/shops/Chapter 3 Merchants.txt b/Crawler/assets/config/shops/Chapter 3 Merchants.txt new file mode 100644 index 00000000..84b226f9 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 3 Merchants.txt @@ -0,0 +1,4 @@ +Merchant +{ + +} \ No newline at end of file diff --git a/Crawler/assets/config/shops/Chapter 4 Merchants.txt b/Crawler/assets/config/shops/Chapter 4 Merchants.txt new file mode 100644 index 00000000..84b226f9 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 4 Merchants.txt @@ -0,0 +1,4 @@ +Merchant +{ + +} \ No newline at end of file diff --git a/Crawler/assets/config/shops/Chapter 5 Merchants.txt b/Crawler/assets/config/shops/Chapter 5 Merchants.txt new file mode 100644 index 00000000..84b226f9 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 5 Merchants.txt @@ -0,0 +1,4 @@ +Merchant +{ + +} \ No newline at end of file diff --git a/Crawler/assets/config/shops/Chapter 6 Merchants.txt b/Crawler/assets/config/shops/Chapter 6 Merchants.txt new file mode 100644 index 00000000..84b226f9 --- /dev/null +++ b/Crawler/assets/config/shops/Chapter 6 Merchants.txt @@ -0,0 +1,4 @@ +Merchant +{ + +} \ No newline at end of file diff --git a/Crawler/assets/items/Bear Blood.png b/Crawler/assets/items/Bear Blood.png new file mode 100644 index 00000000..2387c838 Binary files /dev/null and b/Crawler/assets/items/Bear Blood.png differ diff --git a/Crawler/assets/items/Bear Claw.png b/Crawler/assets/items/Bear Claw.png new file mode 100644 index 00000000..41ff8699 Binary files /dev/null and b/Crawler/assets/items/Bear Claw.png differ diff --git a/Crawler/assets/items/Berries.png b/Crawler/assets/items/Berries.png new file mode 100644 index 00000000..a6e5df09 Binary files /dev/null and b/Crawler/assets/items/Berries.png differ diff --git a/Crawler/assets/items/Elixir of Bear Strength.png b/Crawler/assets/items/Elixir of Bear Strength.png new file mode 100644 index 00000000..9a9093ee Binary files /dev/null and b/Crawler/assets/items/Elixir of Bear Strength.png differ diff --git a/Crawler/assets/items/Flower Petals.png b/Crawler/assets/items/Flower Petals.png new file mode 100644 index 00000000..002d33b9 Binary files /dev/null and b/Crawler/assets/items/Flower Petals.png differ diff --git a/Crawler/assets/items/Frog Skin.png b/Crawler/assets/items/Frog Skin.png new file mode 100644 index 00000000..57d8e4de Binary files /dev/null and b/Crawler/assets/items/Frog Skin.png differ diff --git a/Crawler/assets/items/High-Quality Logs.png b/Crawler/assets/items/High-Quality Logs.png new file mode 100644 index 00000000..4bbee46e Binary files /dev/null and b/Crawler/assets/items/High-Quality Logs.png differ diff --git a/Crawler/assets/items/Small Health Potion.png b/Crawler/assets/items/Minor Health Potion.png similarity index 100% rename from Crawler/assets/items/Small Health Potion.png rename to Crawler/assets/items/Minor Health Potion.png diff --git a/Crawler/assets/items/Small Mana Potion.png b/Crawler/assets/items/Minor Mana Potion.png similarity index 100% rename from Crawler/assets/items/Small Mana Potion.png rename to Crawler/assets/items/Minor Mana Potion.png diff --git a/Crawler/assets/items/Minor Recovery Potion.png b/Crawler/assets/items/Minor Recovery Potion.png new file mode 100644 index 00000000..9e9c8ddf Binary files /dev/null and b/Crawler/assets/items/Minor Recovery Potion.png differ diff --git a/Crawler/assets/items/Wolf Skin.png b/Crawler/assets/items/Wolf Skin.png new file mode 100644 index 00000000..66451035 Binary files /dev/null and b/Crawler/assets/items/Wolf Skin.png differ diff --git a/Crawler/assets/items/Yellow Slime Remains.png b/Crawler/assets/items/Yellow Slime Remains.png new file mode 100644 index 00000000..513db991 Binary files /dev/null and b/Crawler/assets/items/Yellow Slime Remains.png differ