Skip to content

Commit 718eeb0

Browse files
committed
added soul well timer for vp staff
1 parent 23b8dd9 commit 718eeb0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

EQTool/Services/Spells/ParseSpells_spells_us.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public List<SpellBase> GetSpells(Servers servers)
178178
var spellsfile = new FileInfo(Paths.Combine(settings.DefaultEqDirectory, spellfile));
179179
if (spellsfile.Exists)
180180
{
181-
var spellCacheName = $"SpellCache{servers}_1";
181+
var spellCacheName = $"SpellCache{servers}_2";
182182
if (!isdebug)
183183
{
184184
spellCacheName = new string(spellCacheName.Where(a => char.IsLetterOrDigit(a)).ToArray()) + ".bin";
@@ -288,6 +288,15 @@ public List<SpellBase> GetSpells(Servers servers)
288288
}
289289
}
290290

291+
if (spell.name == "Soul Well")
292+
{
293+
spell.casttime = 13 * 1000;
294+
if (!spell.Classes.ContainsKey(PlayerClasses.Necromancer))
295+
{
296+
spell.Classes.Add(PlayerClasses.Necromancer, 50);
297+
}
298+
}
299+
291300
if (spell.Classes.Any() && spell.Classes.All(a => a.Value > 60 && a.Value <= 255))
292301
{
293302
//Debug.WriteLine($"Skipping {spell.name} Class Level Out of range");
@@ -514,6 +523,7 @@ private static SpellBase ParseLine(string line, int offset, int spelliconoffset)
514523
ret.Classes[foundepic.PlayerClass] = 46;
515524
}
516525

526+
517527
return ret;
518528
}
519529
catch (Exception e)

EQtoolsTests/ItemBeginsToGlowTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ public void TestPeggyCloak()
2929
Assert.IsNotNull(spell);
3030
}
3131

32+
[TestMethod]
33+
public void NecroStaff()
34+
{
35+
logParser.Push("You begin casting Soul Well.", DateTime.Now);
36+
logParser.Push("Your Shissar Seance Staff begins to glow.", DateTime.Now);
37+
logParser.Push("You feel your life force drain away.", DateTime.Now.AddSeconds(14));
38+
logParser.Push("A sepulcher skeleton staggers.", DateTime.Now.AddSeconds(14));
39+
var spell = spellWindowViewModel.SpellList.FirstOrDefault(a => a.SpellViewModelType == EQTool.ViewModels.SpellWindow.SpellViewModelType.Spell && a.Id == "Soul Well");
40+
Assert.IsNotNull(spell);
41+
}
3242
}
3343
}

0 commit comments

Comments
 (0)