Skip to content

Commit c0ce9ef

Browse files
Blitz54LocalIdentity
andauthored
Update Minions and Spectres (#1236)
* Check imported spectres for failed checks * Export minions and remove spectres that were disabled, and fix spec * Fix worldarea exports * More Spectres * Readd stupid ancestral minions * Fix world area decription * New ugly spectre GPT formula. Probably wrong, but its accurate so far from what i checked * PROPER Spectre reservation calc * Hungry Wolf * Fix spec * Second Rotted Rat version * Find matching spectre reservation for spectres like Rotted Rat and Terracotta Soldier * Merge current dev * Add back Ancestral Spirits GGG pls fix --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 1e4f9b6 commit c0ce9ef

10 files changed

Lines changed: 3537 additions & 3758 deletions

File tree

src/Classes/ImportTab.lua

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,17 @@ function ImportTabClass:ImportItemsAndSkills(charData)
705705
local spectreList = data.spectres
706706
if typeLine:sub(1, 8) == "Spectre:" then
707707
local spectreName = typeLine:sub(10) -- gets monster name after "Spectre: "
708+
for _, property in pairs(skillData.properties) do
709+
if property.name == "Reservation" and property.values and property.values[1] and property.values[1][1] then
710+
-- Example: "42 [Spirit]"
711+
local reservationValue = property.values[1][1]:match("(%d+)")
712+
if reservationValue then
713+
gemInstance.reservation = tonumber(reservationValue)
714+
end
715+
end
716+
end
708717
for id, spectre in pairs(spectreList) do
709-
if spectre.name == spectreName then
718+
if spectre.name == spectreName and gemInstance.reservation == spectre.spectreReservation then
710719
if not isValueInArray(self.build.spectreList, id) then
711720
t_insert(self.build.spectreList, id)
712721
end
@@ -718,8 +727,17 @@ function ImportTabClass:ImportItemsAndSkills(charData)
718727
end
719728
if typeLine:sub(1, 10) == "Companion:" then
720729
local companionName = typeLine:sub(12)
730+
for _, property in pairs(skillData.properties) do
731+
if property.name == "Reservation" and property.values and property.values[1] and property.values[1][1] then
732+
-- Example: "42.3% [Spirit]"
733+
local companionReservation = property.values[1][1]:match("([%d%.]+)%%?")
734+
if companionReservation then
735+
gemInstance.companionReservation = tonumber(companionReservation)
736+
end
737+
end
738+
end
721739
for id, spectre in pairs(spectreList) do
722-
if spectre.name == companionName then
740+
if spectre.name == companionName and gemInstance.companionReservation == spectre.companionReservation then
723741
if not isValueInArray(self.build.beastList, id) then
724742
t_insert(self.build.beastList, id)
725743
end

src/Data/Minions.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ minions["RaisedSkeletonBrute"] = {
122122
skillList = {
123123
"MinionMeleeStep",
124124
"BoneshatterBruteMinion",
125+
"ShatteringRoarSkeletalBruteMinion",
125126
},
126127
modList = {
127128
-- MonsterNoDropsOrExperience [monster_no_drops_or_experience = 1]
@@ -185,7 +186,7 @@ minions["RaisedSkeletonFrostMage"] = {
185186
},
186187
skillList = {
187188
"FrostBoltSkeletonMageMinion",
188-
"IceBombSkeletonMageMinion",
189+
"IceArmourSkeletonMageMinion",
189190
},
190191
modList = {
191192
-- MonsterNoDropsOrExperience [monster_no_drops_or_experience = 1]
@@ -505,6 +506,8 @@ minions["UnearthBoneConstruct"] = {
505506
},
506507
skillList = {
507508
"MinionMelee",
509+
"DATTBoneConstructPlayerSummoned",
510+
"GABoneConstructPlayerSummoned",
508511
},
509512
modList = {
510513
-- MonsterNoDropsOrExperience [monster_no_drops_or_experience = 1]
@@ -586,6 +589,7 @@ minions["RavenousSwarm"] = {
586589
damageSpread = 0.3,
587590
attackTime = 1,
588591
attackRange = 1,
592+
accuracy = 1,
589593
baseMovementSpeed = 24,
590594
spectreReservation = 50,
591595
companionReservation = 30,
@@ -611,6 +615,7 @@ minions["LivingLightning"] = {
611615
damageSpread = 0.8,
612616
attackTime = 1,
613617
attackRange = 20,
618+
accuracy = 1,
614619
baseMovementSpeed = 97,
615620
spectreReservation = 50,
616621
companionReservation = 30,

0 commit comments

Comments
 (0)