12 lines
313 B
C#
12 lines
313 B
C#
public class DialogRequirementCanPickUp : BaseDialogRequirement
|
|
{
|
|
public override bool CheckRequirement(EntityPlayer player, EntityNPC talkingTo)
|
|
{
|
|
if (talkingTo.EntityClass.Properties.Values.ContainsKey("SpawnBlock"))
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
} |