Esempio n. 1
0
    private void OnGetAlternativeVerbs(GetAlternativeVerbsEvent ev)
    {
        if (!HasComp <SharedGhostComponent>(ev.User))
        {
            return;
        }

        if (ev.User == ev.Target)
        {
            return;
        }

        var verb = new Verb
        {
            Priority = 10,
            Act      = (() =>
            {
                StartFollowingEntity(ev.User, ev.Target);
            }),
            Impact      = LogImpact.Low,
            Text        = Loc.GetString("verb-follow-text"),
            IconTexture = "/Textures/Interface/VerbIcons/open.svg.192dpi.png",
        };

        ev.Verbs.Add(verb);
    }