From 3c40b3ee41cad3f210295fc66b5f49ec3f4f77c5 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Thu, 1 Aug 2024 10:04:35 -0500 Subject: [PATCH] Added sample Item Enchant configuration file. --- Adventures in Lestoria Tests/ItemTests.cpp | 2 - .../Adventures in Lestoria.vcxproj | 1 + .../Adventures in Lestoria.vcxproj.filters | 3 + Adventures in Lestoria/ItemEnchants.txt | 463 ++++++++++++++++++ 4 files changed, 467 insertions(+), 2 deletions(-) create mode 100644 Adventures in Lestoria/ItemEnchants.txt diff --git a/Adventures in Lestoria Tests/ItemTests.cpp b/Adventures in Lestoria Tests/ItemTests.cpp index efece0d2..aa05d3f3 100644 --- a/Adventures in Lestoria Tests/ItemTests.cpp +++ b/Adventures in Lestoria Tests/ItemTests.cpp @@ -209,8 +209,6 @@ namespace ItemTests }catch(std::runtime_error&e){} } TEST_METHOD(RefiningTest){ - util::random(); - util::random(); std::weak_ptrslimeKingRing{Inventory::AddItem("Ring of the Slime King"s)}; Assert::IsFalse(slimeKingRing.lock()->CanBeRefined(),L"Ring of the Slime King should not be allowed to be refined since we have no fragments."); std::weak_ptrtestArmor{Inventory::AddItem("Test Armor"s)}; diff --git a/Adventures in Lestoria/Adventures in Lestoria.vcxproj b/Adventures in Lestoria/Adventures in Lestoria.vcxproj index 25871175..eff6b1d5 100644 --- a/Adventures in Lestoria/Adventures in Lestoria.vcxproj +++ b/Adventures in Lestoria/Adventures in Lestoria.vcxproj @@ -1210,6 +1210,7 @@ + diff --git a/Adventures in Lestoria/Adventures in Lestoria.vcxproj.filters b/Adventures in Lestoria/Adventures in Lestoria.vcxproj.filters index f5948577..b417558f 100644 --- a/Adventures in Lestoria/Adventures in Lestoria.vcxproj.filters +++ b/Adventures in Lestoria/Adventures in Lestoria.vcxproj.filters @@ -1379,6 +1379,9 @@ Configurations\Story + + Configurations\Items + diff --git a/Adventures in Lestoria/ItemEnchants.txt b/Adventures in Lestoria/ItemEnchants.txt new file mode 100644 index 00000000..8053914c --- /dev/null +++ b/Adventures in Lestoria/ItemEnchants.txt @@ -0,0 +1,463 @@ +Item Enchants +{ + General Enchants + { + # Chance to roll + Percent Chance = 50% + Enchant Display Color = 253, 255, 206, 255 + + Health Increase + { + Description = "Increases Maximum Health." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Health, 10, 25 + # Stat Modifier[1] = ... + } + Health Boost + { + Description = "Increases Maximum Health %." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Health %, 5, 10 + # Stat Modifier[1] = ... + } + Defense Increase + { + Description = "Increases Defense." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Defense, 10, 25 + # Stat Modifier[1] = ... + } + Defense Boost + { + Description = "Increases Defense %." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Defense %, 5, 10 + # Stat Modifier[1] = ... + } + Attack Increase + { + Description = "Increases Attack." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Attack, 5, 10 + # Stat Modifier[1] = ... + } + Attack Boost + { + Description = "Increases Attack %." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Attack %, 2, 5 + # Stat Modifier[1] = ... + } + Movement Boost + { + Description = "Increases Move Spd %." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Move Spd %, 5, 10 + # Stat Modifier[1] = ... + } + Ability Haste + { + Description = "Decreases cooldown time of abilities." + # Stat, Lowest, Highest Value + Stat Modifier[0] = CDR, 2, 5 + # Stat Modifier[1] = ... + } + Crit Rate + { + Description = "Increases critical hit rate." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Crit Rate, 2, 5 + # Stat Modifier[1] = ... + } + Crit Damage + { + Description = "Increases damage from critical hits." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Crit Dmg, 5, 10 + # Stat Modifier[1] = ... + } + HP Recovery + { + Description = "Restores health every 6 seconds." + # Stat, Lowest, Highest Value + Stat Modifier[0] = HP6 Recovery %, 2, 4 + # Stat Modifier[1] = ... + } + Stoneskin + { + Description = "Reduces damage taken." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Damage Reduction, 2, 5 + # Stat Modifier[1] = ... + } + Quickstrike + { + Description = "Increases attack rate." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Attack Spd, 3, 5 + # Stat Modifier[1] = ... + } + Mana Pool + { + Description = "Increases maximum mana." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Mana, 10, 20 + # Stat Modifier[1] = ... + } + + } + Class Enchants + { + # Chance to roll + Percent Chance = 40% + Enchant Display Color = 83, 250, 255, 255 + + Ranger + { + Quickdraw + { + Description = "Basic Attack cooldown has a 20% chance of instantly resetting when a target is hit." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Stealthy Retreat + { + Description = "Invulnerability time increased dramatically when using Retreat." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Poisonous Arrow + { + Description = "Every 10 seconds, the next arrow fired becomes a poisonous arrow causing 20% damage every second for 7 seconds." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Extreme Rapid Fire + { + Description = "Fire an additional 5 arrows when using Rapid Fire" + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Charge Beam + { + Description = "Charged Shot's attack radius becomes immensely large." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Mega Charged Shot + { + Description = "Charged Shot's cast time increases by 1.5 seconds. Now deals two times more damage." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Multi-Multishot + { + Description = "Multishot can now hold up to three charges." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + Thief + { + Backstabber + { + Description = "Attacking a target from behind deals an additional 40% damage." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Tumble + { + Description = "Roll range, invulnerability time, and Movespeed boost are all increased by 30%." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Triple Toss + { + Description = "Hidden Dagger now throws three daggers instead of one." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Deadly Mirage + { + Description = "Immediately after dashing once with Deadly Dash, perform another dash in target direction." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Adrenaline Stim + { + Description = "Sacrifice 20% of your health to gain 50% increased attack range. Adrenaline Rush also lasts 30 seconds instead of 8." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + Trapper + { + Burning Arrow + { + Description = "Auto attacks now apply a 6-second burn to targets dealing 20% attack every 2 seconds." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Enfeebled Target + { + Description = "Marked targets are slowed by 30% and deal 20% less damage." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Long-Lasting Mark + { + Description = "Marks now last for 20 seconds." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Trap Collector + { + Description = "You can now hold two charges of each trap." + Affects = Ability 2, Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Lingering Scent + { + Description = "Bleed lasts for 10 seconds longer." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Caught Dead + { + Description = "Caught targets are stuck for 5 seconds." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Concussive Trap + { + Description = "Explosive traps now explode three times when triggered. Additional explosions deal 250% attack." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + Warrior + { + Giant Sword + { + Description = "Attack Range increased by 75%." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Steel Yourself + { + Description = "Negates knockback from collisions." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Auto Guard + { + Description = "If Block is up and you take damage, Block will activate immediately, blocking the attack." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Heavy Guard + { + Description = "Block's duration is doubled." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Advance Shield + { + Description = "Block no longer grants invulnerability or knockback reduction. Block now grants a shield equal to 20% of your health for 10 seconds." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Battle Shout + { + Description = "Battlecry now deals damage equal to your defense." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Slam Shock + { + Description = "Monsters hit by Ground Slam become stunned for 5 seconds." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Sonic Upgrade + { + Description = "Sonic Slash's Cooldown and Mana costs reduced by 20%." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + Witch + { + Bouncing Orb + { + Description = "Homing orb now bounces off of targets up to 4 bounces. Damage reduced to 50% attack. Cannot hit the same target twice in a row." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Nine Lives + { + Description = "Transform's cooldown becomes 20 seconds. Upon using Transform remain in cat form. Instead of taking damage, getting hit will simply revert your form." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Spreading Pain + { + Description = "If Curse of Pain kills a target, it can spread to nearby targets." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Pooling Poison + { + Description = "Throw Poison causes the splash effect to linger for 10 seconds, dealing 100% attack every 2 seconds." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Poison Bounce + { + Description = "Throw Poison bounces along the ground two additional times dealing small splashes of poison for 100% attack damage before the final explosion." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Expunge + { + Description = "Target takes 50% additional damage during Curse of Death." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + Wizard + { + Piercing Bolt + { + Description = "Regular attacks now go through targets. Damage dealt to additional targets reduced by 50%." + Affects = Auto Attack + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Blink Portal + { + Description = "For 5 seconds after using Teleport, the Wizard can activate Teleport again to teleport back to the original location. Cooldown increased to 13 seconds." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Black Hole + { + Description = "After teleporting, creates a small black hole pulling in nearby targets for 4 seconds." + Affects = Right Click Ability + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Trail of Fire + { + Description = "The Firebolt leaves behind a trail of fire, burning targets standing in it for 10% attack every second for 10 seconds." + Affects = Ability 1 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Chain Lightning + { + Description = "Targets affected by Lightning Bolt will send out two additional shocks half a second later to other nearby targets for 100% attack. This can continue up to three times." + Affects = Ability 2 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Summon Comet + { + Description = "Meteor cast time reduced by 1 second. Meteor attack falls twice as quickly." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Solar Flare + { + Description = "Meteor cast time increased by 2 seconds. Meteor is twice as large and deals 1600% attack. Lingering fire rings last twice as long." + Affects = Ability 3 + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } + } + Unique Enchants + { + # Chance to roll + Percent Chance = 10% + Enchant Display Color = 255, 125, 51, 255 + + Magical Protection + { + Description = "Provides a defensive aura granting many boons." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Health %, 5, 10 + Stat Modifier[1] = Defense %, 5, 10 + Stat Modifier[2] = Move Spd %, 5, 10 + Stat Modifier[3] = HP4 Recovery %, 2, 5 + } + Aura of the Beast + { + Description = "Provides an offensive aura granting many boons." + # Stat, Lowest, Highest Value + Stat Modifier[0] = Attack %, 4, 8 + Stat Modifier[1] = Crit Rate, 5, 10 + Stat Modifier[2] = CDR, 5, 10 + Stat Modifier[3] = Crit Dmg 15, 20 + } + Lethal Tempo + { + Description = "Increases Attack Speed by 5% with each strike, up to 25%." + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Second Wind + { + Description = "Gain 1% HP Recovery/sec when below 20% health." + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Death Defiance + { + Description = "30% chance to avoid taking lethal damage." + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + Reaper of Souls + { + Description = "Recover 3 Health for each monster kill." + # Stat, Lowest, Highest Value + # Stat Modifier[0] = ..., 0, 0 + } + } +} \ No newline at end of file