Skip to content

Commit d2ffc43

Browse files
authored
Add support for Replica Dragonfang's Flight variants (#8747)
* Add support for Replica Dragonfang's Flight variants Generate Variants for Replica Dragonfang's Flight * Remove current implementation for Replica Dragonfang's Flight * remove range from generation
1 parent afb958a commit d2ffc43

File tree

2 files changed

+55
-15
lines changed

2 files changed

+55
-15
lines changed

src/Data/Uniques/Special/Generated.lua

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,3 +881,58 @@ for _, modId in ipairs(sortedCharmsMods) do
881881
end
882882

883883
table.insert(data.uniques.generated, table.concat(thatWhichWasTaken, "\n"))
884+
885+
886+
local replicaDragonfangsFlightMods = {}
887+
888+
LoadModule("Modules/CalcTools")
889+
for _, gem in pairs(data.gems) do
890+
if not string.match(gem.grantedEffectId, "Alt[XY]$") and calcLib.gemIsType(gem, "active skill", false) and calcLib.gemIsType(gem, "non-vaal", false) then
891+
replicaDragonfangsFlightMods[gem.name] = "+3 to Level of all "..gem.name.." Gems"
892+
end
893+
end
894+
895+
local replicaDragonfangsFlight = {
896+
[[Replica Dragonfang's Flight
897+
Onyx Amulet
898+
Selected Variant: 2
899+
Has Alt Variant: true
900+
Selected Alt Variant: 3
901+
LevelReq: 56
902+
]]
903+
}
904+
905+
table.insert(replicaDragonfangsFlight,
906+
[[Variant: Pre 3.23.0
907+
Variant: Current
908+
]]
909+
)
910+
911+
for name, _ in pairs(replicaDragonfangsFlightMods) do
912+
table.insert(replicaDragonfangsFlight, "Variant: "..name)
913+
end
914+
915+
table.insert(replicaDragonfangsFlight,
916+
[[Implicits: 1
917+
{tags:jewellery_attribute}+(10-16) to all Attributes
918+
{tags:jewellery_resistance}{variant:1}+(10-15)% to all Elemental Resistances
919+
{tags:jewellery_resistance}{variant:2}+(5-10)% to all Elemental Resistances
920+
]]
921+
)
922+
923+
local index = 3
924+
for _, line in pairs(replicaDragonfangsFlightMods) do
925+
table.insert(replicaDragonfangsFlight, "{variant:"..index.."}"..line)
926+
index = index + 1
927+
end
928+
929+
table.insert(replicaDragonfangsFlight,
930+
[[
931+
{variant:1}(10-15)% increased Reservation Efficiency of Skills
932+
{variant:2}(5-10)% increased Reservation Efficiency of Skills
933+
{variant:1}Items and Gems have (10-15)% reduced Attribute Requirements
934+
{variant:2}Items and Gems have (5-10)% reduced Attribute Requirements
935+
]]
936+
)
937+
938+
table.insert(data.uniques.generated, table.concat(replicaDragonfangsFlight, "\n"))

src/Data/Uniques/amulet.lua

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -904,21 +904,6 @@ Implicits: 1
904904
{variant:2}Always Freeze, Shock and Ignite
905905
{variant:1}Cannot gain Power Charges
906906
]],[[
907-
Replica Dragonfang's Flight
908-
Onyx Amulet
909-
Variant: Pre 3.23.0
910-
Variant: Current
911-
LevelReq: 56
912-
Implicits: 1
913-
{tags: jewellery_attribute}+(10-16) to all Attributes
914-
{variant:1}{tags:jewellery_resistance}+(10-15)% to all Elemental Resistances
915-
{variant:2}{tags:jewellery_resistance}+(5-10)% to all Elemental Resistances
916-
+3 to Level of all Spark Gems
917-
{variant:1}(10-15)% increased Reservation Efficiency of Skills
918-
{variant:2}(5-10)% increased Reservation Efficiency of Skills
919-
{variant:1}Items and Gems have (10-15)% reduced Attribute Requirements
920-
{variant:2}Items and Gems have (5-10)% reduced Attribute Requirements
921-
]],[[
922907
Retaliation Charm
923908
Citrine Amulet
924909
Variant: Pre 3.19.0

0 commit comments

Comments
 (0)