Beispiel #1
0
        public override List <string> Apply(ColossoFighter User, ColossoFighter Target)
        {
            List <string> log = new List <string>();

            if (EnemyNames.Select(e => EnemiesDatabase.GetEnemy(e)).ToList().Any(e => e.Name.Equals(Target.Name)))
            {
                log.Add($"{Target.Name} is {(Target.IsAlive ? "alive" : "dead")}");
                var Replacement = (NPCEnemy)EnemiesDatabase.GetEnemy(EnemyNames.Random()).Clone();
                Target.ReplaceWith(Replacement);
                log.Add($"{Target.Name} appears!");
            }
            return(log);
        }
Beispiel #2
0
        public override List <string> Apply(ColossoFighter user, ColossoFighter target)
        {
            List <string> log = new();

            _friends ??= EnemyNames.Select(EnemiesDatabase.GetEnemy).ToList();
            if (!_friends.Any(e => e.Name.Equals(target.Name)))
            {
                return(log);
            }
            //log.Add($"{Target.Name} is {(Target.IsAlive ? "alive" : "dead")}");
            var replacement = (NpcEnemy)EnemiesDatabase.GetEnemy(EnemyNames.Random()).Clone();

            target.ReplaceWith(replacement);
            log.Add($"{target.Name} appears!");
            return(log);
        }