예제 #1
0
        private string CreateActionInfo(LastingEffect le, LivingEntity target)
        {
            var expected  = "";
            var ownerName = target.Name;

            if (Origin == EffectOrigin.SelfCasted)
            {
                expected  = ownerName;
                expected += " casted:";
            }
            else
            {
            }

            if (Origin == EffectOrigin.OtherCasted)
            {
                //expected += Type.ToDescription();
                expected += "Spell was casted on " + ownerName;
            }
            var res = expected;

            if (res.Any())
            {
                res += " ";
            }
            res += le.Description;
            return(res);
        }
예제 #2
0
        public LivingEntityAction CreateAction(LastingEffect le)
        {
            var target = (Owner as LivingEntity);
            var lea    = new LivingEntityAction(LivingEntityActionKind.ExperiencedEffect);

            lea.InvolvedEntity = target;
            lea.EffectType     = le.Type;
            //var targetName = target.Name.ToString();
            lea.Info  = CreateActionInfo(le, target);
            lea.Level = ActionLevel.Important;
            return(lea);
        }