Esempio n. 1
0
    protected override void OnCompleteWork(Worker worker)
    {
        base.OnCompleteWork(worker);
        assignable.Unassign();
        MinionResume component = worker.GetComponent <MinionResume>();

        if ((Object)component != (Object)null)
        {
            component.ResetSkillLevels(true);
            component.SetHats(component.CurrentHat, null);
            component.ApplyTargetHat();
            notification = new Notification(MISC.NOTIFICATIONS.RESETSKILL.NAME, NotificationType.Good, HashedString.Invalid, (List <Notification> notificationList, object data) => MISC.NOTIFICATIONS.RESETSKILL.TOOLTIP + notificationList.ReduceMessages(false), null, true, 0f, null, null, null);
            worker.GetComponent <Notifier>().Add(notification, string.Empty);
        }
    }