feat: Moves skills to json file (#1411)

This commit is contained in:
Kamron Batman 2023-06-16 05:55:55 -07:00 • committed by GitHub
parent c18d0d23ff
commit baed849f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 906 additions and 109 deletions

View file

@ -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

View 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();
}
}
}

View file

@ -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;
}