Add automated script to apply all assets to the unit testing framework each run. Add new runtime warning for RowInventoryScrollableWindowComponent items that have item boxes larger than the actual component. Move testingMode flag for AiL class to be set before game configurations are read. Add branch for reading specific unit test game configuration files. Include unit test-specific images and configs committed to repository. Add Disassemble function to inventory class. Add Disassemble item test. Fix issues with extra stray shared pointers lingering everywhere when adding/removing items and grabbing their references. Make Stage Loot/Monster Loot have brand new shared pointers to items (copy instead of strong reference) so weak pointer references to existing items actually expire and behave as expected. Move Monster Loot and Stage Loot clear calls to the switch to Overworld Map trigger. Release Build 10476.
parent
13eeb46000
commit
830b893b1c
@ -0,0 +1,2 @@ |
||||
$ErrorActionPreference = "Stop" |
||||
cp -R -Force '../Adventures in Lestoria/assets' '../x64/Unit Testing' |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,389 @@ |
||||
ItemDatabase |
||||
{ |
||||
Berries |
||||
{ |
||||
ItemScript = Restore |
||||
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 |
||||
UseSound = Consume Item |
||||
} |
||||
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 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Green Slime Remains,3 |
||||
Item[1] = Blue Slime Remains,1 |
||||
|
||||
Gold = 10 |
||||
} |
||||
} |
||||
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 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 2 |
||||
|
||||
Item[0] = Red Slime Remains,1 |
||||
Item[1] = Yellow Slime Remains,1 |
||||
|
||||
Gold = 0 |
||||
} |
||||
} |
||||
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 |
||||
SellValue = 15 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Blue Slime Remains,1 |
||||
Item[1] = Red Slime Remains,1 |
||||
Item[2] = Flower Petals,1 |
||||
|
||||
Gold = 0 |
||||
} |
||||
} |
||||
Elixir of Bear Strength |
||||
{ |
||||
ItemScript = Buff |
||||
Description = Increase your attack by 15% for 30 seconds. |
||||
Attack % = 15%,30 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 30 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Bear Claw,1 |
||||
Item[1] = Bear Blood,1 |
||||
|
||||
Gold = 0 |
||||
} |
||||
} |
||||
Bandages |
||||
{ |
||||
ItemScript = RestoreDuringCast |
||||
Description = Restores 30% health points casting for 6 seconds. The effect can be interrupted. |
||||
HP % Restore = 5%,0.9,6 |
||||
Cast Time = 6.0 |
||||
Cooldown Time = 5.0 |
||||
ItemCategory = Consumables |
||||
SellValue = 7 |
||||
BuyValue = 10 |
||||
UseSound = Consume Item |
||||
} |
||||
Health Potion |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Restores 75 health points. |
||||
HP Restore = 75 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 24 |
||||
BuyValue = 35 |
||||
UseSound = Consume Potion |
||||
} |
||||
Mana Potion |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Restores 60 mana points over the next 15 seconds. |
||||
MP Restore = 4,1,15 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 28 |
||||
BuyValue = 40 |
||||
UseSound = Consume Potion |
||||
} |
||||
Recovery Potion |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Recovers 90 health points over the next 15 seconds. |
||||
HP Restore = 18,3,15 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 29 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 2 |
||||
|
||||
Item[0] = Yellow Slime Remains,1 |
||||
Item[1] = Stone Heart,1 |
||||
|
||||
Gold = 0 |
||||
} |
||||
} |
||||
Elixir of the Wind |
||||
{ |
||||
ItemScript = Buff |
||||
Description = Increase your Movement Speed by 25% for 30 seconds. |
||||
Move Spd % = 25%,30 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 30 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 2 |
||||
|
||||
Item[0] = Hawk Feather,3 |
||||
|
||||
Gold = 0 |
||||
} |
||||
} |
||||
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 |
||||
} |
||||
Slimy Bun |
||||
{ |
||||
Description = It's cute and hideous at the same time. |
||||
ItemCategory = Materials |
||||
SellValue = 40 |
||||
} |
||||
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 |
||||
} |
||||
Windhound Skin |
||||
{ |
||||
Description = The skin of a windhound with only minor damages. |
||||
ItemCategory = Materials |
||||
SellValue = 6 |
||||
|
||||
# Used in version 6216 and earlier. |
||||
Alternative Name[0] = Wolf Skin |
||||
} |
||||
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 |
||||
} |
||||
Time Medal |
||||
{ |
||||
Description = A medal provided to top athletes in Lestoria commemorating a huge victory. |
||||
ItemCategory = Materials |
||||
} |
||||
Boar Meat |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Recovers 120 health points over the next 120 seconds. |
||||
HP Restore = 1,1,120 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 9 |
||||
UseSound = Consume Potion |
||||
} |
||||
Broken Dagger |
||||
{ |
||||
Description = A broken weapon, wielded by a goblin. |
||||
ItemCategory = Materials |
||||
SellValue = 12 |
||||
} |
||||
Broken Bow |
||||
{ |
||||
Description = A broken weapon, wielded by a goblin. |
||||
ItemCategory = Materials |
||||
SellValue = 13 |
||||
} |
||||
Blackpowder |
||||
{ |
||||
Description = Just some powder found in the pockets of a goblin. |
||||
ItemCategory = Materials |
||||
SellValue = 18 |
||||
} |
||||
Hawk Feather |
||||
{ |
||||
Description = A Feather of a Hawk. Sadly no longer in perfect condition. |
||||
ItemCategory = Materials |
||||
SellValue = 7 |
||||
} |
||||
Stone Heart |
||||
{ |
||||
Description = A stone, shaped in the form of an heart. |
||||
ItemCategory = Materials |
||||
SellValue = 28 |
||||
} |
||||
Flat Recovery Potion |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Restores 50 health and mana points. |
||||
HP Restore = 50 |
||||
MP Restore = 50 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 16 |
||||
BuyValue = 23 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Green Slime Remains,3 |
||||
Item[1] = Blue Slime Remains,1 |
||||
|
||||
Gold = 10 |
||||
} |
||||
} |
||||
Pct Recovery Potion |
||||
{ |
||||
ItemScript = Restore |
||||
Description = Restores 50% health and mana points. |
||||
HP % Restore = 50 |
||||
MP % Restore = 50 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 16 |
||||
BuyValue = 23 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Green Slime Remains,3 |
||||
Item[1] = Blue Slime Remains,1 |
||||
|
||||
Gold = 10 |
||||
} |
||||
} |
||||
Stat Up Everything Potion |
||||
{ |
||||
ItemScript = Buff |
||||
Description = Buffs every stat (Illegally) |
||||
Attack = 1,1.0 |
||||
Attack % = 1%,1.0 |
||||
Defense = 1,1.0 |
||||
Defense % = 1%,1.0 |
||||
Health = 1,1.0 |
||||
Health % = 1%,1.0 |
||||
Move Spd % = 1%,1.0 |
||||
CDR = 1%,1.0 |
||||
Crit Rate = 1%,1.0 |
||||
Crit Dmg = 1%,1.0 |
||||
HP Recovery % = 1%,1.0 |
||||
HP6 Recovery % = 1%,1.0 |
||||
HP4 Recovery % = 1%,1.0 |
||||
Damage Reduction = 1%,1.0 |
||||
Attack Spd = 1,1.0 |
||||
Mana = 1,1.0 |
||||
ItemCategory = Consumables |
||||
Cooldown Time = 5.0 |
||||
Cast Time = 0.0 |
||||
SellValue = 16 |
||||
BuyValue = 23 |
||||
UseSound = Consume Potion |
||||
Crafting |
||||
{ |
||||
# When this crafting recipe is available. |
||||
AvailableChapter = 1 |
||||
|
||||
Item[0] = Green Slime Remains,3 |
||||
Item[1] = Blue Slime Remains,1 |
||||
|
||||
Gold = 10 |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,181 @@ |
||||
ItemSet |
||||
{ |
||||
# Wrap the entire set of stats in the number of pieces required. Example: |
||||
# |
||||
# Example Armor |
||||
# { |
||||
# 3 |
||||
# { #Add a 3-set piece bonus for Example Armor of +5 bonus attack. |
||||
# Attack = 5 |
||||
# } |
||||
# 5 |
||||
# { #Add a 5-set piece bonus for Example Armor of +20 Health. |
||||
# Health = 20 |
||||
# } |
||||
# } |
||||
# |
||||
# |
||||
# Provide any stat name followed by its increase amount to add it to the set. Valid stat names and value examples are below: |
||||
# |
||||
# Defense = 5 # Adds 5 defense |
||||
# Health = 3 # Adds 3 Health |
||||
# Attack = 7 # Adds 7 attack |
||||
# Defense % = 2% # Adds 2% defense |
||||
# Attack % = 5% # Adds 5% attack |
||||
# Move Spd % = 10% # Grants 10% more movement speed. |
||||
# CDR = 14% # Grants 14% cooldown reduction. |
||||
# Crit Rate = 5% # Grants 5% crit rate. |
||||
# Crit Dmg = 25% # Grants 25% bonus crit damage. |
||||
# Health % = 30% # Grants 30% Max health |
||||
# HP6 Recovery % = 4% # Grants 4% HP recovery every 6 seconds. |
||||
# HP4 Recovery % = 2% # Grants 2% HP recovery every 4 seconds. |
||||
# Damage Reduction = 2% # Grants 2% direct damage reduction |
||||
# |
||||
# |
||||
# All Possible Stat modifications can be found in ItemStats.txt |
||||
# |
||||
Leather |
||||
{ |
||||
2 |
||||
{ |
||||
Health % = 3% |
||||
} |
||||
4 |
||||
{ |
||||
HP6 Recovery % = 1% |
||||
} |
||||
} |
||||
Copper |
||||
{ |
||||
2 |
||||
{ |
||||
Defense = 25 |
||||
} |
||||
4 |
||||
{ |
||||
Damage Reduction = 1% |
||||
} |
||||
} |
||||
Shell |
||||
{ |
||||
2 |
||||
{ |
||||
Move Spd % = 5% |
||||
} |
||||
4 |
||||
{ |
||||
CDR = 7% |
||||
} |
||||
} |
||||
Bone |
||||
{ |
||||
2 |
||||
{ |
||||
Crit Rate = 5% |
||||
} |
||||
4 |
||||
{ |
||||
Crit Dmg = 7% |
||||
} |
||||
} |
||||
??? |
||||
{ |
||||
2 |
||||
{ |
||||
Crit Rate = 3% |
||||
Move Spd % = 5% |
||||
Attack = 2% |
||||
} |
||||
4 |
||||
{ |
||||
Crit Dmg = 7% |
||||
CDR = 5% |
||||
Health % = 2% |
||||
} |
||||
} |
||||
Enchanted Leather |
||||
{ |
||||
2 |
||||
{ |
||||
Health % = 10% |
||||
} |
||||
4 |
||||
{ |
||||
HP4 Recovery % = 1% |
||||
} |
||||
} |
||||
Adamantite |
||||
{ |
||||
2 |
||||
{ |
||||
Defense = 120 |
||||
} |
||||
4 |
||||
{ |
||||
Damage Reduction = 10% |
||||
} |
||||
} |
||||
Iron Shell |
||||
{ |
||||
2 |
||||
{ |
||||
Move Spd % = 10% |
||||
} |
||||
4 |
||||
{ |
||||
CDR = 15% |
||||
} |
||||
} |
||||
Cursed Bone |
||||
{ |
||||
2 |
||||
{ |
||||
Crit Rate = 10% |
||||
} |
||||
4 |
||||
{ |
||||
Crit Dmg = 15% |
||||
} |
||||
} |
||||
Test |
||||
{ |
||||
1 |
||||
{ |
||||
Defense = 100 |
||||
Health = 1000 |
||||
Attack = 100 |
||||
} |
||||
} |
||||
Test2 |
||||
{ |
||||
1 |
||||
{ |
||||
Defense % = 100% |
||||
Attack % = 100% |
||||
Move Spd % = 100% |
||||
CDR = 100% |
||||
Crit Rate = 100% |
||||
Crit Dmg = 100% |
||||
Health % = 100% |
||||
HP6 Recovery % = 100% |
||||
} |
||||
} |
||||
Test3 |
||||
{ |
||||
1 |
||||
{ |
||||
HP4 Recovery % = 100% |
||||
Damage Reduction = 100% |
||||
} |
||||
} |
||||
Test4 |
||||
{ |
||||
1 |
||||
{ |
||||
HP Recovery % = 100% |
||||
Attack Spd = 50% |
||||
Mana = 100 |
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,69 @@ |
||||
ItemConfiguration |
||||
{ |
||||
Item Database = ItemDatabase-test.txt |
||||
Item Scripts = ItemScript.txt |
||||
Item Categories = ItemCategory.txt |
||||
Equipment = Equipment-test.txt |
||||
Weapons = Weapons.txt |
||||
Accessories = Accessories.txt |
||||
} |
||||
Item |
||||
{ |
||||
# Amount of time to wait before an item can be used again (Global). |
||||
Item Cooldown Time = 5.0 |
||||
# The maximum enhancement level of equipment. |
||||
Item Max Enhancement Level = 10 |
||||
# The name of the currency in the game. |
||||
Currency Name = Gold |
||||
# Text that displays when items are craftable in the Blacksmith. |
||||
Craftable Item Text = Can Craft |
||||
# Color of the text that displays when items are craftable in the Blacksmith. |
||||
Craftable Item Text Color = 0,255,0,255 |
||||
# Text that displays when items can be upgraded in the Blacksmith. |
||||
Upgradeable Item Text = Upgrade! |
||||
# Color of the text that displays when items can be upgraded in the Blacksmith. |
||||
Upgradeable Item Text Color = 255,255,0,255 |
||||
# Text that displays when items can be upgraded in the Blacksmith but the player doesn't have enough material. |
||||
Missing Upgradeable Item Text = Missing Materials |
||||
# Color of the text that displays when items can be upgraded in the Blacksmith but the player doesn't have enough material. |
||||
Missing Upgradeable Item Text Color = 192,0,0,255 |
||||
# Text that displays when items are maxed out at the Blacksmith. |
||||
Maxed Item Text = MAX LV |
||||
# Color of the text that displays when items are maxed out at the Blacksmith. |
||||
Maxed Item Text Color = 0,255,255,255 |
||||
|
||||
# The names of items to be sorted for equipment lists. |
||||
Equipment Sort Order Primary = Wooden, Leather, Steel, Copper, Shell, Bone, Laser, Plasma, Unknown, Test, Test2, Test3 |
||||
# The types of the items to be sorted for equipment lists if they have the same primary type. |
||||
Equipment Sort Order Secondary = Helmet, Armor, Pants, Gloves, Shoes, Sword, Bow, Staff |
||||
} |
||||
ItemDrop |
||||
{ |
||||
# Item drops horizontal random speed range |
||||
Item Drop Horizontal Speed = -30,30 |
||||
|
||||
# Item drops vertical random speed range |
||||
Item Drop Vertical Speed = -15,15 |
||||
|
||||
# Item drop suction range |
||||
Item Drop Suction Range = 360 |
||||
|
||||
# Item drop suction strength |
||||
Item Drop Suction Strength = 8000 |
||||
|
||||
# Item drop initial rise speed |
||||
Item Drop Initial Rise Speed = 10 |
||||
|
||||
# Item drop gravity |
||||
Item Drop Gravity = -9.8 |
||||
|
||||
# Item drop scale |
||||
Item Drop Scale = 0.4 |
||||
} |
||||
ItemOverlay |
||||
{ |
||||
# Amount of time the item overlay display remains on-screen. |
||||
Item Overlay Time = 5.0 |
||||
# How fast the item overlay display moves into the screen (from the left edge). |
||||
Item Overlay Speed = 200 |
||||
} |
After Width: | Height: | Size: 621 B |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
Loading…
Reference in new issue