23 lines
525 B
C#
23 lines
525 B
C#
using static RebirthManager;
|
|
|
|
public class DialogRequirementCanGoHomeRebirth : BaseDialogRequirement
|
|
{
|
|
public override bool CheckRequirement(EntityPlayer player, EntityNPC talkingTo)
|
|
{
|
|
foreach (hireInfo hire in RebirthManager.playerHires)
|
|
{
|
|
if (hire.hireID == talkingTo.entityId)
|
|
{
|
|
if (hire.reSpawnPosition != new Vector3(0, 0, 0))
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|