Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -10,7 +10,7 @@ namespace Server.Items
public BigFish() : base(0x09CC)
{
Weight = Utility.RandomMinMax(3,
200); //TODO: Find correct formula. max on OSI currently 200, OSI dev says it's not 200 as max, and ~ 1/1,000,000 chance to get highest
200); // TODO: Find correct formula. max on OSI currently 200, OSI dev says it's not 200 as max, and ~ 1/1,000,000 chance to get highest
Hue = Utility.RandomBool() ? 0x847 : 0x58C;
}
@ -33,7 +33,7 @@ namespace Server.Items
public void Carve(Mobile from, Item item)
{
base.ScissorHelper(from, new RawFishSteak(), Math.Max(16, (int)Weight) / 4, false);
this.ScissorHelper(from, new RawFishSteak(), Math.Max(16, (int)Weight) / 4, false);
}
public override void GetProperties(ObjectPropertyList list)
@ -67,16 +67,16 @@ namespace Server.Items
switch (version)
{
case 1:
{
m_Fisher = reader.ReadMobile();
break;
}
{
m_Fisher = reader.ReadMobile();
break;
}
case 0:
{
Weight = Utility.RandomMinMax(3, 200);
break;
}
{
Weight = Utility.RandomMinMax(3, 200);
break;
}
}
}
}
}
}

View file

@ -10,14 +10,13 @@ namespace Server.Items
Amount = amount;
}
public Fish(Serial serial) : base(serial)
{
}
public void Carve(Mobile from, Item item)
{
base.ScissorHelper(from, new RawFishSteak(), 4);
this.ScissorHelper(from, new RawFishSteak(), 4);
}
public override void Serialize(IGenericWriter writer)