Upload from upload_mods.ps1
This commit is contained in:
29
Scripts/Dialog/NPCs/DialogRequirementCanRepairRebirth.cs
Normal file
29
Scripts/Dialog/NPCs/DialogRequirementCanRepairRebirth.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
public class DialogRequirementCanRepairRebirth : BaseDialogRequirement
|
||||
{
|
||||
public override bool CheckRequirement(EntityPlayer player, EntityNPC talkingTo)
|
||||
{
|
||||
if (player.Buffs.HasBuff("FuriousRamsayHelpRepairBuff"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
EntityNPCRebirth npc = (EntityNPCRebirth)talkingTo;
|
||||
|
||||
if (npc != null)
|
||||
{
|
||||
if (npc.LeaderUtils.Owner)
|
||||
{
|
||||
if (npc.LeaderUtils.Owner.Buffs.HasBuff("FuriousRamsayHelpRepairBuff"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user