public static PrioritySelector FunkyTownPortalBehavior(object o)
{
return new PrioritySelector
(
new DecoratorContinue(ret => !TPActionIsValid(),
new Action(ret => RunStatus.Success)),
new Decorator(ret => !initizedTPBehavior,
new Action(ret => InitTPBehavior())),
new Decorator(ret => worldtransferStarted,
new Action(ret => worldtransferStarted=false)) //replace with method check
);
}