Skip to content

Commit

Permalink
Add additional BP sets for SMN for Magical, Physical and Hybrid BPs
Browse files Browse the repository at this point in the history
(cherry picked from commit b61b84d)
  • Loading branch information
genshinteambuilds committed May 2, 2024
1 parent 5e895a5 commit 797342f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
3 changes: 3 additions & 0 deletions DO_NOT_DELETE.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@

### v1.2.9
- BLM - Add explicit Stun set

### v1.2.10
- SMN - Add additional sets for Magical, Hybrid and Physical BPs
14 changes: 7 additions & 7 deletions Rag_5040/PLD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ local sets = {
Legs = 'Coral Cuisses +1', -- 3
Feet = 'Coral Greaves +1', -- 2
},
FireRes = {
FireRes = { -- 153
Main = 'Neptune\'s Staff', -- 20
Sub = '',
Range = 'Rosenbogen',
Expand All @@ -119,12 +119,12 @@ local sets = {
Hands = 'Tarasque Mitts', -- 5
Ring1 = 'Ruby Ring', -- 9
Ring2 = 'Malflame Ring', -- 10
Back = 'Dino Mantle',
Back = 'Dino Mantle', -- 4
Waist = 'Water Belt', -- 20
Legs = 'Blood Cuisses', -- 21
Feet = 'Power Sandals', -- 7
},
IceRes = {
IceRes = { -- 151
Main = 'Vulcan\'s Staff', -- 20
Sub = '',
Range = 'Rosenbogen',
Expand All @@ -142,7 +142,7 @@ local sets = {
Legs = 'Feral Trousers', -- 6
Feet = 'Blood Greaves', -- 21
},
LightningRes = {
LightningRes = { -- 154
Main = 'Terra\'s Staff', -- 20
Sub = '',
Range = 'Lightning Bow +1', -- 7
Expand All @@ -160,7 +160,7 @@ local sets = {
Legs = 'Blood Cuisses', -- 21
Feet = 'Dst. Leggings +1',
},
EarthRes = {
EarthRes = { -- 154
Main = 'Auster\'s Staff', -- 20
Sub = '',
Range = 'Rosenbogen',
Expand All @@ -178,7 +178,7 @@ local sets = {
Legs = 'Beak Trousers +1', -- 7
Feet = 'Blood Greaves', -- 21
},
WindRes = {
WindRes = { -- 135
Main = 'Aquilo\'s Staff', -- 20
Sub = '',
Range = 'Rosenbogen',
Expand All @@ -196,7 +196,7 @@ local sets = {
Legs = 'Coral Cuisses +1',
Feet = 'Blood Greaves', -- 21
},
WaterRes = {
WaterRes = { -- 145
Main = 'Jupiter\'s Staff', -- 20
Sub = '',
Range = 'Rosenbogen',
Expand Down
27 changes: 27 additions & 0 deletions Rag_5040/SMN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ local sets = {
Waist = 'Hierarch Belt',
Neck = 'Smn. Torque',
},
BP_Magical = {
},
BP_Physical = {
},
BP_Hybrid = {
},
}
profile.Sets = sets

Expand All @@ -298,6 +304,12 @@ Everything below can be ignored.
--------------------------------
]]

local SmnSkill = T{'Shining Ruby','Glittering Ruby','Crimson Howl','Inferno Howl','Frost Armor','Crystal Blessing','Aerial Armor','Hastega II','Fleet Wind','Hastega','Earthen Ward','Earthen Armor','Rolling Thunder','Lightning Armor','Soothing Current','Ecliptic Growl','Heavenward Howl','Ecliptic Howl','Noctoshield','Dream Shroud','Altana\'s Favor','Reraise','Reraise II','Reraise III','Raise','Raise II','Raise III','Wind\'s Blessing'}
local SmnHealing = T{'Healing Ruby','Healing Ruby II','Whispering Wind','Spring Water'}
local SmnMagical = T{'Searing Light','Meteorite','Holy Mist','Inferno','Fire II','Fire IV','Meteor Strike','Conflag Strike','Diamond Dust','Blizzard II','Blizzard IV','Heavenly Strike','Aerial Blast','Aero II','Aero IV','Wind Blade','Earthen Fury','Stone II','Stone IV','Geocrush','Judgement Bolt','Thunder II','Thunder IV','Thunderstorm','Thunderspark','Tidal Wave','Water II','Water IV','Grand Fall','Howling Moon','Lunar Bay','Ruinous Omen','Somnolence','Nether Blast','Night Terror','Level ? Holy'}
local SmnEnfeebling = T{'Diamond Storm','Sleepga','Shock Squall','Slowga','Tidal Roar','Pavor Nocturnus','Ultimate Terror','Nightmare','Mewing Lullaby','Eerie Eye'}
local SmnHybrid = T{'Flaming Crush','Burning Strike'};

gcmage = gFunc.LoadFile('common\\gcmage.lua')

profile.HandleAbility = function()
Expand Down Expand Up @@ -338,6 +350,21 @@ profile.HandleDefault = function()
local petAction = gData.GetPetAction()
if (petAction ~= nil) then
gFunc.EquipSet('BP')

-- Era provides near zero gear options so almost all of these just default to the default BP set or Magical
if (SmnSkill:contains(petAction.Name)) then
-- Do Nothing
elseif (SmnMagical:contains(petAction.Name)) then
gFunc.EquipSet(sets.BP_Magical)
elseif (SmnHybrid:contains(petAction.Name)) then
gFunc.EquipSet(sets.BP_Hybrid)
elseif (SmnHealing:contains(petAction.Name)) then
-- Do Nothing
elseif (SmnEnfeebling:contains(petAction.Name)) then
gFunc.EquipSet(sets.BP_Magical)
else
gFunc.EquipSet(sets.BP_Physical)
end
else
gcmage.DoDefault(nil, nil, nil, nil)
end
Expand Down

0 comments on commit 797342f

Please sign in to comment.