ITLongwell / mondains-legacy

Automatically exported from code.google.com/p/mondains-legacy
0 stars 0 forks source link

Blight conflict[though probably RunUO's major goof] #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.type [add blight
2.not constructable

What is the expected output? What do you see instead?
Blight is constructable BUT RunUO added Blight as an Ethics SPELL!

What version of the product are you using?

Please provide any additional information below.
Evil/Powers:
using System;
using System.Collections.Generic;
using System.Text;
using Server.Spells;

namespace Server.Ethics.Evil
{
    public sealed class Blight : Power
    {
        public Blight()
        {
            m_Definition = new PowerDefinition(
                    15,
                    "Blight",
                    "Velgo Ontawl",
                    ""
                );
        }

MLResources:
using System;

namespace Server.Items
{
    public class Blight : Item
    {
        [Constructable]
        public Blight()
            : this( 1 )
        {
        }

        [Constructable]
        public Blight( int amount )
            : base( 0x3183 )
        {
            Stackable = true;
            Amount = amount;
        }

        public Blight( Serial serial )
            : base( serial )
        {
        }

        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int)0 ); // version
        }

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();
        }
    }

Figured I would at least let everyone here know.

Original issue reported on code.google.com by ShazzySh...@gmail.com on 23 Jul 2009 at 11:42

GoogleCodeExporter commented 8 years ago
As long as they're in separate namespace it's ok. But it is confusing sometimes.

Original comment by gje...@gmail.com on 28 Jul 2009 at 10:29

GoogleCodeExporter commented 8 years ago
Ok, just thought owners should know you can not add blight in game. You have to 
kill
a boss and then dupe it from there. Thanks Mal :]

Original comment by ShazzySh...@gmail.com on 28 Jul 2009 at 12:03