Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 • committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -110,11 +110,11 @@ namespace Server.Items
AddItem(90, 52, 0x2367);
AddItem(112, 35, 0x2360);
AddButton(70, 35, 0x868, 0x869, 1, GumpButtonType.Reply, 0); // South
AddButton(70, 35, 0x868, 0x869, 1); // South
AddItem(220, 35, 0x2352);
AddItem(242, 52, 0x2358);
AddButton(185, 35, 0x868, 0x869, 2, GumpButtonType.Reply, 0); // East
AddButton(185, 35, 0x868, 0x869, 2); // East
}
public override void OnResponse(NetState sender, RelayInfo info)
@ -127,4 +127,4 @@ namespace Server.Items
}
}
}
}
}

View file

@ -157,12 +157,7 @@ namespace Server.Items
public class RoseOfTrinsicPetal : Item
{
[Constructible]
public RoseOfTrinsicPetal() : this(1)
{
}
[Constructible]
public RoseOfTrinsicPetal(int amount) : base(0x1021)
public RoseOfTrinsicPetal(int amount = 1) : base(0x1021)
{
Stackable = true;
Amount = amount;
@ -212,4 +207,4 @@ namespace Server.Items
int version = reader.ReadEncodedInt();
}
}
}
}