feat: Adds allow skill gain to regions (#1286)
This commit is contained in:
parent
537526a328
commit
c8a804d0b1
3 changed files with 35 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue