Ejemplo n.º 1
0
        public static bool PreTimeTravel2(InteractionInstance ths)
        {
            Sim actor = ths.InstanceActor as Sim;

            if (GameUtils.IsFutureWorld())
            {
                EventTracker.SendEvent(EventTypeId.kTravelToPresent, actor);
            }
            else
            {
                EventTracker.SendEvent(EventTypeId.kTravelToFuture, actor);
            }

            ths.StandardEntry();
            ths.BeginCommodityUpdates();
            BuffTransformation transformBuff = actor.BuffManager.TransformBuff;

            if (transformBuff != null)
            {
                actor.BuffManager.RemoveElement(transformBuff.Guid);
            }

            return(true);
        }
Ejemplo n.º 2
0
        public static bool PreTimeTravel2(InteractionInstance ths)
        {
            Sim actor = ths.InstanceActor as Sim;

            if (GameUtils.IsFutureWorld())
            {
                EventTracker.SendEvent(EventTypeId.kTravelToPresent, actor);
            }
            else
            {
                EventTracker.SendEvent(EventTypeId.kTravelToFuture, actor);
            }

            ths.StandardEntry();
            ths.BeginCommodityUpdates();
            BuffTransformation transformBuff = actor.BuffManager.TransformBuff;
            if (transformBuff != null)
            {
                actor.BuffManager.RemoveElement(transformBuff.Guid);
            }

            return true;
        }