Beispiel #1
0
        // copy constructor
        public Item(Item other, int count)
        {
            Enchantment = other.Enchantment;
            Count       = count;

            Parameters       = other.Parameters;
            Moveset          = other.Moveset;
            DrawingComponent = new Drawable(
                other.DrawingComponent.Color, other.DrawingComponent.Symbol, true);
        }
Beispiel #2
0
        public Item(ItemParameter parameters, Color color, char symbol, Loc loc, int count = 1)
        {
            Parameters       = parameters;
            DrawingComponent = new Drawable(color, symbol, true);
            Loc   = loc;
            Count = count;

            Moveset = new MovesetHandler(new ActionNode(
                                             null, null,
                                             new DamageAction(
                                                 Parameters.Damage,
                                                 new TargetZone(TargetShape.Range, Parameters.MeleeRange)),
                                             "attack"));
        }