Created additional item icons for Item Database. Added Traveling Merchant config lists
@ -98,7 +98,7 @@ void Menu::InitializeInventoryWindow(){
|
|||||||
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(Item::BLANK);
|
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->SetItem(Item::BLANK);
|
||||||
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
|
Component<MenuItemItemButton>(data.menu.GetType(),"Item Icon")->UpdateIcon();
|
||||||
return true;
|
return true;
|
||||||
},{.padding=1,.size={136,28}})END;
|
},{.padding=1,.size={137,28}})END;
|
||||||
|
|
||||||
if(first){
|
if(first){
|
||||||
lastInventoryTypeOpened=category;
|
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 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 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;
|
inventoryWindow->ADD("Item Description Label",MenuLabel)({{226,94},{inventoryDescriptionWidth-6,inventoryWindow->size.y-44-66}},"",0.5f,LEFT_ALIGN|SHADOW)END;
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
}
|
}
|
@ -39,7 +39,7 @@ All rights reserved.
|
|||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 2
|
||||||
#define VERSION_PATCH 1
|
#define VERSION_PATCH 1
|
||||||
#define VERSION_BUILD 4057
|
#define VERSION_BUILD 4059
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
@ -1,237 +1,52 @@
|
|||||||
ItemDatabase
|
ItemDatabase
|
||||||
{
|
{
|
||||||
Small Health Potion
|
Berries
|
||||||
{
|
{
|
||||||
ItemScript = Restore
|
ItemScript = Restore
|
||||||
Description = Restores 40 health points.
|
Description = Restores 15 health points and 5 mana points.
|
||||||
HP Restore = 40
|
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
|
ItemCategory = Consumables
|
||||||
Cooldown Time = 5.0
|
Cooldown Time = 5.0
|
||||||
Cast Time = 0.0
|
Cast Time = 0.0
|
||||||
}
|
}
|
||||||
Medium Health Potion
|
Elixir of Bear Strength
|
||||||
{
|
{
|
||||||
ItemScript = Restore
|
ItemScript = Buff
|
||||||
Description = Restores 100 health points.
|
Description = Increase your attack by 15% for 30 seconds.
|
||||||
HP Restore = 100
|
HP Restore = 15,30
|
||||||
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.
|
|
||||||
ItemCategory = Consumables
|
ItemCategory = Consumables
|
||||||
Cooldown Time = 5.0
|
Cooldown Time = 5.0
|
||||||
Cast Time = 0.0
|
Cast Time = 0.0
|
||||||
@ -239,35 +54,84 @@ ItemDatabase
|
|||||||
Bandages
|
Bandages
|
||||||
{
|
{
|
||||||
ItemScript = Restore
|
ItemScript = Restore
|
||||||
Description = Restores 10% health points.
|
Description = Restores 30% health points over 6 seconds. The effect can be interrupted.
|
||||||
HP % Restore = 10%
|
HP % Restore = 30%
|
||||||
Cast Time = 1.0
|
Cast Time = 6.0
|
||||||
Cooldown Time = 5.0
|
Cooldown Time = 5.0
|
||||||
ItemCategory = Consumables
|
ItemCategory = Consumables
|
||||||
|
SellValue = 7
|
||||||
|
BuyValue = 10
|
||||||
}
|
}
|
||||||
Green Slime Remains
|
Green Slime Remains
|
||||||
{
|
{
|
||||||
Description = The remains of a green slime. It stares at you intently.
|
Description = The remains of a green slime. It stares at you intently.
|
||||||
ItemCategory = Materials
|
ItemCategory = Materials
|
||||||
|
SellValue = 2
|
||||||
}
|
}
|
||||||
Blue Slime Remains
|
Blue Slime Remains
|
||||||
{
|
{
|
||||||
Description = The remains of a blue slime. It stares at you intently.
|
Description = The remains of a blue slime. It stares at you intently.
|
||||||
ItemCategory = Materials
|
ItemCategory = Materials
|
||||||
|
SellValue = 4
|
||||||
}
|
}
|
||||||
Red Slime Remains
|
Red Slime Remains
|
||||||
{
|
{
|
||||||
Description = The remains of a red slime. It stares at you intently.
|
Description = The remains of a red slime. It stares at you intently.
|
||||||
ItemCategory = Materials
|
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
|
Logs
|
||||||
{
|
{
|
||||||
Description = A small unrefined pile of logs.
|
Description = A small unrefined pile of logs.
|
||||||
ItemCategory = Materials
|
ItemCategory = Materials
|
||||||
|
SellValue = 3
|
||||||
|
}
|
||||||
|
High-Quality Logs
|
||||||
|
{
|
||||||
|
Description = A small unrefined pile of logs of exceptional quality.
|
||||||
|
ItemCategory = Materials
|
||||||
|
SellValue = 7
|
||||||
}
|
}
|
||||||
Green Gemstone
|
Green Gemstone
|
||||||
{
|
{
|
||||||
Description = Radiating with energy from the forest, it is used to refine stronger equipment.
|
Description = Radiating with energy from the forest, it is used to refine stronger equipment.
|
||||||
ItemCategory = Materials
|
ItemCategory = Materials
|
||||||
|
SellValue = 180
|
||||||
}
|
}
|
||||||
}
|
}
|
26
Crawler/assets/config/shops/Chapter 1 Merchants.txt
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
4
Crawler/assets/config/shops/Chapter 2 Merchants.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Merchant
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
Crawler/assets/config/shops/Chapter 3 Merchants.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Merchant
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
Crawler/assets/config/shops/Chapter 4 Merchants.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Merchant
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
Crawler/assets/config/shops/Chapter 5 Merchants.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Merchant
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
4
Crawler/assets/config/shops/Chapter 6 Merchants.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Merchant
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
BIN
Crawler/assets/items/Bear Blood.png
Normal file
After ![]() (image error) Size: 723 B |
BIN
Crawler/assets/items/Bear Claw.png
Normal file
After ![]() (image error) Size: 643 B |
BIN
Crawler/assets/items/Berries.png
Normal file
After ![]() (image error) Size: 825 B |
BIN
Crawler/assets/items/Elixir of Bear Strength.png
Normal file
After ![]() (image error) Size: 8.9 KiB |
BIN
Crawler/assets/items/Flower Petals.png
Normal file
After ![]() (image error) Size: 737 B |
BIN
Crawler/assets/items/Frog Skin.png
Normal file
After ![]() (image error) Size: 739 B |
BIN
Crawler/assets/items/High-Quality Logs.png
Normal file
After ![]() (image error) Size: 11 KiB |
Before ![]() (image error) Size: 789 B After ![]() (image error) Size: 789 B ![]() ![]() |
Before ![]() (image error) Size: 798 B After ![]() (image error) Size: 798 B ![]() ![]() |
BIN
Crawler/assets/items/Minor Recovery Potion.png
Normal file
After ![]() (image error) Size: 7.5 KiB |
BIN
Crawler/assets/items/Wolf Skin.png
Normal file
After ![]() (image error) Size: 869 B |
BIN
Crawler/assets/items/Yellow Slime Remains.png
Normal file
After ![]() (image error) Size: 701 B |