feat: Moves skills to json file (#1411)
This commit is contained in:
parent
c18d0d23ff
commit
baed849f10
9 changed files with 906 additions and 109 deletions
|
|
@ -17,8 +17,6 @@ namespace Server
|
|||
|
||||
if (Core.AOS)
|
||||
{
|
||||
AOS.DisableStatInfluences();
|
||||
|
||||
if (ObjectPropertyList.Enabled)
|
||||
{
|
||||
// single click for everything is overridden to check object property list
|
||||
|
|
|
|||
17
Projects/UOContent/Skills/SkillsInfo.cs
Normal file
17
Projects/UOContent/Skills/SkillsInfo.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.IO;
|
||||
using Server.Json;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public static class SkillsInfo
|
||||
{
|
||||
public static void Configure()
|
||||
{
|
||||
SkillInfo.Table = JsonConfig.Deserialize<SkillInfo[]>(Path.Combine(Core.BaseDirectory, "Data/skills.json"));
|
||||
|
||||
if (Core.AOS)
|
||||
{
|
||||
AOS.DisableStatInfluences();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -15,6 +15,10 @@ namespace Server.SkillHandlers
|
|||
public static unsafe void Configure()
|
||||
{
|
||||
IncomingExtendedCommandPackets.RegisterExtended(0x07, true, &QuestArrow);
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
SkillInfo.Table[(int)SkillName.Tracking].Callback = OnUse;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue