Beispiel #1
0
        public bool HasMountRight(Mount mount, bool equip = false)
        {
            if (equip && Character.HasEquippedMount())
            {
                return(false);
            }

            if (mount.Owner != null && Character != mount.Owner)
            {
                return(false);
            }

            if (!equip || Character.Level >= Mount.RequiredLevel)
            {
                return(true);
            }

            Character.SendInformationMessage(TextInformationTypeEnum.TEXT_INFORMATION_ERROR, 227, Mount.RequiredLevel);
            return(false);
        }
Beispiel #2
0
 public List <EffectInteger> GetMountEffects(Mount mount)
 {
     return(mount.Template.Bonuses.Select(x => new EffectInteger((EffectsEnum)x.EffectId, GetBonusByLevel(x.Amount, mount.Level))).ToList());
 }
Beispiel #3
0
 public void EquipMount(Mount mount)
 {
     Character.EquipMount(mount);
 }