Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -1,4 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using Server.ContextMenus;
using Server.Gumps;
@ -150,14 +149,7 @@ namespace Server.Engines.Plants
if (!(RootParent is Mobile owner))
return false;
if (owner.Backpack != null && IsChildOf(owner.Backpack))
return true;
BankBox bank = owner.FindBankNoCreate();
if (bank != null && IsChildOf(bank))
return true;
return false;
return IsChildOf(owner.Backpack) || IsChildOf(owner.FindBankNoCreate());
}
}
@ -170,7 +162,7 @@ namespace Server.Engines.Plants
[CommandProperty(AccessLevel.GameMaster)]
public bool Reproduces => PlantHueInfo.CanReproduce(PlantHue) && PlantTypeInfo.CanReproduce(PlantType);
public static ArrayList Plants{ get; } = new ArrayList();
public static List<PlantItem> Plants{ get; } = new List<PlantItem>();
[CommandProperty(AccessLevel.GameMaster)]
public SecureLevel Level{ get; set; }