What do i need to add into this script to make it so whenever gate travel is casted inside a home the second gate is a dud and leads nowhere.

GateTravel.cs
Line 157 :
InternalItem firstGate = new InternalItem(loc, map);
firstGate.MoveToWorld(Caster.Location, Caster.Map);

Effects.PlaySound(loc, map, 0x20E);

InternalItem secondGate = new InternalItem(Caster.Location, Caster.Map);
secondGate.MoveToWorld(loc, map);

firstGate.LinkedGate = secondGate;
secondGate.LinkedGate = firstGate;

firstGate.BoatGate = BaseBoat.FindBoatAt(firstGate, firstGate.Map) != null;
secondGate.BoatGate = BaseBoat.FindBoatAt(secondGate, secondGate.Map) != null;
});
}

FinishSequence();
 
Back