feat: Adds allow skill gain to regions (#1286)

This commit is contained in:
Kamron Batman 2022-11-28 20:46:10 -08:00 committed by GitHub
parent 537526a328
commit c8a804d0b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 25 deletions

View file

@ -14,6 +14,8 @@ public class JailRegion : BaseRegion
{
}
public override bool AllowGain(Mobile m, Skill skill, object obj) => m.AccessLevel > AccessLevel.Player;
public override bool AllowBeneficial(Mobile from, Mobile target)
{
if (from.AccessLevel == AccessLevel.Player)