fix: Codegens suits and adds StaffRobe to replace the others (#1468)

This commit is contained in:
Kamron Batman 2023-08-23 20:25:54 -07:00 • committed by GitHub
parent f56cb31db6
commit ca89b8b08b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 214 additions and 276 deletions

View file

@ -1,24 +1,11 @@
using System;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.Utilities;
namespace Server.Commands;
public static class StaffDress
{
private static readonly Type[] _staffRobeTypes =
{
null,
typeof(CounselorRobe),
typeof(GMRobe),
typeof(SeerRobe),
typeof(AdminRobe),
typeof(AdminRobe),
typeof(AdminRobe)
};
public static void Initialize()
{
CommandSystem.Register("ResetStaffDress", AccessLevel.Counselor, StaffDress_OnCommand);
@ -75,6 +62,9 @@ public static class StaffDress
}
}
pm.AddItem(_staffRobeTypes[(int)pm.AccessLevel].CreateInstance<BaseSuit>());
if (pm.AccessLevel > AccessLevel.Player)
{
pm.AddItem(new StaffRobe(pm.AccessLevel));
}
}
}