Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 80 additions & 166 deletions src/Data/QuestRewards.lua
Original file line number Diff line number Diff line change
@@ -1,244 +1,158 @@
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games

return {
{
["Act"] = 1,
["Type"] = "Normal",
["Area"] = "Clearfell",
["Area"] = "Beira of the Rotten Pack",
["Stat"] = "+10% to Cold Resistance",
["questPoints"] = 0,
["AreaLevel"] = 2,
["useConfig"] = true
},
{
["Act"] = 1,
["Type"] = "Normal",
["Area"] = "Hunting Grounds",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Area"] = "The Crowbell",
["questPoints"] = 2,
["AreaLevel"] = 10,
["useConfig"] = false
},
{
["Act"] = 1,
["Type"] = "Normal",
["Area"] = "Freythorn",
["Area"] = "The King in the Mists",
["Stat"] = "+30 to Spirit",
["questPoints"] = 0,
["AreaLevel"] = 11,
["useConfig"] = true
},
{
["Act"] = 1,
["Type"] = "Normal",
["Area"] = "Ogham Farmlands",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["questPoints"] = 2,
["AreaLevel"] = 12,
["useConfig"] = false
},
{
["Act"] = 1,
["Type"] = "Normal",
["Area"] = "Ogham Manor",
["Area"] = "Candlemass, the Living Rite",
["Stat"] = "+20 to maximum Life",
["questPoints"] = 0,
["AreaLevel"] = 15,
["useConfig"] = true
},
{
["Act"] = 2,
["Type"] = "Normal",
["Area"] = "Keth",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Area"] = "Kabala, Constrictor Queen",
["questPoints"] = 2,
["AreaLevel"] = 25,
["useConfig"] = false
["AreaLevel"] = 21,
},
{
["Act"] = 2,
["Area"] = "Medallion",
["Stat"] = "30% increased Charm Charges gained,+1 Charm Slot",
["questPoints"] = 0,
["AreaLevel"] = 21,
},
{
["Act"] = 2,
["Type"] = "Normal",
["Area"] = "Valley of the Titans",
["Options"] = {
"30% increased Charm Charges gained",
"15% increased Mana Recovery from Flasks",
},
["AreaLevel"] = 26,
["useConfig"] = true
["Area"] = "Medallion",
["Stat"] = "30% increased Charm Effect Duration,+1 Charm Slot",
["questPoints"] = 0,
["AreaLevel"] = 21,
},
{
["Act"] = 2,
["Type"] = "Normal",
["Area"] = "Deshar",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Area"] = "Final Letter",
["questPoints"] = 2,
["AreaLevel"] = 28,
["useConfig"] = false
},
{
["Act"] = 2,
["Type"] = "Normal",
["Area"] = "The Spires of Deshar",
["Area"] = "Sisters of Garukhan",
["Stat"] = "+10% to Lightning Resistance",
["questPoints"] = 0,
["AreaLevel"] = 30,
["useConfig"] = true
},
{
["Act"] = 3,
["Type"] = "Normal",
["Area"] = "Jungle Ruins",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Area"] = "Mighty Silverfist",
["questPoints"] = 2,
["AreaLevel"] = 32,
["useConfig"] = false
["AreaLevel"] = 34,
},
{
["Act"] = 3,
["Type"] = "Normal",
["Area"] = "The Azak Bog",
["Stat"] = "+30 to Spirit",
["AreaLevel"] = 38,
["useConfig"] = true
["Area"] = "Venom Draught",
["Stat"] = "25% increased Stun Threshold",
["questPoints"] = 0,
["AreaLevel"] = 35,
},
{
["Act"] = 3,
["Type"] = "Normal",
["Area"] = "The Venom Crypts",
["Options"] = {
"25% increased Stun Threshold",
"30% increased Elemental Ailment Threshold",
"25% increased Mana Regeneration Rate",
},
["AreaLevel"] = 39,
["useConfig"] = true
["Area"] = "Venom Draught",
["Stat"] = "30% increased Elemental Ailment Threshold",
["questPoints"] = 0,
["AreaLevel"] = 35,
},
{
["Act"] = 3,
["Type"] = "Normal",
["Area"] = "Jiquanis Machinarium",
["Stat"] = "+10% to Fire Resistance",
["AreaLevel"] = 40,
["useConfig"] = true
["Area"] = "Venom Draught",
["Stat"] = "25% increased Mana Regeneration Rate",
["questPoints"] = 0,
["AreaLevel"] = 35,
},
{
["Act"] = 3,
["Type"] = "Normal",
["Area"] = "Aggorat",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["questPoints"] = 2,
["AreaLevel"] = 44,
["useConfig"] = false
["Area"] = "Blackjaw, the Remnant",
["Stat"] = "+10% to Fire Resistance",
["questPoints"] = 0,
["AreaLevel"] = 37,
},
{
["Act"] = 1,
["Type"] = "Cruel",
["Area"] = "Clearfell",
["Stat"] = "+10% to Cold Resistance",
["AreaLevel"] = 45,
["useConfig"] = true
["Act"] = 3,
["Area"] = "Ignagduk, the Bog Witch",
["Stat"] = "+30 to Spirit",
["questPoints"] = 0,
["AreaLevel"] = 36,
},
{
["Act"] = 1,
["Type"] = "Cruel",
["Area"] = "Hunting Grounds",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["questPoints"] = 2,
["AreaLevel"] = 49,
["useConfig"] = false
["Act"] = 3,
["Area"] = "Ultimatum",
["questPoints"] = 0,
["AreaLevel"] = 38,
},
{
["Act"] = 1,
["Type"] = "Cruel",
["Area"] = "Ogham Farmlands",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Act"] = 3,
["Area"] = "Blood Sacrifice",
["questPoints"] = 2,
["AreaLevel"] = 49,
["useConfig"] = false
},
{
["Act"] = 1,
["Type"] = "Cruel",
["Area"] = "Ogham Manor",
["Stat"] = "5% increased maximum Life",
["AreaLevel"] = 51,
["useConfig"] = true
["AreaLevel"] = 44,
},
{
["Act"] = 2,
["Type"] = "Cruel",
["Area"] = "Keth",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["questPoints"] = 2,
["AreaLevel"] = 55,
["useConfig"] = false
["Act"] = 4,
["Area"] = "Goddess of Justice",
["Stat"] = "30% increased Life Recovery from Flasks",
["questPoints"] = 0,
["AreaLevel"] = 46,
},
{
["Act"] = 2,
["Type"] = "Cruel",
["Area"] = "Valley of the Titans",
["Options"] = {
"30% increased Charm Charges gained",
"15% increased Life Recovery from Flasks",
},
["AreaLevel"] = 55,
["useConfig"] = true
["Act"] = 4,
["Area"] = "Goddess of Justice",
["Stat"] = "30% increased Mana Recovery from Flasks",
["questPoints"] = 0,
["AreaLevel"] = 46,
},
{
["Act"] = 2,
["Type"] = "Cruel",
["Area"] = "Deshar",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Act"] = 6,
["Area"] = "Oswin, the Dread Warden",
["questPoints"] = 2,
["AreaLevel"] = 56,
["useConfig"] = false
},
{
["Act"] = 2,
["Type"] = "Cruel",
["Area"] = "The Spires of Deshar",
["Stat"] = "+10% to Lightning Resistance",
["AreaLevel"] = 57,
["useConfig"] = true
},
{
["Act"] = 3,
["Type"] = "Cruel",
["Area"] = "Jungle Ruins",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["questPoints"] = 2,
["AreaLevel"] = 58,
["useConfig"] = false
["Act"] = 6,
["Area"] = "Molten Shrine",
["Stat"] = "5% increased maximum Life",
["questPoints"] = 0,
["AreaLevel"] = 54,
},
{
["Act"] = 3,
["Type"] = "Cruel",
["Area"] = "The Azak Bog",
["Act"] = 6,
["Area"] = "Lythara, the Wayward Spear",
["Stat"] = "+40 to Spirit",
["AreaLevel"] = 60,
["useConfig"] = true
},
{
["Act"] = 3,
["Type"] = "Cruel",
["Area"] = "The Venom Crypts",
["Options"] = {
"+10% to Chaos Resistance",
"+5 to All Attributes",
"15% reduced Slowing Potency of Debuffs on you",
},
["AreaLevel"] = 59,
["useConfig"] = true
["questPoints"] = 0,
["AreaLevel"] = 54,
},
{
["Act"] = 3,
["Type"] = "Cruel",
["Area"] = "Jiquanis Machinarium",
["Stat"] = "+10% to Fire Resistance",
["AreaLevel"] = 60,
["useConfig"] = true
},
{
["Act"] = 3,
["Type"] = "Cruel",
["Area"] = "Aggorat",
["Stat"] = "+2 Weapon Set Passive Skill Points",
["Act"] = 6,
["Area"] = "The Abominable Yeti",
["questPoints"] = 2,
["AreaLevel"] = 63,
["useConfig"] = false
["AreaLevel"] = 55,
},
}
1 change: 1 addition & 0 deletions src/Export/Classes/GGPKData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function GGPKClass:GetNeededFiles()
"Data/Stats.dat",
"Data/VirtualStatContextFlags.dat",
"Data/BaseItemTypes.dat",
"Data/MapPins.dat",
"Data/WeaponTypes.dat",
"Data/ArmourTypes.dat",
"Data/ShieldTypes.dat",
Expand Down
34 changes: 34 additions & 0 deletions src/Export/Scripts/questRewards.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
if not loadStatFile then
dofile("statdesc.lua")
end
loadStatFile("stat_descriptions.csd")

local out = io.open("../Data/QuestRewards.lua", "w")
out:write('-- This file is automatically generated, do not edit!\n')
out:write('-- Item data (c) Grinding Gear Games\n\nreturn {\n')
for _, pin in pairs(dat("MapPins"):GetRowList("HasReward", true)) do
if #pin.ShowFlags == 1 then
local questReward = dat("QuestStaticRewards"):GetRow("QuestFlag", pin.ShowFlags[1])
if questReward then
out:write('\t{\n')
out:write('\t\t["Act"] = ', pin.Act, ',\n')
out:write('\t\t["Area"] = "', pin.Name, '",\n')
local stats = { }
local hasStat = false
for i, stat in pairs(questReward.Stats) do
hasStat = true
local statValue = questReward.StatValues[i]
stats[stat.Id] = { min = statValue, max = statValue }
end
if hasStat then
out:write('\t\t["Stat"] = "', table.concat(describeStats(stats), ","), '",\n')
end
out:write('\t\t["questPoints"] = ', questReward.WeaponSetPointsRewarded, ',\n')
local worldArea = dat("WorldAreas"):GetRow("Id", pin.BaseMapPin.Id)
out:write('\t\t["AreaLevel"] = ', worldArea.AreaLevel, ',\n')
out:write('\t},\n')
end
end
end
out:write('}')
out:close()
Loading
Loading